SOUND DETECTING MODULE WITH ARDUINO
SOUND DETECTING MODULE:- This module is used for detecting sound waves and then producing a corresponding output signal in analog and digital form.
First the sound waves are detected by an electret or condenser mic which then gets passed to an amplifier IC for the amplification process. This IC then amplifies the signal and produces an output in the form of analog signals as well as digital signals. For adjusting the sensitivity, PRESET is there whose knob can be rotated to increase or decrease the sensitivity level.
Pinout:-
1.AO PIN:- It is an analog output pin .
2.GND PIN:- connected to the ground pin of Arduino.
3.POSITIVE PIN:- connected to 5v pin of Arduino.
4.DO PIN:- It is a digital output pin.
SOUND DETECTING MODULE INTERFACING WITH ARDUINO
1.Connect VCC pin of sound detecting module with 5v pin of Arduino.
2.Connect GND pin of sound detecting module with GND pin of Arduino.
3.Connect AO pin of sound detecting module with A0 pin of Arduino.
4.Then take 20 LEDS and common all cathodes of LEDS and then connect them to the GND pin of Arduino .
5.Then take the two middle most LEDS and common their positive terminals then connect it to 2nd pin of Arduino.
6. Similarly connect other 2 LEDS from Left and right side of center, common their anodes and connect them with other consecutive pins of Arduino.
ARDUINO CODE
____________________________________________
int value,pins;
void setup()
{
pinMode(A0,INPUT);
for(pins=2;pins<12;pins++)
{
pinMode(pins,OUTPUT);
}
}
void loop()
{
for(pins=2;pins<12;pins++)
{
digitalWrite(pins,LOW);
}
value=analogRead(A0);
if(value>700)
{
value=map(value,700,1023,2,12);
for(pins=2;pins<=value;pins++)
{
digitalWrite(pins,HIGH);
}
}
}
__________________________________
To learn this project in more detail, click here on this image to learn this project in more detail.
Comments
Post a Comment