Quantcast
Channel: lm386 – Hackaday
Viewing all 31 articles
Browse latest View live

State Of The Art Big Mouth Alexa Bass

$
0
0

Hackers seem intent on making sure the world doesn’t forget that, for a brief shining moment, everyone thought Big Mouth Billy Bass was a pretty neat idea. Every so often we see a project that takes this classic piece of home decor and manages to shoehorn in some new features or capabilities, and with the rise of voice controlled home automation products from the likes of Amazon and Google, they’ve found a new ingredient du jour when preparing stuffed bass.

[Ben Eagan] has recently completed his entry into the Pantheon of animatronic fish projects, and while we’ll stop short of saying the world needed another Alexa-enabled fish on the wall, we’ve got to admit that he’s done a slick job of it. Rather than trying to convince Billy’s original electronics to play nice with others, he decided to just rip it all out and start from scratch. The end result is arguably one of the most capable Billy Bass updates we’ve come across, if you’re willing to consider flapping around on the wall an actual capability in the first place.

The build process is well detailed in the write-up, and [Ben] provides many pictures so the reader can easily follow along with the modification. The short version of the story is that he cuts out the original control board and wires the three motors up to an Arduino Motor Driver Shield, and when combined with the appropriate code, this gives him full control over Billy’s mouth and body movements. This saved him the trouble of figuring out how to interface with the original electronics, which is probably for the better since they looked rather crusty anyway.

From there, he just needed to give the fish something to get excited about. [Ben] decided to connect the 3.5 mm audio jack of an second generation Echo Dot to one of the analog pins of the Arduino, and wrote some code that can tell him if Amazon’s illuminated hockey puck is currently yammering on about something or not. He even added a LM386 audio amplifier module in there to help drive Billy’s original speaker, since that will now be the audio output of the Dot.

A decade ago we saw Billy reading out Tweets, and last year we presented a different take on adding an Alexa “brain” to everyone’s favorite battery powered fish. What will Billy be up to in 2029? We’re almost too scared to think about it.


Does This Timber Have The Right Timbre?

$
0
0

A hi-fi amplifier used to be a right of passage for the home electronic constructor, back in the days when consumer electronics was still dominated by analogue entertainment. It’s unusual then to see [carbono.silício]’s stereo amplifier project, constructed in an open-wire circuit sculpture form on a log. You didn’t read that incorrectly, it’s built not on a breadboard but on a piece of Olea Maderensis, or Madiera Olive wood, complete with bark. This endangered tree was not felled, instead it was a piece blown down after a storm.

The circuit is slightly unusual for a project such as this, in that it uses a pair of LM386 audio amplifier chips. This isn’t an unusual component, but it’s one more commonly seen providing the amplification for a small speaker project than in a stereo hi-fi amplifier. But the construction is beautifully done, with very neatly routed wires, a single central volume knob, and a blue LED power light. A particularly nice touch are the aluminium electrolytic capacitors, we suspect having had their plastic sleeving removed.

We’ve had our share of stereo amp projects here, and some of them are surprisingly simple. We have even been known to partake of them ourselves.

It’s A TV-Scope-Guitar Amplifier!

$
0
0

Guitar amplifiers are a frequent project, and despite being little more than a simple audio amplifier on paper, they conceal a surprising quantity of variables in search of a particular sound. We’ve seen a lot of them, but never one quite like [Nate Croson]’s CRT TV guitar amplifier. The LM386 doesn’t just drive the speaker, he’s also using it to turn the TV into a crude oscilloscope to form a visualisation of the sound.

The video showing this feat is below the break, and it puts us in a quandary due to being short on technical information. He’s driving the horizontal coils with the TV’s 50 Hz sawtooth field timebase, and the vertical ones with the audio from the LM386. We aren’t sure whether he’s rotated the yoke or whether the connections have been swapped, but the result is certainly impressive.

So given that there’s not quite as much technical detail as we’d like, why has this project captured our interest? Because it serves as a reminder that a CRT TV is a bit more than a useless anachronism, it’s a complex analogue device with significant and unique hacking potential. The older ones in particular provide endless possibilities for modification and circuit bending, and make for a fascinating analogue playground at a very agreeable price. It’s worth pointing out however that some of the voltages involved can make them a hazardous prospect for the unwary hacker. If you’re interested though, take a look at our dive into an older model.

[Fran] is Helping Santa Slay This Year

$
0
0

We know at least one person who ought to make Santa’s ‘nice’ list this year. [Fran] was probably near the top of it already, but sending Santa a handmade greeting card with a fully-functioning guitar amp inside will probably make him rewrite her name in glitter, or silver Sharpie.

This stocking stuffer-sized amp is based around the LM386 and the bare minimum components necessary to make it rock. Everything is dead-bug soldered and sandwiched between two pieces of card stock. The first version with a single 386 sounded okay, but [Fran] wanted it louder, so she added another stage with a second 386. [Fran] glued the rim of the speaker directly to the card so it can act like a cone and give a better sound than the speaker does by itself.

All Santa needs to rock out is his axe and a small interface made of a 1/4″ jack and a 9 V wired to a 3-pin header that plugs into the card. He can take a break from Christmas music and let some of those cookies digest while he jams. Be sure to check out the build video after the break if you want to stay off the ‘naughty’ list.

Want to make your own musical greeting card? If you can program an ATtiny85, you won’t need much more than that to send a smile. If visual art is more your thing, 3D print them a 2D picture.

Thanks for the tip, [Käpt’n Blaubär]!

Hack Together Your Own Bat Signal

$
0
0

Bats use echolocation to see objects in front of them. They emit an ultrasonic pulse around 20 kHz (and up to 100 kHz) and then sense the pulses as they reflect off an object and back to the bat. It’s the same type of mechanism used by ultrasonic proximity sensors for object-avoidance. Humans (except perhaps the very young ones) can’t hear the ultrasonic pulses since the frequency is too high, but an inexpensive microphone in a simple bat detector could. As it turns out bat detectors are available off the shelf, but where’s the fun in that? So, like any good hacker, [WilkoL] decided to build his own.

[WilkoL’s] design is composed primarily of an electret microphone, microphone preamplifier, CD4040 binary counter, LM386 audio amplifier, and a speaker. Audio signals are analog and their amplitudes vary based on how close the sound is to the microphone. [WilkoL] wanted to pick up bat sounds as far away as possible, so he cranked up the gain of the microphone preamplifier by quite a bit, essentially railing the amplifiers. Since he mostly cares about the frequency of the sound and not the amplitude, he wasn’t concerned about saturating the transistor output.

The CD4040 then divides the signal by a factor of 16, generating an output signal within the audible frequency range of the human ear. A bat signal of 20 kHz divides down to 1.25 kHz and a bat signal of up to 100 kHz divides down to 6.25 kHz.

He was able to test his bat detector with an ultrasonic range finder and by the noise generated from jingling his keychain (apparently there are some pretty non-audible high-frequency components from jingling keys). He hasn’t yet been able to get a recording of his device picking up bats. It has detected bats on a number of occasions, but he was a bit too late to get it on video.

Anyway, we’re definitely looking forward to seeing the bat detector in action! Who knows, maybe he’ll find Batman.

Retro Shield Replaces Springs With Jumpers, Includes Blinkenlights!

$
0
0
The Retro Shield, an Arduino Proto Shield for making many different circuits.

Is it an AM radio? Yes. It is a 555 LED flashing circuit? Yep. How about a hex counter with a 7 segment display? That too. Five different colored LED’s to satisfy your need for blinkenlights? Even that! What is this magical contraption? Is it one of those old school 30-in-1 or 50-in-1 “Science Fair” kits with the jumper wires and the springs? Almost!

When [grandalf]’s friend showed them a project where a 555 timer was installed on an Arduino shield, they realized two things: This whole “could have done that with a 555 timer” meme is a lot of fun, and “I’ve got an old 556 chip, I wonder if I can build one?” The answer is yes, and so much more.

Starting with the 556 timer, and inspired by the old spring-and-jumper kits of the past, [grandalf]’s “556 on a Proto Shield” project evolved into a creation they call the Retro Shield. Snowballing like so many hacker projects, it now includes several built in circuits and components. Breadboard jumpers are used to connect components through strategically placed pin headers, of which there are quite a few!

To make it all fit, some parts were substituted with more compact pieces such as an LM386 instead of an LM380.  The AM radio portion is supplied by an all-in-one radio chip, the ZN414. With the scope creep picking up steam, [grandalf] eventually added so called sidecars- bits of board that contain controls and a speaker hanging off the side of the Proto Shield.

It is not mentioned if the Retro Shield integrates with the Arduino or not. All the same, the Retro Shield has been used to pick up local AM stations, blink LED’s and amplify audio with the LM386. Like [grandalf] we’re sure that the Retro Shield can be used for much more. We hope that [grandalf] expands on the concept and inspires future hackers to answer the question “I wonder what happens if I try this.” 

If you haven’t set eyes on one of the all-in-one kits, check out this 200-in-1 kit teardown and review. And of course, if you have your own hacked up projects to share, be sure to let us know through the Tip Line!

Classic Chip Line-Up Powers This Fun Dub Siren Synth

$
0
0
Dub Siren, a 555-powered synthesizer

There’s a certain elite set of chips that fall into the “cold, dead hands” category, and they tend to be parts that have proven their worth over decades, not years. Chief among these is the ubiquitous 555 timer chip, which nearly 50 years after its release still finds its way into the strangest places. Add in other silicon stalwarts like the 741 op-amp and the LM386 audio amp, and you’ve got a Hall of Fame lineup for almost any project.

That’s exactly the complement of chips that powers this fun little dub siren. As [lonesoulsurfer] explains, dub sirens started out as actual sirens from police cars and the like that were used as part of musical performances. The ear-splitting versions were eventually replaced with sampled or synthesized siren effects for recording studio and DJ use, which leads us to the current project. The video below starts with a demo, and it’s hard to believe that the diversity of sounds this box produces comes from just a pair of 555s coupled by a 741 buffer. Five pots on the main PCB control the effects, while a second commercial reverb module — modified to support echo effects too — adds depth and presence. I built-in speaker and a nice-looking wood enclosure complete the build, which honestly sounds better than any 555-based synth has a right to.

Interested in more about the chips behind this build? We’ve talked about the 555 and how it came to be, taken a look inside the 741, and gotten a lesson in LM386 loyalty.

 

 

A Practical Discrete 386

$
0
0

There are some chips that no matter how much the industry moves away from them still remain, exerting a hold decades after the ranges they once sat alongside have left the building. Such a chip is the 386, not the 80386 microprocessor you were expecting but the LM386, a small 8-pin DIP audio amplifier that’s as old as the Ark. the ‘386 can still be found in places where a small loudspeaker needs to be powered from a battery. SolderSmoke listener [Dave] undertook an interesting exercise with the LM386, reproducing it from discrete components. It’s a handy small discrete audio amplifier if you want one, but it’s also an interesting exercise in understanding analogue circuits even if you don’t work with them every day.

A basic circuit can be found in the LM386 data sheet (PDF), but as is always the case with such things it contains some simplifications. The discrete circuit has a few differences in the biasing arrangements particularly when it comes to replacing a pair of diodes with a transistor, and to make up for not being on the same chip it requires that the biasing transistors must be thermally coupled. Circuit configurations such as this one were once commonplace but have been replaced first by linear ICs such as the LM386 and more recently by IC-based switching amplifiers. It’s thus instructive to take a look at it and gain some understanding. If you’d like to know more, it’s a chip we’ve covered in detail.


An LM386 Oscillator Thanks to Tungsten Under Glass

$
0
0

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.

A 360° View of a Classic Drive-In Speaker

$
0
0

Readers of a certain vintage no doubt have pleasant memories of drive-in theaters, and we are chuffed to see that a few hundred of these cinematic institutions endure today. While most theaters broadcast the audio on an FM station these days, the choice is still yours to use the chunky, often crackly speaker that attaches to the car window.

Seeking to relive the drive-in audio experience at home, [codemakesitgo] picked up a drive-in theater speaker on eBay and turned it into a Bluetooth device that sounds much better than it did in its weather-beaten days outside.

There isn’t a whole lot to this build — it’s essentially a new speaker cone, a Bluetooth receiver, an amp, and a battery. The real story is in the way that [codemakesitgo] uses Fusion360 to bring it all together.

After 3D scanning the case, [codemakesitgo] made sure each piece would fit, using a custom-built model of the new speaker and a 3D model of a custom PCB. Good thing, too, because there is barely enough clearance for the speaker. Be sure to check out the brief demo video after the break.

Homebrew Sferics Receiver Lets You Tune Into Earth Music

$
0
0

It probably comes as little surprise that our planet is practically buzzing with radio waves. Most of it is of our own making, with cell phones, microwaves, WiFi, and broadcasts up and down the spectrum whizzing around all the time. But our transmissions aren’t the only RF show in town, as the Earth itself is more than capable of generating radio signals of its own, signals which you can explore with a simple sferics receiver like this one.

If you’ve never heard of sferics and other natural radio phenomena, we have a primer to get you started. Briefly, sferics, short for “atmospherics,” are RF signals in the VLF range generated by the millions of lightning discharges that strike the Earth daily. Tuning into them is a pretty simple proposition, as [DX Explorer]’s receiver demonstrates. His circuit, which is based on a design by [K8TND], is just a single JFET surrounded by a few caps and resistors, plus a simple trap to filter out the strong AM broadcast signals in his area. The output of the RF amplifier goes directly into an audio amp, which could be anything you have handy — but you risk breaking [Elliot]’s heart if you don’t use his beloved LM386.

This is definitely a “nothing fancy” build, with the RF section built ugly style on a scrap of PCB and a simple telescopic whip used for an antenna. Tuning into the Earth’s radio signals does take some care, though. Getting far away from power lines is important, to limit AC interference. [DX Explorer] also found how he held the receiver was important; unless he was touching the ground plane of the receiver, the receiver started self-oscillating. But the pips, crackles, and pings came in loud and clear on his rig; check out the video below for the VLF action.

Viewing all 31 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>