Electronics for the Holidays
By Joel Jordan


     Thanksgiving is past and Christmas is almost upon us.  That means it's time to pull out your tangled mess of lights and decorate your room or apartment.  But this year, don't settle for the same boring chaser light setup you always use--throw some electronics know-how into the mix and make a display you can be proud of.
      Most light strings plug directly into the wall, meaning they expect to see an AC voltage.  Unfortunately, the digital circuits you'll want to control the lights with run on DC voltages.  Thankfully, a device called a triac bridges this gap for us.  It's a semiconductor device that acts as a switch for AC current that's turned on and off with a DC voltage.  The MAC15A8 is a triac you can buy for about $1.20 at the ECE stores on campus which will easily handle a string of lights.
      Another important component is the optoisolator.  Since you'll probably want to control your lights with a computer via the parallel port, you'll need to somehow isolate the computer from the light strings in case something goes wrong.  A simple component like the MOC3041 will do this job for you, and they sell for about $1.00 each from any electronics supplier.
     So what would a typical light control circuit actually look like?  See the example below.
     This circuit uses a single data bit of a PC parallel port to control a string of lights.  Please note that ACM cannot take responsibility for the use of this circuit.  Also, make sure that the side of the circuit plugged into the wall is physically separated from anything you might touch.  It may be wise to add a fuse to this circuit, though the light strings usually provide this for you.
     To turn on the lights, simply set the least significant bit of the parallel port.  Clear the bit to turn off the lights.  Or, substitute the parallel port interface with a microcontroller.  For more fun, connect multiple strings of lights to the other data bits of your parallel port by repeating this circuit.  Cut up strings of lights for more possibilities.
     Triacs can be used for other control projects as well.  Check out the Linux Coffee how-to at http://www.linuxdoc.org/HOWTO/mini/Coffee.html for a particularly good example.

SIGArch Logo

Chair: Joel Jordan
Email: sigarch@acm.uiuc.edu

Meeting Time: Thursday 7:00 PM
Place:  L510 DCL

     The Special Interest Group for Computer Architecture has been busy for the last month preparing an Engineering Open House project the like of which has never been seen before in the hallowed halls of DCL. The goal: to erect a dance stage capable of choreographing to arbitrary music through the power of real-time digital signal processing and interface this stage to a host PC using a custom USB slave board we're developing.
     While the DSP code is being developed as a separate project, considerable effort will be needed to develop 8052 microcontroller code for each stage module, write drivers to talk to the stage, and also to synchronize the entire setup on a host PC. ECE students--or hardware savvy CS majors--this is your chance to build a project that will finally answer the age-old question: How can we teach engineers to dance?
     In other news, SIGArch freshmen members designed and built PIC microcontroller-based circuit boards as platforms with which to learn PIC assembly language.

3