Mahamudul Karim KhondakerDIYables
Published © CC BY

Arduino Sound Sensor Module / Sound Sensor with arduino Code

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

BeginnerProtip71,102
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 • 127 followers
Completed BSc at Electrical & Electronic Engineering (EEE) From United International University. Dhaka, Bangladesh
DIYables

DIYables

0 projects • 79 followers
I would like to invite you to join and add your projects to DIYables platform https://www.hackster.io/diyables

Comments