A compact, playable mini piano built using an Arduino. Each key triggers a different note via a piezo buzzer, allowing you to play melodies and experiment with scales. Perfect for learning about digital inputs, PWM, and tone generation.
Components & Supplies Arduino Uno (or Nano) 7 × Pushbutton switches (12mm) Piezo buzzer Breadboard & jumper wires
Tools & Machines Soldering iron Multitool / screwdriver
How It Works Each pushbutton corresponds to a musical note (C–B) Arduino reads the button state as digital input When a button is pressed, Arduino generates a PWM signal to the piezo buzzer to produce the correct tone An LED indicator lights up while a note is being played You can modify the note values or scales in the Arduino sketch for custom melodies