Decoder Driver Board (Signal Driver)

RR-CirKits Revision G

Characteristics:

There were several characteristics I required in a signal driver. They were low cost, (about $5 per head)  isolated input, and reasonable output current. Other desirable traits included simple power requirements, and some sort of decoding to reduce the number of input lines required to drive it. If it could optionally drive motor drive switch machines, all the better. It needed to be able to drive either common anode or common cathode signals, as well as lamps with few if any external parts required.

The current crop of accessory decoders are not really a very good solution for driving signals unless one wants to invest in LOTS of decoders. A simple 3 aspect signal takes half of a DS-54 or AD-4 to drive, and then only if you apply a decoder to the outputs. Just driving the signal lamps directly will eat up 3/4 of an entire decoder. What I wanted was a way to take bare computer I/O output and drive signals. The resulting board can also be driven by an accessory decoder if desired. (it will take two accessory decoders to drive one 4 signal decoder board.) By comparison, one computer I/O board can drive as many as 18 decoder boards or 72 signals. (normally it will connect to a mix of detectors and drivers) The newly announced WinLok PIA-8255 driver allows any railroader to take advantage of a computer to control signals of any complexity. This capability is no longer restricted to DCC users of a few manufacturers, but extends to DC users as well.

As in my block occupancy detector, low cost dictated the use of readily available inexpensive parts, not necessarily the fewest parts. A bi-directional output op-amp such as the LM-324 is low cost, and will easily supply enough power to run LED signal lamps directly. The input power requirements for the op-amps are very flexible, and this circuit runs happily with from about a 5VDC to a 25VDC supply. If you build it with the 4 aspect option, then it needs to be powered with at least 10VDC. If your power requirements exceed 15ma per lamp or motor, then you will need to add in the optional driver transistors, which will boost the output up to 100-150ma. continuous, or 500ma. momentary.

This board is primarily designed to be driven directly by either the 8255 parallel I/O in a computer or some type of block circuit controller. It may also be driven with the outputs of an accessory decoder as mentioned above. Each board will drive either four 3, or 4 aspect signals, eight 2 aspect signals, or eight switch motors. It has no local switch machine control capability. That is planned for another board. The DDB is not designed to drive solenoid operated switch machines, but by using the WinLok pulse output option on the PIA-8255 driver and connecting external switching power darlingtons wired to the output connections it could be done. Another option would be to use a capacitor and steering diodes to in effect provide a CD supply to each switch machine.

Link to a DDB image (135KB) This picture shows a DDB-G mounted on a layout stringer. The wide flat cable is from the PIA-8255 board, and the 4 narrow flat cables go out to the 4 track side signals controlled by this driver board. The black and white wires are 10VDC power from the layout accessory power bus. (actually +5 and -5 from two old computer power supplies on the LM&PH)

Operating principles:

Link to the DDB Schematic-G (16KB) (Updated 3-May-99)
The schematic shows just one of the four identical circuits on each board. Two bits of information are passed from the PIA to each signal. The PIA outputs are optically isolated from the driver power by U1 and U2. The outputs from U1 and U2 are decoded into 4 states by the resistor network consisting of R1-R18. For the two head - 4 aspect option P2-9 or P2-10 drives the lower signal. For dual or bi-color LED's add two current limiters, one each to your plus, and minus signal power. As P2-10 swings from + to - it will drive one or the other LED through it's limiter to the opposite power source. The DDB is designed to drive common anode 3 LED signals, or either polarity of 2 LED signals. If the signal or motor current required exceeds the drive capability of an LM324, then you may install the optional driver transistors. When constructed with the direct output option (omit R10, R11, and R13-R18) this board will drive either 8 two color signals, or 8 switch motors such as Tortoise or Hankscraft. If the maximum motor stall current is limited to 15ma or less, they may be directly connected to the LM-324 outputs P2-2 and P2-4 or P2-8 and P2-10. For higher power motors such as the Tortoise or other limit switch equipped drives you will need to add the driver transistors Q1-Q8. You will then connect the motors to output pins P2-1 and P2-3 or P2-7 and P2-9.

Parts:

Parts List:           Price:    Source:
Ref.        Qty Part        Q1   Jameco
--------------------------------------------
C1           1  220/25     .17   30496
C2           4   .1/25     .10   151116
R1,2,3,8,9,
*10,*11,12,*14,
*15,*16,*17 48  1/4W 47K   .012  31149
R4,5,6,7    16  1/4W 4.7K  .012  31026
*R13,*18     8  1/4W 33K   .012  30841
R19,20,*22  12  1/4W 330   .012  30867
*R21,*23,*24 12 1/4W 1K    .012  29663
U1,U2        8  4N33       .39   41030
U3           4  LM324      .35   23683
P1,P2        5  10-pin     .29   67811
P3           1  2-Term     .35   152346
*D1          4  1N4148     .04   36038
*Q1,3,5,7   16  PN2222     .11   28628
*Q2,4,6,8   16  PN2907     .10   28644
DDB-G        1  PC Board  9.45          RR-CirKits DDB-G

                Total    21.01
                         17.65  Without Q1-Q8

* Starred items optional with some configurations.

Resistors R21-R24 are used to set the brightness of your LED's when using direct drive from the LM324. For LED signals this is normally sufficient. Your values will depend on the LED's you choose for your signals and the operating voltage you choose, and should be adjusted accordingly. The output voltage is approximately 2 volts less than your supply voltage. Another option is to assemble the board without these resistors, then try different values until you are happy with the results. Do not choose a value that will cause more than a 15 ma. load. If you require more than 15 ma. to drive your loads, then you must install the optional driver transistors and use external resistors. The values shown are the ones I use. I operate the boards with 10VDC.

You can direct drive incadecent lamps or low current stall motor switch machines if the current does not exceed 15 ma. by using the direct outputs from the LM324. (P2-2,4 and P2-8,10) This drawing shows the 8 output two aspect option with LED current limiters installed. I have used a lower resistance for the green LED current limiter to try and compensate for the reduced sensitivity of the eye to green light, or the lower output of green LED's or whatever it is that makes the green LED's appear to be dimmer than the red and yellow ones with the same drive current.
Image of direct drive parts layout.(29Kb)

For larger current requirements, install the optional driver transistors and use the second output set. (P2-1,3 and P2-7,9) This image shows the parts for driving 8 limit switch equipped switch motors. (higher current than stall motor drives)
Image of "H" bridge parts layout.(29Kb)

The following image shows the parts layout for the 4 aspect option, using direct drive LED signals.
Image of 4 aspect parts layout.(30Kb) Omit D1 and R23 for the 3 aspect option.

Note: Be careful to note the difference between R4-R7 (4.7K) and the other resistors in the same row. (47K) These colors are very difficult to distinguish under some lights.

I purchased all my parts from Jameco http://www.jameco.com

Last updated  12-Jan-00
Copyright © 1999-00 Dick Bronson