ES-80BeginnerPremium
ESP32 Piano Stairs: Every Step Plays a Note (5 LDR + 5 LED + Buzzer)
The world-famous piano stairs experiment on your desk: an LDR light gate on every step catches the shadow of a foot, and the ESP32 plays that step's note on the buzzer and lights its LED. The steps are C D E F G; at start-up every LDR measures the room light and sets its own threshold. Climb the whole flight for a rising tune, go down for a falling one.
0.0(0)

What if every step of the school stairs played a note as you climbed? A light sensor catches the shadow your foot casts on the step, the step's note plays and its light comes on, and anyone who climbs the whole flight gets a short tune. With five light sensors, five LEDs and a buzzer you can even play Ode to Joy on the steps.
Source Code
Premium Content
The source code, block version and FAQ of this project are open to Premium members.
- All Project Code
- Block version
- Frequently Asked Questions
