Linux Fu: Eavesdropping On Serial

In the old days, if you wanted to snoop on a piece of serial gear, you probably had a serial monitor or, perhaps, an attachment for your scope or logic analyzer. Today, you can get cheap logic analyzers that can do the job, but what if you want a software-only solution? Recently, I needed to do a little debugging on a USB serial port and, of course, there isn’t really anywhere to easily tie in a monitor or a logic analyzer. So I started looking for an alternate solution.

If you recall, in a previous Linux Fu we talked about pseudoterminals which look like serial ports but actually talk to a piece of software. That might make you think: why not put a piece of monitor software between the serial port and a pty? Why not, indeed? That’s such a good idea that it has already been done. When it works, it works well. The only issue is, of course, that it doesn’t always work.

Continue reading “Linux Fu: Eavesdropping On Serial”

Agrivoltaics Is A Land Usage Hack For Maximum Productivity

Land tends to be a valuable thing. Outside of some weird projects in Dubai, by and large, they aren’t making any more of it. That means as we try to feed and power the ever-growing population of humanity, we need to think carefully about how we use the land we have.

The field of agrivoltaics concerns itself with the dual-use of land for both food production and power generation. It’s all about getting the most out of the the available land and available sunlight we have.

Continue reading “Agrivoltaics Is A Land Usage Hack For Maximum Productivity”

Stable Diffusion And Why It Matters

You might not have heard about Stable Diffusion. As of writing this article, it’s less than a few weeks old. Perhaps you’ve heard about it and some of the hubbub around it. It is an AI model that can generate images based on a text prompt or an input image. Why is it important, how do you use it, and why should you care?

This year we have seen several image generation AIs such as Dall-e 2, Imagen, and even Craiyon. Nvidia’s Canvas AI allows someone to create a crude image with various colors representing different elements, such as mountains or water. Canvas can transform it into a beautiful landscape. What makes Stable Diffusion special? For starters, it is open source under the Creative ML OpenRAIL-M license, which is relatively permissive. Additionally, you can run Stable Diffusion (SD) on your computer rather than via the cloud, accessed by a website or API. They recommend a 3xxx series NVIDIA GPU with at least 6GB of RAM to get decent results. But due to its open-source nature, patches and tweaks enable it to be CPU only, AMD powered, or even Mac friendly.

This touches on the more important thing about SD. The community and energy around it. There are dozens of repos with different features, web UIs, and optimizations. People are training new models or fine-tuning models to generate different styles of content better. There are plugins to Photoshop and Krita. Other models are incorporated into the flow, such as image upscaling or face correction. The speed at which this has come into existence is dizzying. Right now, it’s a bit of the wild west. Continue reading “Stable Diffusion And Why It Matters”

Hackaday Links Column Banner

Hackaday Links: September 4, 2022

Say what you will about Tesla, but there’s little doubt that the electric vehicle maker inspires a certain degree of fanaticism in owners. We’re used to the ones who can’t stop going on about neck-snapping acceleration and a sci-fi interior. But the ones we didn’t see coming are those who feel their cars are so bad that they need to stage a hunger strike to get the attention of Tesla. The strike is being organized by a group of Tesla owners in Norway, who on their website enumerate a long list of grievances, including design defects, manufacturing issues, quality control problems, and customer service complaints. It’s not clear how many people are in the group, although we assume at least 18, as that’s the number of Tesla cars they used to spell out “HELP” in a parking lot. It’s also not clear how or even if the group is really off their feed, or if this is just a stunt to get the attention of Tesla honcho and notorious social media gadfly Elon Musk.

Continue reading “Hackaday Links: September 4, 2022”

The Akademik Lomonosov floating nuclear power plant, moored at Pevek, Russia. It provides power and heat to the isolated community.

Cogeneration And District Heating For Comfortable Homes And Happy Factories

Most of modern society’s energy usage is spent on heating in some form, whether it is to heat water, raise the temperature in a room, or for use in industrial processes. This makes it an excellent target for improvements in efficiency and resilience, as well as in the effort to decarbonize the world’s energy production. Here district heating and similar solutions are likely to play a major role in the near future.

Over the past decades, a number of nations have either already built out extensive district heating grids, or are in the process of doing so. The main advantage of these heating grids is that they not only allow for more efficient, centralized generating of heat, but also allow for e.g. industrial waste heat to be used productively rather than wasted, even if most of the heat will come from either dedicated or cogeneration thermal plants.

Recently, district heating has received a big push in e.g. China in the form of nuclear cogeneration, while the potential of using thermal storage to buffer heat for later use along with the concept of tying data centers into heating grids are also being explored. Although district heating is hardly new, it may help to ease humanity into a low-carbon future, without losing a bit of comfort.

Continue reading “Cogeneration And District Heating For Comfortable Homes And Happy Factories”

Iron Nitrides: Powerful Magnets Without The Rare Earth Elements

Since their relatively recent appearance on the commercial scene, rare-earth magnets have made quite a splash in the public imagination. The amount of magnetic energy packed into these tiny, shiny objects has led to technological leaps that weren’t possible before they came along, like the vibration motors in cell phones, or the tiny speakers in earbuds and hearing aids. And that’s not to mention the motors in electric vehicles and the generators in wind turbines, along with countless medical, military, and scientific uses.

These advances come at a cost, though, as the rare earth elements needed to make them are getting harder to come by. It’s not that rare earth elements like neodymium are all that rare geologically; rather, deposits are unevenly distributed, making it easy for the metals to become pawns in a neverending geopolitical chess game. What’s more, extracting them from their ores is a tricky business in an era of increased sensitivity to environmental considerations.

Luckily, there’s more than one way to make a magnet, and it may soon be possible to build permanent magnets as strong as neodymium magnets, but without any rare earth metals. In fact, the only thing needed to make them is iron and nitrogen, plus an understanding of crystal structure and some engineering ingenuity.

Continue reading “Iron Nitrides: Powerful Magnets Without The Rare Earth Elements”

Backup Camera, Digital Dash, Road Assist… In 1969?

If your friend told you their car had a backup camera, a digital dashboard, climate control, could scan for radio stations, and even helped stay on the road, you wouldn’t think much about it. Unless the year was 1969. The car — the Hurricane by Australian automaker Holden — was never a production vehicle. But it was way beyond the state of the art in 1969 and isn’t too dated, even today.  The concept car was actually found in 1988 and restored by 2011. Honestly, it still looks great.

The car looks amazing and was meant to be a research vehicle and — probably — nice eye candy for the car shows. Seating two passengers with a mid-mounted 253 cubic inch V8, it featured many things we take for granted now: a backup camera, temperature control, and a  (somewhat) digital dashboard, for example. There was a system to help it stay in lane, but that required magnets in the road — it was 1969, after all.

The fiberglass body was unique and had a canopy instead of doors. The power seats lifted up when the canopy came up and went down for driving. The passenger compartment was a steel cage. The vehicle featured headrests, a foam-lined fuel tank, and a fire warning system. Two of the brakes were even oil-cooled.

Continue reading “Backup Camera, Digital Dash, Road Assist… In 1969?”