8Arduino Piano
In this project we’ll use some momentary pushbuttons and a piezo sounder to create a simple piano.
PARTS REQUIRED
Arduino board
Breadboard
Jumper wires
Piezo sounder
8 momentary tactile pushbuttons
8 1k-ohm resistors
HOW IT WORKS
Each pushbutton in our project (see Figure 8-1) is connected to an Arduino pin, and when the pushbutton is pressed, the piezo sounder will emit one of eight notes.
FIGURE 8-1: A momentary pushbutton and its circuit
When pressed, a pushbutton completes a circuit, turning it on. As soon as the button is released, ...
Get Arduino Project Handbook, Volume II now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.