While playing around with a piezo on my Arduino UNO I wanted it to play a nice song for me. So I googled the notes for The Imperial March and finally found some useful data here. After quickly hacking some JavaScript using the awesome Johnny-Five library I got it working :-)
- Arduino UNO with Firmata firmware installed and connected to your computer via USB
- A piezo connected to GND and PIN ~3 on your Arduino board
- Node.js installed on your computer
- clone this repository:
git clone git@github.com:layflags/arduino-playing-the-imperial-march.git
- go to project folder:
cd arduino-playing-the-imperial-march
- install required software:
npm install
- start it:
npm start