Soundtrack
Home
PIC Projects
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.

Two wires from the main application
drive this microcontroller.  One starts it
playing and the other chooses which of
the two songs play.
C Code for Soundtrack
Hear them:
March of the Gladiators:
Yakety Sax: