|
|
| 
| | Microcontroller and Relay Strip 2/16/2007 7:00 PM | | PIC microcontroller and transistor/relay strip | I had this section of the project pretty well thought out. I would use my favorite microcontroller (PIC 18F452) to control a bank of twelve relays. A trip to Ax-Man, an order from Jameco and some digging through my reclaimed bits resulted in a perfectly service control board.
The PIC sits in the middle of the breadboard. 5vdc from a power transformer gets fed through a 78L05 voltage regulator to power it. A 4-position switch (off, low, med, high) salvaged from an old box fan provides a little bit of user interface (I was able to program three test patterns alongside the one main production display routine). Each of twelve output pins controls a 3903 transistor which in turn provides 5vdc (@~72ma) to the 250vac relays. Each relay is connected to a bus terminal  | | unit test | to which up to six fluorescent lights will be connected. Each light draws 1/6 amp so six lights in parallel would draw 1 amp. I think the relays were rated for 2 so I was safe.
Because I am thorough I attached an ECC port to provide power to the lights and I even installed a 10a fuse (because if a short did occur I wanted it to only effect my light display and not, say, the much more important primary sound system for the event).
I only had one significant problem in developing the control system. My first version wouldn't light open more than two or three relays at a time (even if no lights were connected to them). It took me an entire day to eventually realized that the 78L05 voltage regulator I was using could only source 200ma; I would have needed 864ma for the relays alone. It then occurred to me that I didn't need regulated voltage for the relays: just for the PIC. The solution was simple and I experienced no further problems.
| |
|
| |
| |
|