Environmental Audio Loudness Meter

by leeselectronic in Circuits > Audio

1454 Views, 7 Favorites, 0 Comments

Environmental Audio Loudness Meter

Schematic.PNG

My project is a sound meter shown by LEDs. It makes use of an electret microphone, op amp, and LM3914 LED Driver IC. How it’s used is the louder the environment around the sensor is, the more LEDs are turned on by the LM3914. It’s a fairly simple and interesting project that’s ideal for newcomers to electronics.

Materials:

· Breadboard (Lee's #10516)

· Jumpers OR (Wire Stripper AND Breadboard Wire) (Lee's #10325 + various)

· 10 × Thru hole LEDs (Lee's #549 + various)

· Electret Microphone (Lee's #2272)

· Operational Amplifier (Lee's #7292 / #7293)

· LM3914 (Lee's #7034)

· 1 μF Capacitor (Lee's #8962 / #82)

· 3 × 2.2 kΩ resistors (Lee's #9223 / #9548)

· 2 × 1 kΩ resistors (Lee's #9190)

· 330 kΩ resistor (Lee's #9427)

· Potentiometer AND Screwdriver (Lee's #71044 + various)

· 2 × AA×3 battery packs (Lee's #21079)

Connecting Up the Microphone

Microphone.jpg

Connect up the electret microphone using jumpers for ground. Also connect the other pin as shown in the schematic. Please refer to the datasheet to find out which pin is which. The capacitor lead not directly connected to the mic can be thought of as the raw sensor output. However this voltage will have a DC bias. To fix this, we can pull the output down to ground with a 1 kΩ resistor. This creates what is known as a high pass filter in this case meaning the DC part of the signal doesn’t pass through at the output but the < 15 mV peak to peak AC signal does. Once the mic is powered up correctly, please check that the output voltage (AC) appears properly.

Powering Up the Circuit

Batteries.jpg

I used two separate 4.5 V DC sources, but if you already have something similar that will work fine as well. This is needed for the AC mic signal to swing fully even when amplified. The red and black wires should be connected to the rails so that +Vcc, -Vcc, and ground rails are present.

Amplification of the Mic Output

Amplifier.jpg

As is the case with most transducers, the signal is too small to be useful to us. AC signals can be amplified with operational amplifiers, transistors, or transformers. However I find op amps the simplest to work with so we’ll focus on op amps. Only one dual supply op amp is needed (I used the TL084 but you can use whichever one you want). All op amp ICs must have at least 5 pins which are Vs+ (positive supply voltage), Vs- (negative supply voltage), V+ (non-inverting input), V- (inverting input), and Vo (output). There is loads of theory behind op amps but the important things to us are that Vo can never go beyond V+ and V- (in reality, the real range is what’s known as +Vsat and -Vsat), the input terminals draw no current (theoretically not practically), and the non-inverting and inverting inputs are kept at the same voltage when the op amp is in negative feedback (Vo connected to V-).

See the schematic for the connections. Our configuration is what’s known as a non-inverting amplifier meaning that the gain is positive. The gain generically is Av = Vo / Vi. For a non-inverting amplifier, Av = Vo / Vi = 1 + Rf / Ri. We are using resistor values of 1 kΩ and 330 kΩ to achieve a gain of 331. Once everything is connected, there should be a pure amplified AC signal at Vo.

Connecting Up the LM3914

Circuit.jpg

The LM3914 is the best option for us to create an analog LED meter without the use of a microcontroller and ADC. It is an LED driver IC We don’t need to know all the specifics of its internals, but we do need to know how to use it. It has 10 main active low outputs that are basically current sources. This IC also has a V- and V+ which are the supply voltages. RLO and RHI are the range for the signal to go between. For our purposes RLO is grounded and RHI is adjusted for using a pot between Vref and ground. RLO shouldn’t exceed Vref. The mode select pin should be held high so that we get a full bar effect with the LEDs. Any LED colours can be used, however I use green, orange, red, and blue LEDs. Refer to the schematic for all the connections. Congrats! You’re done.

Notes

Environmental Audio Loudness Meter

A voltmeter would be a useful tool for this project for troubleshooting. An oscilloscope is even more useful for this project considering it involves a fair amount of AC. Though it wasn’t necessary for our project, we could’ve rectified Vo from the op amp for a cleaner DC signal for use with the LM3914. Please refer to the respective datasheets for any further information on the electret, op amp, or LM3914.