Step 10 : 8 Channel 595 with SSR's. Added 11/15/06
On this 8 channel board with onboard SSR's the 74HC595 and MOC3023 opto's have the same power supply, which in my case is a regulated 5.1 vdc supply. No ULN2803 is needed.
There has been a lot of debate of the input resistor value for the MOC3023 OPTOISOLATOR. Here are my thoughts.
When I built the board I didn't know what I was going to use as a power supply. I planned on 5Vdc +/- 10% tolerance (4.5v -5.5v)
I knew the resistors would have a 5% tolerance.
This is from the Fairchild MOC3023 data sheet:
"3. All devices are guaranteed to trigger at an IF value less than or equal to max IFT. Therefore, recommended operating IF lies between max IFT (30 mA for MOC3020M, 15 mA for MOC3010M and MOC3021M, 10 mA for MOC3011M and MOC3022M, 5 mA for MOC3012M and MOC3023M) and absolute max IF (60 mA)."
And,
Input Forward Voltage: Typical = 1.15V, Max = 1.5V
So... my worst case math:
4.5v - 1.5v = 3v
3v/.005 = 600ohms
I chose 560 ohm.
560 + 5% = 588
560 - 5% = 532
3v/588 = .005102 (The Opto's would be "guaranteed" to trigger.)
Now for the other end of the spectrum:
5.5v - 1.15v = 4.35v
4.35v/532ohm = .00818
.00818 x 8 = .06544 (65.4mA)
If all 8 outputs of the 595 were on at the same time it's still under the 75mA Max VCC limit. So no ULN2803 is needed. If you use a power supply of a different voltage you will have to do your own math, your resistors may have to be a different value.
Daisy chaining the boards shouldn't be a problem, I used screw terminals with a .200" pin pitch from Radio Shack. You can see them in the pic. Just connect Gnd - Gnd, +5v - +5v, STR - STR, CLK - CLK, and SER DATA OUT to DATA IN on the next board.