Skip to main content

Station Lighting System -PCBs

I need to get a lot of lighting onto the station building and platforms - each lamppost that I have made requires two miniature LEDs and the building itself will probably need several score. I'd also like for each scenic component to be removable e.g. the platforms. Without a mess of wiring.

Ideally I'd also like the LEDs to be programmable so I can e.g. simulate flickering fluorescent tubes and coz I am a geek.

I settled on using Raspberry Pi 2 ZeroW as the controller device - cheap and with programmable outputs. But each output is very low current maximum and would only drive a couple of LEDs.

So I need some driver circuitry that can be controlled from the Pis - I have chosen a ULN2003A Integrated circuit where each Darlington pair can give 0.5A which is enough to power more leds that you will ever need on one output.

Then I would like to power the Pi from the same power supply as the LED power supply so I will use a little step down DC-DC converter that takes 9V and gives 5V (TSR 1-2450). I want to use 9v so each lamppost pair of lamps can be controlled on a single circuit.

So I have designed three relatively simple PCBs

  1. A Controller 'hat' for the PiZero with four 10 way ribbon cable connectors and one 2 way PCB terminal block for power input.

  2. A 10 way break out PCB particularly for use under the platforms so can have a maximum width of around 16mm.

  3. A terminal block and resistor PCB that will connect two LEDs via lever connectors and have a location for the resistor

I have designed these in Eagle (before I switched to the much preferable open source KiCad as Eagle has been destroyed by Autocad).

It is incredibly cheap to have PCBs made these days each one is under a pound for production and shipping.

So I mount the PiZero with the hat under the circuit with a single 9v feed then a 10 way ribbon cable runs to the underside of the platform that then feeds the individual terminal blocks which can connect one or two LEDs each on their own circuit.

My intention then is to have wireless control of the LEDs from a single master Pi or similar.

/images2024/Mk2_LED_Connector.thumbnail.jpg /images2024/IMG_5653.thumbnail.jpg /images2024/led_connector_wired.thumbnail.png /images2024/IMG_5655.thumbnail.jpg /images2024/Station_Lamp_Driver_Circuit.thumbnail.jpg /images2024/IMG_6710.thumbnail.jpeg /images2024/P1020846.thumbnail.jpeg