How to play Star Wars sound on a piezzo (Nerdkit)

 

 

First of all you need the notes of the music you want to play with your piezzo.

I found my notes at http://tubepartitura.blogspot.co.at/ -

 

After that you should be able to read the notes to transfer them into Names and their Unit.

The unit of the frequency is Hertz (Hz).

You will get all frequencies from this website http://www.phy.mtu.edu/~suits/notefreqs.html -

 

You can download the whole program(.c and .hex files) from the download-section.

 

 

{code lang:c id:10 title:"Imperial March - Code" hidden:false}}{/code}