Sensors are an important part in train automation, because they provide information that a train has reached a certain position on the layout. When reaching a sensor, the automation software is triggered to do different things depending on the specific situation, e.g. stopping the train, allocating a block ahead, releasing the last block, and many other things.
The following diagram show how sensors are embedded in the system architecture of the MattzoBricks Train Automation System:
Traditionally, 3rd party vendors have supplied sensors for the LEGO train system based on infrared technology. Infrared technology has a couple of severe drawbacks:
- Infrared sensors are heavily subject to the light situation and other environmental influences.
- Infrared sensors have severe problems of detecting dark vehicles with complicated, stealth-like shapes – especially steam locomotives.
- Infrared sensors are ugly and comsume a lot of space on the layout.
- Infrared sensors are difficult to install in curves.
- Infrared sensors are based on optical, analogue technology, with conceptually make it significantly harder and more complex to capture the event of a passing train with sufficient reliability.
To overcome these problems, we have built new sensors that are based on a completely different technology: reed sensors!
Reed sensors have the following advantages over infrared sensors:
- 100% reliable.
- Respond immediately.
- Independent of light situation and environmental influences.
- Can be built into curved without a problem.
- Small footprint on the layout – can even be installed invisibly.
- Work digital and require less costly controllers.
- Cheap to build.
Check out our video on sensors:
In the video, we explain the design of the sensors and go for a testride with the V200 diesel engine and the Emerald Express.
Implementing the magnets into the trains as shown in the video is supposed to be the best and most reliable version of triggering the reed sensor. Anyway, there is also another solution, which is triggering the sensors with the couplings of the vehicles. This is a bit tricky, because you need to turn the reed sensor by 90°, and it does not work as reliable as the neodyme magnet option shown in the video.
The reed sensor is turned vertically by 90° and must be placed in curves a bit on the outer side of the curve. This is because the couplings of longer vehicles swivel out to the outer side in sharp curves, and are no longer precisely overhead the middle of the track. Nevertheless, a single coupling alone does not trigger the sensor yet (see following picture). The reason is not the strength of the magnetic field, but the lack of defined orientation of the magnetic field. This is because the magnet turns freely inside the holder if uncoupled.
This change when you attach a 10mm neodyme magnet on the coupling. The magnet strengthens the magnet field of the coupling magnet and aligns it correctly, so that the reed sensors is triggered.
This even works when the coupling is turned away from the centerline of the track.
Joint couplings trigger the reed sensor without additional neodyme magnet. Their magnetic fields are supporting each other, and the direction of the magnetic is correctly aligned as required for triggered the reed sensor.
The couplings option is in total a bit shaky, and, if at all, only advisable for small layouts. Without additional magnets, the reed sensor will be triggered not until the rear of the loco and front of the first waggon – the first joint pair of couplings pass the sensor.
In addition to the video, there is another way of fixing the reed sensors on the track as shown on this picture (thanks to Henk):
In the following video, the couplings magnet option can be seen in real life:
When operating larger layouts with 20, 30 different trains, of which 10 run concurrently, you will also opt for maximum operational security, and choose the more reliable option shown in the video.
One more thing regarding train motors: a train motor will only trigger a reed sensor if it actively operates, i.e. if current is going through the motor. Only then the magnetic field in the motor is strong enough to trigger the sensor. This should usually be no problem, but when you exhibit your layout on Brickworld, you don’t want to take any risks.
If you want to build the sensors yourself, you need reed sensors type GPS-14A, size 2,5x14mm. The neodyme magnets shown in the video have a diameter of 5mm, height 3mm. You use other magnets if that fits your situation better. Something it is necessary to place two or more magnets in a row, which enlarges and strengthens their magnetic field. If in doubt, better use a magnet too much than too few.
To control the reed sensors, you need a MattzoSensorController. Check out this page to find out how to build it!