This project uses a microcontroller to
drive a speaker and play one of two
songs: Yakety Sax (the chase song
from the Benny Hill Show) and
Entrance of the Gladiators (the clown
juggling unicycle song).
The tunes are stored as a series of
distinct notes. Β The frequency and
duration of each a note is sent to a
function. Β A square wave is generated
based on the inputs. Β The nice thing
about this is it can be configured to
play any song you have the sheet
music to.
For more detail: Soundtrack using PIC16F688 Microcontroller