Project #3 – The Tapper
Tap the speaker plugged into the Arduino, and it plays a tune back to you on that same speaker. In this project, BuilderBot and “Super-Awesome” Sylvia will show you how a regular speaker can be both an input and an output in the same project! Afterwards, you can adjust this project to trigger almost anything you want.
Be sure to read the directions in the book to find out how to build The Tapper!
Looking for the code? Copy and paste the following into your Arduino IDE, hook up your speaker & Arduino, press upload and try it out!
To use it, tap or flick the speaker until the LED blinks. Do this three times (or however many the code says to do) and it should play you a song.
This software is licensed under the CC-GNU GPL version 2.0 or later.