Happy Birthday Melody with Arduino

I programmed an Arduino Uno to play the “Happy Birthday” melody using a buzzer. The melody is stored as an array of frequencies, while a second array defines the duration of each note.

Aug 20, 2026

•

2372 views

•

5 respects

•

LGPL3+

Devices & Components

1

10 jumper wires 150mm male

1

Arduino USB 2.0 CABLE TYPE A/B 1M

1

Arduino Uno Rev3

1

220 ohm Resistor-

1

Buzzer-

Software & Tools

Arduino IDE

Project description

Code

Happy Birthday Melody with Arduino

cpp

Play the “Happy Birthday” melody using a buzzer

Comments

Only logged in users can leave comments

niyoushasm

0 Followers

•

0 Projects

5

0