Go Down

Topic: LED bar graph to electrolyte mic (Read 1 time) previous topic - next topic

Sluice

Hey guys!

I have a question. I need a little help setting up my project. I want to have 6 LEDs act as a bar graph that reacts to sound. The louder the sound (from a electrolyte microphone), the more LEDs in a row light up. I also want to be able to increase the sensitivity of the mic with a potentiometer. Can somebody help me out with the code and maybe how to set this up?

Thanks!

DuaneB

Hi,

   The quickest and easiest way to do this is to use an LM3914, its a purpose designed chip for audio power metering, its widley available, cheap and easy to use. Search your favorite video site and you will find lots of examples and tutorials for using it.

Duane B

rcarduino.blogspot.com
Read this
http://rcarduino.blogspot.com/2012/04/servo-problems-with-arduino-part-1.html
then watch this
http://rcarduino.blogspot.com/2012/04/servo-problems-part-2-demonstration.html

Rcarduino.blogspot.com

Grumpy_Mike

Look at the arduino esplora schematic, that has a dual op amp set up that will do exactly that. Just change the feedback resistor on the first op amp to a pot.
What this is, is an amplifier followed by a peak detector.

Go Up