What is this? This Arduino project plays the popular Undertale song "Megalovania" on a piezo buzzer if a push button is pressed. The code makes use of the tone() function to organize the song by note frequencies and durations for each note.
Why would you bother doing this? I thought of this idea at 3:00am. I like the song and I hadn't done much programming on a buzzer, so I figured I had to make it work. It's not like there was much to do in the middle of the COVID-19 quarantine anyway.
- 1 Arduino Uno
- 1 piezo buzzer
- 1 push button
- 1 solderless breadboard
- 1 220ohm resistor
- 5 male-to-male wires
<script async src="//www.instagram.com/embed.js"></script>