-
1Assemble Wave Sheild
The wave shield kit should be assembled following the instructions posted here: https://learn.adafruit.com/adafruit-wave-shield-audio-shield-for-arduino/make-it
-
2Format SD card
Continue to follow those directions to format your SD card for FAT.
-
3Format Audio File using Audacity
Follow the instructions above and use Audacity to format your audio file for use with the Wave shield.
Copy the file to the SD card (It should be the only file on the card).
Eject the SD card.
Put it in the SD card slot on the Wave Shield.
-
4Connect speaker
Connect a small speaker to the two pins on the Wave shield dedicated for this.
-
5Upload Audio.ino
Use Arduino IDE to upload Audio.ino to your Arduino Uno.
This should play your audio file on loop over the speaker and confirm that this part is working.
-
6Download the New Ping library for Arduino
Add New Ping to your Arduino IDE just like you would any other Arduino library.
It is found here: https://playground.arduino.cc/Code/NewPing/#Download
-
7Connect Ultrasonic Sensor
Use (4) jumper wires to connect the ultrasonic sensor to the Arduino Uno (To the Wave Shield headers).
5V, GND, ECHO - D11, TRIG - D12
-
8Upload Ultrasonic.ino
Use Arduino IDE to upload Ultrasonic.ino to your Arduino Uno.
Open the serial monitor and move your hand or a piece of paper up and down in front of the eyes to see the distance and confirm that this part is working.
-
9Connect Sound Detector
Use (3) jumper wires to connect the sound detector to the Arduino Uno (To the Wave Shield headers).
5V - VIN (Only do this if you are powering the Arduino at 5V with a USB cable), GND, AO - A0
-
10Upload Mic.ino
Use Arduino IDE to upload Mic.ino to your Arduino Uno.
Open the serial monitor and snap, talk, poke the mic to pick up sound.
You'll also want to observe the output level when you aren't making any noise. (Ambient)
Set the threshold slightly higher than ambient so you don't get false triggers.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.