Introduction: Sound Sensor Using a LM324

Picture of Sound Sensor Using a LM324

This is a dual mic (left/right) input sound sensor. I made this sound sensor to add to a robot for ears. The heart of the circuit is a LM324 quad op amp and a pair of condenser mics.
The sound sensor operates by taking mic signal into an Op amp + input to amplify it. The output from this first Op amp is inverted by a second Op amp by feeding the amped output into the - input of the second Op amp. The output from the second Op amp will only go high when the mic detects high level of sounds.
This sound sensor circuit can be altered simply and used as a pre amp for the mics.




Step 1: Breadboarding

Picture of Breadboarding

I tried several condenser microphone circuits and was not happy with the results.
I wanted a sound sensor that would output voltage when it heard relatively loud noises. I.e. a decimeter. It couldn't be too sensitive it needed to "ignore" background sounds and only pick up local noises like command sounds.
The sound sensor also needed to be 2 input left an right "ears" so I could compare which direction the sound was coming if desired.
The work done by diybloke sent me on the right direction. My final circuit is very close to his.

Step 2: The Schematic

Picture of The Schematic

I found using 2 op amp to condition the mic signal if only the + inputs on the amp were used yielded a pretty good amp sound of what the mic was hearing but I didn't see good voltage changes that were usable. But feeding the output of the first amp into the invert side of the second amp gave me the voltage change I wanted although the sound quality of the final output was not great. But for my purpose this didn't matter.

The first schematic pic above is actually 1/2 of the final sensor but ill start with this for simplicity.

Parts needed:
Op amp x 2
I'm using 1/2 of a LM324
Condenser mic x 1
Resistors
100K x 2
1k x 2
22k x 1
68k x 1
Capacitors
22uf x 1
470uf x 1
0.1 X 1


In the second pic is the complete sound sensor circuit with LED displaying the signal outputs from the 2 channels.

Step 3: Soldering

Picture of Soldering

Above are shots of how I layed the circuit out on the Project board. After testing that I didn't mess anything up too bad the LEDs were removed and another pair of terminal connectors was added to output to my logic display and elsewhere to use the signals.

Done!!!

Step 4: Final Notes

Picture of Final Notes

For final mounting in my ongoing robot build A3-8D I stacked this sound sensor with a binary counter circuit and mounted this pair on a scrap price of lexan plastic.
The pair of boards on the left of the first pic above are audio amp circuits salvaged from thrift store phone dock speaker units. These were simply mounted to the radio shack PCB I like #276-150. The small circuit piggybacked on the lexan mount is a 12V to 5V regulator.

The mics and their mounting are seen in the last pics. These were mounted on either side of the robot's head. For the time being the sensor only indicates with LEDs when it hears something I plan to use these outputs as feedback to robots arduino processor.

Comments

_F_SOCIETY (author)2017-01-13

How does this work?.If you have video please share

_F_SOCIETY (author)2017-01-13

Hello syfrog. What is v1 out and v2 out where should that be connected?. You have used a transistor in 2nd pic of step1(breadboarding) which is not present in your circuit diagram.Can help please?

syfrog (author)2015-11-23

It is ground (I flubbed the symbol in the drawing.)

djaggi (author)2015-11-22

whats on pin 11 in the schematic

syfrog (author)2015-03-28

In a sense I suppose it is a noise canceling amp. But the circuit is not optimized for audio quality playback etc.. I'd be interested in the results for your application keep us posted!

tinkerman92 (author)2015-03-26

So is this circuit essentialy a noise canceling mic? Sorry if i misunderstood the ible. I really hope thats what this works as as i would like to build one for my hands free that im adding to my car

syfrog (author)2014-08-12

One step closer to my own astromech droid! LOL

MsSweetSatisfaction (author)2014-08-11

Thanks for sharing, I love the idea of a robot with functional ears.

About This Instructable

18,282views

56favorites

License:

Bio: I work in industrial automation and spend any free time making.
More by syfrog:GONK Droid From JunkFile Creating With Python ProgrammingBAYMAX: My first Python Project
Add instructable to: