Wallerawang - Construction, January 2013
Work is progressing steadily on the signalling project, our last major item planned for Wallerawang. The heart of the system, the signal control boards, were finished in early January. Powered by a PICAXE microcontroller, each board has the ability to drive two signals, which can be either of semaphore or coloured light type. The system was designed to provide the most realistic and reliable signal automation for an exhibition layout where trains mostly run in a loop. While out of the scope of its intended operation, the signalling control could be adapted for bi-directional single track lines. In addition, as most of the inputs and outputs use digital logic, the boards can be connected to other circuits to provide for more complex trackwork and interlocking scenarios, or even automatic train control.
For each main line, the signal boards are connected in a daisy-chain fashion, the output of one board indicating the status to the next board along the line. Joining the boards in this manner allows for any number of signals along a section of track and only one wire is needed between any two boards. A simple logic is followed: if a signal is instructed to change to green, then the signal in front of it should also be told the same, making all of the signal aspects along that section of the line green. Where there is a set of points along that section, the signal for the wrong road (ie: the direction the point blades are not facing) will always be red.
The reset inputs and outputs are linked between the boards and are used to propagate the signal status.
- A train has been detected and a signal changes to red, a pulse is sent out of the reset_out_red pin
- A signal board has received a pulse on the reset_in pin, instructing it to return the signal to green, a pulse is sent out of the reset_out_green pin
(as long as there is no train - if the detector is showing as occupied, the signal does not change and no pulse is sent)
A combination of these pulses are then used to control the signals for an entire section of track.
Light Dependent Resistors (LDRs) are used to detect the presence of a train. Apart from the storage yards, our layout has its own lighting so the amount of light falling on the LDRs is consistent. As there are no connections to track power for detection, trains can continue to operate if there is any issue with the signalling system. The LDRs are mounted between the tracks between two sleepers at ballast level, their small size and colouring making them unnoticeable. The signalling program takes into account variations in lighting - it constantly reads the ambient light level falling onto the LDRs, and uses the latest readings for determining detection. Around every five minutes it also reads the light levels when a train is detected, then also uses these readings.
The operation of the storage yard signal control board differs slightly. The points_in pin is not used for monitoring the position of points, instead a pushbutton is wired to it, providing a manual reset function so that the signals can be reset to green at any time.