I/O Board Parts List continued ...
ITEM VALUE PART NO. DESCRIPTION
❑ IC701 MOC3010M MOC3010M-ND Optocoupler Triac-out 6-DIP
❑ IC801 MOC3010M MOC3010M-ND Optocoupler Triac-out 6-DIP
❑ Q201 Q4008LH4SHORT Q4008LH4-ND Alternistor 400V 8A TO-220AB
❑ Q301 Q4008LH4SHORT Q4008LH4-ND Alternistor 400V 8A TO-220AB
❑ Q401 Q4008LH4SHORT Q4008LH4-ND Alternistor 400V 8A TO-220AB
❑ Q501 Q4008LH4SHORT Q4008LH4-ND Alternistor 400V 8A TO-220AB
❑ Q601 Q4008LH4SHORT Q4008LH4-ND Alternistor 400V 8A TO-220AB
❑ Q701 Q4008LH4SHORT Q4008LH4-ND Alternistor 400V 8A TO-220AB
❑ Q801 Q4008LH4SHORT Q4008LH4-ND Alternistor 400V 8A TO-220AB
❑ R1 1K P1.00KFCT-ND RES 100Ω 1/4W 1% 1206 SMD
❑ R2 10K P10.0KFCT-ND RES 10.0K 1/4W 1% 1206 SMD
❑ R3 10K P10.0KFCT-ND RES 10.0K 1/4W 1% 1206 SMD
❑ R4 10K P10.0KFCT-ND RES 10.0K 1/4W 1% 1206 SMD
❑ R5 10K P10.0KFCT-ND RES 10.0K 1/4W 1% 1206 SMD
❑ R6 10K P10.0KFCT-ND RES 10.0K 1/4W 1% 1206 SMD
❑ R7, R8,R9,R10 Not Used
❑ R101 475R P475FCT-ND RES 475Ω 1/4W 1% 1206 SMD
❑ R102 475R P475FCT-ND RES 475Ω 1/4W 1% 1206 SMD
❑ R103 330R P330BBCT-ND RES 330Ω CARBON FILM 1/2W 5%
❑ R201 475R P475FCT-ND RES 475Ω 1/4W 1% 1206 SMD
❑ R202 475R P475FCT-ND RES 475Ω 1/4W 1% 1206 SMD
❑ R203 330R P330BBCT-ND RES 330Ω CARBON FILM 1/2W 5%
❑ R301 475R P475FCT-ND RES 475Ω 1/4W 1% 1206 SMD
❑ R302 475R P475FCT-ND RES 475Ω 1/4W 1% 1206 SMD
❑ R303 330R P330BBCT-ND RES 330Ω CARBON FILM 1/2W 5%
❑ R401 475R P475FCT-ND RES 475Ω 1/4W 1% 1206 SMD
❑ R402 475R P475FCT-ND RES 475Ω 1/4W 1% 1206 SMD
❑ R403 330R P330BBCT-ND RES 330Ω CARBON FILM 1/2W 5%
❑ R501 475R P475FCT-ND RES 475Ω 1/4W 1% 1206 SMD
❑ R502 475R P475FCT-ND RES 475Ω 1/4W 1% 1206 SMD
❑ R503 330R P330BBCT-ND RES 330Ω CARBON FILM 1/2W 5%
❑ R601 475R P475FCT-ND RES 475Ω 1/4W 1% 1206 SMD
❑ R602 475R P475FCT-ND RES 475Ω 1/4W 1% 1206 SMD
❑ R603 330R P330BBCT-ND RES 330Ω CARBON FILM 1/2W 5%
❑ R701 475R P475FCT-ND RES 475Ω 1/4W 1% 1206 SMD
❑ R702 475R P475FCT-ND RES 475Ω 1/4W 1% 1206 SMD
❑ R703 330R P330BBCT-ND RES 330Ω CARBON FILM 1/2W 5%
❑ R801 475R P475FCT-ND RES 475Ω 1/4W 1% 1206 SMD
❑ R802 475R P475FCT-ND RES 475Ω 1/4W 1% 1206 SMD
❑ R803 330R P330BBCT-ND RES 330Ω CARBON FILM 1/2W 5%
❑ S1 DIP Switch 3POS GH7182-ND DIP Switch Extended Sealed 3POS
Note: All part numbers are Digi-Key part numbers unless noted otherwise.
the encoder movements, and a quick
check of all segments is suggested. Note
that depending upon the mounting of
the card, the LED display may be upside-down. There are two look-up tables and
a notation in the firmware, which inverts
the data and swaps the digits to correct
the inverted display.
Once an I/O card is completed and
inspected, it can be connected to the
controller card with a 10 pin ribbon
cable. Additional I/O cards are daisy-chained through the same ribbon cable
and a second connector on either the
controller card or the I/O cards. Each
I/O card needs a unique base address,
which is set with a three position DIP
switch. More than one I/O card can
have the same address — in which case,
the I/O cards will each replicate the
same sequence.
The green LED on each I/O card
indicates 5V power is present, and the
controller sends I2C data to the I/O card
to activate the output channels. With
the test software, the eight channels can
be stepped by using the rotary encoder
(on the controller card), and confirmed
with the yellow LEDs (one per channel).
The final stage of the I/O card
check-out is to apply AC power and
a test lamp (or multiple lamps). I
constructed eight lamp sockets on an
acrylic strip to hold eight C7-1/2 5W
bulbs. This is actually a luxury that isn’t
required for testing. This can be done
with a single 120V ‘type A’ 40W household bulb and suitable holder on a
length of lamp cord wire. Again, take
care not to touch the live PCB!
Once the cards are checked out on
the bench, they can be installed and
wired up within the cabinet.
Firmware Installation
■ FIGURE 9
As noted in the introduction, the
holiday lights controller operates without connection to a PC or other devices.
The upside is that a PC is not tied up for
the project, but the downside is that
programming of the holiday lights
controller is required in the first place.
The initial idea was to program the AVR
chip, which can be done off-line (with a
suitable AVR programmer connected to
a PC). This is still the simple way to go!
Another tool is the AVR ISP port
that allows the µC to be erased and
reprogrammed in circuit. As a practical
matter, it’s not easy to haul the system
back to the workshop each time, so the
58
November 2007