An LM386 Oscillator Thanks To Tungsten Under Glass

Once ubiquitous, the incandescent light bulb has become something of a lucerna non grata lately. Banned from home lighting, long gone from flashlights, and laughed out of existence by automotive engineers, you have to go a long way these days to find something that still uses a tungsten filament.

Strangely enough, this lamp-stabilized LM386 Wien bridge oscillator is one place where an incandescent bulb makes an appearance. The Wien bridge itself goes back to the 1890s when it was developed for impedance measurements, and its use in the feedback circuits of vacuum tube oscillators dates back to the 1930s. The incandescent bulb is used in the negative feedback path as an automatic gain control; the tungsten filament’s initial low resistance makes for high gain to kick off oscillation, after which it heats up and lowers the resistance to stabilize the oscillation.

For [Grug Huler], this was one of those “just for funsies” projects stemming from a data sheet example circuit showing a bulb-stabilized LM386 audio oscillator. He actually found it difficult to source the specified lamp — there’s that anti-tungsten bias again — but still managed to cobble together a working audio oscillator. The first pass actually came in pretty close to spec — 1.18 kHz compared to the predicted 1.07 kHz — and the scope showed a very nice-looking sine wave. We were honestly a bit surprised that the FFT analysis showed as many harmonics as it did, but all things considered, the oscillator performed pretty well, especially after a little more tweaking. And no, the light bulb never actually lights up.

Thanks to [Grug] for going down this particular rabbit hole and sharing what he learned. We love builds like this that unearth seemingly obsolete circuits and bring them back to life with modern components. OK, calling the LM386 a modern component might be stretching things a bit, but it is [Elliot]’s favorite chip for a reason.

Continue reading “An LM386 Oscillator Thanks To Tungsten Under Glass”

Hardware Hacker’s Marie Kondo: How Many LM386s Is Too Many?

We’re running a contest on Making Tech at Home: building projects out of whatever you’ve got around the house. As a hacker who’s never had a lab outside of my apartment, house, or hackerspace, I had to laugh at the premise. Where the heck else would I hack?

The idea is that you’re constrained to whatever parts you’ve got on hand. But at the risk of sounding like Scrooge McDuck sitting on a mountain of toilet paper, I’ve got literally hundreds of potentiometers in my closet, a couple IMUs, more microcontrollers than you can shake a stick at, and 500 ml of etching solution waiting for me in the bathroom. Switches, motors, timing belts, nichrome wire…maybe I should put in an order for another kilogram of 3D printer filament. In short, unless it’s a specialty part or an eBay module, I’m basically set.

But apparently not everyone is so well endowed. I’ve heard rumors of people who purchase all of the parts for a particular project. That ain’t me. The guru of household minimalism asks us to weigh each object in our possession and ask “does it spark joy?”. And the answer, when I pull out the needed 3.3 V low-dropout regulator and get the project built now instead of three days from now, is “yes”.

And I’m not even a hoarder. (I keep telling myself.) The rule that keeps me on this side of sanity: I have a box for each type of part, and they are essentially fixed. When no more motors fit in the motor box, no more motors are ordered, no matter how sexy, until some project uses enough of them to free up space. It’s worked for the last 20 years, long before any of us had even heard of Marie Kondo.

So if you also sit atop a heap of VFD displays like Smaug under the Lonely Mountain, we want to see what you can do. If you do win, Digi-Key is sending you a $500 goodie box to replenish your stash. But even if you don’t win, you’ve freed up space in the “Robot Stuff” box. That’s like winning, and you deserve some new servos. Keep on hacking!

This article is part of the Hackaday.com newsletter, delivered every seven days for each of the last 200+ weeks. It also includes our favorite articles from the last seven days that you can see on the web version of the newsletter.

Want this type of article to hit your inbox every Friday morning? You should sign up!

You Can Have My LM386s When You Pry Them From My Cold Dead Hands

Everyone has a chip-of-shame: it’s the part that you know is suboptimal but you keep using it anyway because it just works well enough. Maybe it’s not what you would put into a design that you’re building more than a couple of, but for a quick and dirty lashup, it’s just the ticket. For Hackaday’s [Adam Fabio], that chip is the TIP120 transistor. Truth be told, we have more than one chip of shame, but for audio amplification purposes, it’s the LM386.

The LM386 is an old design, and requires a few supporting passive components to get its best performance, but it’s fundamentally solid. It’s not noise-free and doesn’t run on 3.3 V, but if you can fit a 9 V battery into your project and you need to push a moderate amount of sound out of a speaker, we’ll show you how to get the job done with an LM386.

Continue reading “You Can Have My LM386s When You Pry Them From My Cold Dead Hands”

LM386 Altoids Tin Amp

altoids_amp

Hacker [Dino Segovis] is back again with the fifth installment in his “Hack a Week” series. This time around he has put together a 1/2 watt audio amplifier that would make for a great weekend project. He’s a big fan of the LM386 amplifier chip because it does so much in such a small package. Since it is so versatile, he used it as the centerpiece of his Altoids tin amplifier.

Now an audio amp inside an Altoids tin isn’t exactly a new concept, but [Dino] takes the time to discuss the circuit in detail, which is great for any beginners out there who are looking for a fun and relatively easy project. After a high-speed video of the assembly process he walks us through the completed amp, then treats us to a couple of short demos.

One thing that makes his amp different than others we have seen in the past is the addition of a 1/4” guitar jack, which allows him to use his amplifier as a combo amp/distortion effect box.

It’s another job well done, so be sure to keep reading if you’d like to watch the latest Hack a Week episode in its entirety.

Continue reading “LM386 Altoids Tin Amp”

Getting The VIC-20 To Speak Again

The Commodore Amiga was famous for its characteristic Say voice, with its robotic enunciation being somewhat emblematic of the 16-bit era. The Commodore VIC-20 had no such capability out of the box, but [Mike] was able to get one talking with a little bit of work.

The project centers around the Adventureland cartridge, created by Scott Adams (but not the one you’re thinking of). It was a simple game that was able to deliver speech with the aid of the Votrax Type and Talk speech synthesizer box. Those aren’t exactly easy to come by, so [Mike] set about creating a modern equivalent. The concept was simple enough. An Arduino would be used to act as a go between the VIC-20’s slow serial port operating at 300 bps and the Speakjet and TTS256 chips which both preferred to talk at 9600 bps. The audio output of the Speakjet is then passed to an LM386 op-amp, set up as an amplifier to drive a small speaker. The lashed-together TTS system basically just reads out the text from the Adventureland game in an incredibly robotic voice. It’s relatively hard to understand and has poor cadence, but it does work – in much the same way as the original Type and Talk setup would have back in the day!

Text to speech tools have come a long way since the 1980s, particularly when it comes to sounding more natural. Video after the break.

Continue reading “Getting The VIC-20 To Speak Again”

Building A Smart Speaker Outside The Corporate Cloud

If you’re not worried about corporate surveillance bots scraping your shopping list and manipulating you through marketing, you can buy any number of off-the-shelf smart speakers for your home. Alternatively, you can roll your own like [arpy8] did, and keep your life a little more private.

The build is based around an ESP32 microcontroller. It connects to the ‘net via its inbuilt Wi-Fi connection, and listens out for your voice with an INMP441 omnidirectional microphone module. The audio data is trucked off to a backend server running a Whisper speech-to-text model. The text is then passed to Google’s Gemini 2.5 Flash large language model. The response generated is passed to the Piper Neural Voice text-to-speech engine, sent back to the ESP32, and spat out via the device’s DAC output and a speaker attached to an LM386 amplifier. Basically, anything you could ask Gemini, you can do with this device.

By virtue of using a commercial large language model, it’s not perfectly private by any means. Still, it’s at least a little farther removed than using a smart speaker that’s directly logged in to your Amazon/Google/Hulu/Beanstikk account. Files are on Github for those eager to dive into the code. We’ve seen some other fun builds along these lines before, too. Video after the break.

Continue reading “Building A Smart Speaker Outside The Corporate Cloud”

Reverse Engineering A Robot Mower’s Fence

There are a variety of robot mower systems on the market employing different navigation methods, and [Eelco] has the story of how one of these was reverse engineered. Second hand Roomba lawnmowers kept appearing for very low prices without the electronics driving the buried-wire fence that keeps them from going astray. The story of their reverse engineering provides us with a handy insight into their operation.

The wire fence is a loop of wire in the ground, so it was modeled using a few-ohm resistor and the waveform across it from a working driver captured with an oscilloscope. The resulting 3 kHz waveform surprisingly to us at least doesn’t appear to encode any information, so it could be replicated easily enough with an ESP32 microcontroller. An LM386 audio amplifier drives the loop, and with a bit of amplitude adjustment the mower is quite happy in its fake fence.

Robot mower hacking has become quite the thing around here.