There are four different pieces of code used to control the jukebox. A PIC microcontroller is used to facilitate communication between the cases in the tower and the computer. Here is the PicBasic code for the Tower controller.

Each case has a PIC microcontroller that listens for commands from the tower controller and reponds appropriately. Here is the PicBasic Pro code for the case microcontroller.

A perl script is used to communicate serially with the tower controller and also to control iTunes (via Applescript).The Perl Script.

There is also a microcontroller that fades the mood lighting on the side of the device.Click here for the PICBasic Pro code for the colorfading.