Devices & Components
Arduino Uno Rev3
Jumper Wires
USB Cable 2.0 Type A/B for Arduino Uno
Prototype Expansion Board for Arduino Uno
Breadboard
Project description
Code
Arduino Code
arduino
https://plus.google.com/u/0/+MahamudulKarimKhondaker/posts/NNAjthiHg5i
1#include <LiquidCrystal.h> 2const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2; 3LiquidCrystal lcd(rs, en, d4, d5, d6, d7); 4void setup(){ lcd.begin(16, 2); 5 Serial.begin(9600); // open serial port, set the baud rate to 9600 bps 6} 7void loop(){int val; 8 val=analogRead(0); //connect mic sensor to Analog 0 9 Serial.print("Sound="); 10 Serial.println(val,DEC);//print the sound value to serial 11 lcd.setCursor(0, 0); 12lcd.print("Sound="); 13lcd.print(val); 14lcd.print(" "); 15delay(1000);}
Downloadable files
arduino-hookup-sound-detector_oSCMtL7uvX.png
arduino-hookup-sound-detector_oSCMtL7uvX.png

arduino-hookup-sound-detector_oSCMtL7uvX.png
arduino-hookup-sound-detector_oSCMtL7uvX.png

Documentation
lcd_base_bb_fritz_nL8bFdQRe1.png
lcd_base_bb_fritz_nL8bFdQRe1.png

lcd_base_bb_fritz_nL8bFdQRe1.png
lcd_base_bb_fritz_nL8bFdQRe1.png

Comments
Only logged in users can leave comments