Archive

December 22nd

Source Code for Arduino Lighting & Music Controller

The source code for the Arduino lighting controller I used in my 2011 layout. In addition to this code, it requires the Metro timer library and the EZExpander library. Download the TGZ for the full package. Some of the files include:

  • debug.h - enables/disables debug messages over the serial console.
  • layout_lighting.ino - the main program.
  • leds.h - maps individual bits to the LED they control.
  • MelodyPlayer.cpp - Allows music to be played while the LEDs continue to blink.
  • samples.h - list of christmas carols converted to be played by melodyplayer.cpp.

 

DSC_5932

DSC_5932

DSC_5933

DSC_5933

December 9th

Arduino Test Harness

Testing the Arduino micro controller to make sure it can drive the LEDs before I start mounting everything in the layout..

Christmas 2011

Train Layout 2011 - 02

Train Layout 2011 - 02

Train Layout 2011 - 01

Train Layout 2011 - 01

Train Layout 2011 - 07

Train Layout 2011 - 07

Train Layout 2011 - 09

Train Layout 2011 - 09

Train Layout 2011 - 10

Train Layout 2011 - 10