Hardware Reference
In-Depth Information
NOTE TheSudoGlove,amongothersthings,isacontrolglovethatcansynthesize
musicusingthepentatonicscale.Youcanlearnmoreaboutitat www.sudoglove.com .
To make your Arduino piano, you use this pentatonic scale: C, D, E, G, A.
You can choose what octave to use based on your preference. I chose to use the
fourth octave from the header file.
First, wire five buttons up to your Arduino. As with the buttons in Chapter 2,
“Digital Inputs, Outputs, and Pulse-Width Modulation” you use 10kΩ pull-down
resistors with the buttons. In this scenario, you do not need to debounce the but-
tons because the note will be played only while the desired button is held down.
Wire the buttons as shown in Figure 5-6 and keep the speaker wired as you had
it previously.
Figure 5-6: Micro piano wiring diagram
Search WWH ::




Custom Search