Mahamudul Karim Khondaker
Published © CC BY

Arduino Sound Sensor Module / Sound Sensor with arduino Code

All resource are given here free. Its easy to understand.

BeginnerProtip18,523
Arduino Sound Sensor Module / Sound Sensor with arduino Code

Things used in this project

Story

Read more

Custom parts and enclosures

lcd_base_bb_fritz_nL8bFdQRe1.png

Schematics

arduino-hookup-sound-detector_oSCMtL7uvX.png

Code

Arduino Code

Arduino
https://plus.google.com/u/0/+MahamudulKarimKhondaker/posts/NNAjthiHg5i
#include <LiquidCrystal.h>
const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);
void setup(){ lcd.begin(16, 2);
  Serial.begin(9600); // open serial port, set the baud rate to 9600 bps
}
void loop(){int val;
      val=analogRead(0);   //connect mic sensor to Analog 0
      Serial.print("Sound=");
      Serial.println(val,DEC);//print the sound value to serial        
      lcd.setCursor(0, 0);
lcd.print("Sound=");
lcd.print(val);
lcd.print("   ");
delay(1000);}

Credits

Mahamudul Karim Khondaker

Mahamudul Karim Khondaker

43 projects • 76 followers
Completed BSc at Electrical & Electronic Engineering (EEE) From United International University. Dhaka, Bangladesh

Comments