If you are looking for the Chapter 6 content for the 1st Edition of Exploring Arduino, please click here.
Making Sounds and Music
Parts List
- Arduino Uno or Adafruit METRO 328
- USB cable (Type A to B for Uno, Type A to Micro-B for METRO)
- Half-size or full-size breadboard
- Assorted jumper wires
- Pushbuttons (×5)
- 220Ω resistor
- 10kΩ resistors (×5)
- 10kΩ trim potentiometer
- 8Ω loudspeaker
Code
Download Code (2nd Edition, Chapter 6)
(Also available on GitHub)
Useful Links
- Pentatonic Scale Entry on Wikipedia
- Arduino tone() Function Reference
- Arduino noTone() Function Reference
- Arduino while loop Reference
- Arduino #define Reference
- Arduino #include Reference
- Arduino array Reference
- Music Synthesis with the SudoGlove
- Advanced Multispeaker Control Tutorial
Videos
Listen to a sample of Arduino-Generated Audio from this chapter:
Watch a demo video of the “Pentatonic Piano” project from this chapter: