Spread the love
0
The end result.
Pre-Knowledge.
Setup your Arduino.
http://brisbaneroboticsclub.id.au/setup-your-arduino/
Install the Arduino Learning Board Library.
http://brisbaneroboticsclub.id.au/arduino-import-learning-board-library/
References.
Nil.
Wiring Diagram.
Sensor | Arduino |
A0 | A0 |
G | GND |
+ | 5V |
D0 | Nil. |
Arduino Code.
File>Examples>Arduino Learning Board>ALB_SoundSensor2
Run the Code.
Upload the code to the Arduino.
Upload the code to the Arduino Board and Open the Serial Monitor (Tools>Serial Monitor).
Change the Baud rate to 115200.
Now make a sound by clicking your fingers.
The values in the Serial monitor should change from 0 to 1023 when a sound is detected.