Playing the Carols

Time to Spread Some Holiday Cheer!

Now that we know the circuit is working, it’s time for the show! Four copyright-friendly songs have been chosen from the public domain:

  • Deck the Halls
  • Jingle Bells
  • We Wish You a Merry Christmas
  • O Christmas Tree

These four songs are included as four separate programs in the project zip archive download.  You can download play them directly to make sure they sound right, and you can use them in other projects. 

The four songs have been incorporated into one master program, CarolingDeviceWithLights.bs2. In this project, we’re going to use four of the switch's five positions to play four different songs, and use the fifth position to stop playing a song when the user desires. As each song plays, the LEDs will blink in a unique pattern.

  • Download CarolingDeviceWithLights.bs2 to your BASIC Stamp board.
  • Move and hold the 5-position switch to the left position to play We Wish You a Merry Christmas.
  • Hold the switch in the down position to play Jingle Bells.
  • Try the right position to play We Wish You a Merry Christmas.
  • Try the up position to play O Christmas Tree.
  • Stop the device at any time by letting the switch return to the center position. 


Choose your own songs!
Just because these four songs were chosen for this application, doesn't mean that you need to use them too - get creative! Pick four of your favorite holiday tunes and search the internet for the sheet music. Then, use the Playing Sheet Music with the Piezospeaker Mini Project to transform that sheet music into PBASIC code. Finally, read through How the Caroler Works to see how a song gets incorporated into the Caroling Device main code.