Sound Meter
Sound Meter
Sound Meter
Decibel Meter using Sound Module & Arduino with LCD Display has been
designed specifically for detecting the level of sound produced from any source
and its intensity as well. The LCD panel directly displays the information about
the sound level in numbers. The sound is distinguished as low, medium, and
high-level sound on the basis of number. LED by glowing gives the indication
other apparatus.
Components Required
1. ATmega328 Microcontroller or Arduino Board
2. Arduino Sound Module
3. 16*2 LCD
4. Resistors: R1=100E, R2=1M, R3=330E
5. Ceramic Capacitors: C1=C2=22pF
6. Electrolytic Capacitors: 10uF/63v
7. 16 MHz Crystal Oscillator
8. Tactile Switch
9. +5V Power supply
breadboard assembly of the project with Arduino, you can assemble like this.
But if you want to reduce the cost and use it with an ATmega328 microcontroller
you can use this circuit diagram. Here you will learn how to detect ambient sound
and how to handle the signal generated by this module. This board along with
the microphone, has a small built-in amplifier (integrated circuit LM393), because
only the microphone would not be able to send data for Arduino. The connection
scheme is very clean, composed of only 3 pins: Vcc, GND, and S (signal). In the
and thus we can see the different levels of noise picked up by the microphone.
The circuit tests will consist of the module Sound Sensor , plus the display 16x2
LCD. The display at its top, will show the sound level (Low, Medium and High),
and bottom , a bar that will follow in real time the sound level detected by the
➡ Output low level and the signal light will on when there has a voice.
➡ Can be used for the sonic lamp, with photosensitive sensors act as sound and
light alarm, also can be used in the occasion of voice control and sound
detection.
The simple specifications of sound module from left to right first pins are as
follows:
Working
The sound detection sensor module for Arduino detects whether the sound has
exceeded a threshold value. Sound is detected via a microphone and fed into an
potentiometer. When the sound level exceeds the setpoint, an LED on the
input-output pins are not selected on the behalf of Atmega328 pins but on the
behalf of Arduino analog and digital pins. Either use Arduino Board for this
project. Or simply assemble the circuit as shown in the figure. This is done to
reduce costs. The program for both the circuit is the same.
For the above circuit, a fresh new ATmega328 microcontroller with a bootloader
given below.
#include <LiquidCrystal.h>
2
LiquidCrystal lcd(7,8,10,11,12,13);
3
4
int num_Measure = 128 ; // Set the number of measurements
5
int pinSignal = A0; // pin connected to pin O module sound sensor
6
int redLed = 5;
7
long Sound_signal; // Store the value read Sound Sensor
8
long sum = 0 ; // Store the total value of n measurements
9
long level = 0 ; // Store the average value
10
int soundlow = 40;
11
int soundmedium = 500;
12
13
void setup ()
14
{
15
pinMode (pinSignal, INPUT); // Set the signal pin as input
16
Serial.begin (9600);
17
lcd.begin(16,2);
18
}
19
20
void loop ()
21
{
22
// Performs 128 signal readings
23
for ( int i = 0 ; i <num_Measure; i ++)
24 {
27 }
28
32 Serial.println (level-33);
33 lcd.print(level-33);
34 if(level-33<soundlow)
35 {
36 lcd.setCursor(0,2);
37 lcd.print("Intensity= Low");
38 digitalWrite(redLed,LOW);
39 }
41 {
42 lcd.setCursor(0,2);
43 lcd.print("Intensity=Medium");
44 digitalWrite(redLed,LOW);
45 }
46 if(level-33>soundmedium)
47 {
48 lcd.setCursor(0,2);
49 lcd.print("Intensity= High");
50 digitalWrite(redLed,HIGH);
51 }
52 sum = 0 ; // Reset the sum of the measurement values
53 delay(200);
54 lcd.clear();
55 }
below:
1. Switch on the power supply of the training board so that LCD will light up.
2. Initially when everything is silent number 0 or 1 will be displayed on LCD
indication LOW.
3. Turn on the music player and bring the module near to the speaker source,
you will observe the change in number and also level shifting from low to
medium or high.
4. Similarly, turn the volume up or down and check the level of sound. When
extremely high volume is detected red led will glow indicating alert.