Arduino tone() and Piezo Buzzer: Notes, Wiring, Full Code
Build a playable electronic piano with an Arduino UNO R4 and a passive piezo buzzer. Complete with a note-to-frequency table, circuit diagram, annotated code, demo videos, and an FAQ covering the usual pitfalls — finished in about an hour.