Pimp The Potentiometer

Sometimes, a hack isn’t really about the technology but about the logistics. If we asked you to light up an LED using an Arduino, there’s a good chance you’d know exactly how to do that. How about a bunch of LEDs? Simple. Now turn on LEDs proportional to an input voltage. A little harder, but nothing that you probably haven’t done a million times. Finally, arrange the LEDs in an attractive circle around a potentiometer. Wait, how are you going to do that? [Upir] shows us a ready-made ring light for just this purpose and you can see the beautiful thing in the video below.

We made the LED things sound slightly easier than it is. The ring light has 31 LEDs but only 12 pins, so there is some multiplexing going on. The modules come in pairs for about $20, so not a throwaway part, but they will really dress up anything that needs a knob of any kind.

Naturally, it doesn’t matter what you use to drive the LEDs. You could track a pot or a rotary encoder. Or you could show microphone levels or something else. After all, it is just a bunch of LEDs. For that matter, they’d probably make a good pair of robot eyes. Let us know what you want to use them for in the comments.

If your significant other is a little geeky, you might want a different kind of ring light. We couldn’t help but wish the LEDs on the ring were addressable. That would open up a world of interesting possibilities while reducing the pin count, too.

Continue reading “Pimp The Potentiometer”

Roll Your Own Python Debugger

Debugging might be the one thing that separates “modern” programming from “classic” programming. If you are on an old enough computer — or maybe one that has limited tools like some microcontrollers — debugging is largely an intellectual exercise. Try a program, observe its behavior, and then try again. You can liberally sprinkle print statements around if you have an output device or turn on LEDs or digital outputs if you don’t. But with a debugger, you can get a bird’s-eye view of your program’s data and execution flow.

For some languages, writing a debugger can be hard — you usually use at least some system facility to get started. But as [mostlynerdness] shows, Python’s interpreter wants to help you create your own debugger, and you can follow along to see how it’s done. This is accessible because Python has a built-in debugging core that you can use and extend. Well, regular Python, that is. MicroPython has some low-level support, and while we’ve seen attempts to add more, we haven’t tried it.

Of course, you may never need to build your own debugger — most of the IDEs have already done this for you, and some of the code is, in fact, lifted from an open code base and simplified. However, understanding how the debugging plumbing works may give you a leg up if you need to create custom logic to trap an error that would be difficult to find with a generic debugger. Plus, it is just darn interesting.

Like many Python things, there are some version sensitivities. The post is in four parts, with the last two dealing with newer API changes.

We can’t promise that Python can debug your hardware, though. We always thought the C preprocessor was subject to abuse, but it turns out that Python has the same problem.

Wind Tunnel Uses The Last Straw

If you watch the movies, there isn’t much to a wind tunnel. Just a fan and a tunnel, right? The truth is there’s a lot more to it than that, and [ejs13] shows you how you can make a small tunnel with some basic supplies. One of the requirements for a useful tunnel is to have laminar flow — that is, flow in uniform layers with little, if any, mixing. This tunnel achieves laminar flow using an array of soda straws to direct the flow. In fact, there are 150 straws in total. You can see a short clip of the wind tunnel in action below.

The rest of the parts are easy, too. A computer fan provides wind, and there’s a little bit of wood and acrylic. You’ll notice in the video that you can easily see the airflow. That’s thanks to a light source, some water, and a bit of dry ice.

Continue reading “Wind Tunnel Uses The Last Straw”

Hackaday Podcast 243: Supercon, Super Printing, And Super Gyros

With solder fumes from Supercon still in the air, Hackaday’s Elliot Williams and Al Williams met to compare notes about the conference talks, badge hacking, and more. Tom Nardi dropped by, too.

Did you miss Supercon? It isn’t quite the whole experience, but most of the talks are on our YouTube channel, with more coming in the weeks ahead. Check out the live tab for most of the ones up now. You can even watch the badge hacking celebration. We’ll be writing up more in the following weeks.

Al nailed What’s That Sound, as did many others, except Elliot. [Jacx] gets a T-shirt, and you get a chance to play again next week.

The hacks this week range from a pair of posts pertaining to poop — multi-color 3D printer poop, that is. We wondered if you could print rainbow filament instead of a purge tower. The Raspberry Pi 5 draws a lot of excess power when in standby. Turns out, thanks to the Internet, the easy fix for that is already in. Other hacks range from EMI test gear to portable antennas with excursions into AI, biomedical sensors, and retrocomputing.

In the Can’t Miss category, we discussed Maya Posch’s post, which could just as easily be titled: Everything You Ever Wanted to Know about CAT Cable (But Were Afraid to Ask). Last, but not least, you’ll hear about Lewin Day’s round up of exotic gyroscope technology, including some very cool laser pictures.

Check out the links below if you want to follow along, and as always, tell us what you think about this episode in the comments!

Download for listening or for a very long ringtone.

Continue reading “Hackaday Podcast 243: Supercon, Super Printing, And Super Gyros”

Fastest Semiconductor May Also Be Most Expensive

Scientists have found what they think may be the fastest known semiconductor. Sounds great, right? But it happens to made from one of the rarest elements: rhenium. That rare element combines with selenium and chlorine to form a “superatom.” Unlike conventional semiconductor material, the superatom causes phonons to bind together and resist scattering. This should allow materials that can process signals in femtoseconds,

Rhenium was the last stable element to be found in 1925. It is primarily used in combination with nickel in parts of jet engines, although it is also known as a catalyst for certain reactions. It is very rare and has a high melting point, exceeded only by tungsten and carbon. When it was discovered, scientists extracted a single gram of the material by processing 660 kg of molybdenite. Because of its rarity, it is expensive, costing anywhere from $2,800 to $10,600 per kilogram.

Continue reading “Fastest Semiconductor May Also Be Most Expensive”

Hack A Soda Can Into Jewelry

If you’ve ever needed some aluminum for a project, you might have noticed you have easy access to aluminum cans. If you need a cylinder, fine. But what if you don’t? [ThescientistformerlyknownasNaegeli] shows how to create an attractive necklace from two soda cans, and we think the techniques might be usable for other cases where you might need aluminum. If you care more about the necklace, it looks good. You only have to add a 3D-printed clasp or, if you prefer, you can buy a clasp and use that. For the Hackaday crowd, you can also use the resulting structure as an aluminum cable shield, which might better suit you.

The post gives more details and points to other posts for even deeper dives into many of the steps. But the basic idea is you strip the ink from the outside of the can and then cut the can into a strip. The mechanism for that looks a lot like a machine to cut plastic bottles into strips, but that method isn’t feasible without special blades.

Continue reading “Hack A Soda Can Into Jewelry”

Programming 1949 Style!

What was it like to program an early digital computer? [Woven Memories] wanted to know and wants you to know, too. [Maurice Wilkes] and his team wrote a book about their EDSAC and the 18 instructions that it used. These days, you can even run an EDSAC program on a number of emulators.

It is hard to realize how things we take entirely for granted had to be invented by [Wilkes] and his colleagues. The book, “The Preparation of Programs for an Electronic Digital Computers” has, among other things, the first recorded use of a software library and the first API. Even the subroutine needed inventing by [Wilkes’] student [David Wheeler], which was known for a while as the “Wheeler Jump.”

Like many things in old computers, the Wheeler Jump required code to modify itself. Even indexing modes were often implemented by changing an address inside the program.

While we frown on techniques like this today, you have to start somewhere. We are big fans of EDSAC and [Dr. Wilkes] had a long and distinguished career long after EDSAC, too. The original plans for EINIAC led to EDSAC, EDVAC, and a slew of other early machines. You can see a video of the machine with an introduction by [Wilkes] below.

If you want to try your hand with the EDSAC, try your browser. There’s also a very nice Windows emulator that runs fine under WINE.

Continue reading “Programming 1949 Style!”