The content is aimed at people interested in train control, programming, electronics and mechanics for model railway systems.
I would like to encourage everyone who develops Arduino solutions for model trains to publish their work here, and you can choose whether you want to write your contribution in your native language or English.
Write to [email protected] to become affiliated and join teams.
The library is under construction and Danish documentation and guides need to be translated into English.
Danish G model Railway Association
NMRA Standards and Recommended Practices
https://github.com/MTD2A/Train_Emergency_Stop
The speed tells how many milliseconds the sensor needs to detect and process. The distance traveled from where the sensor is located, to where the locomotive has moved on to, depends on how quickly the sensor can process and action taken. Up to about 20 cm when train is running fast and the sensor is "slow".
The distances shown are those supported by the Arduino Nano program. Several sensors can measure longer. However, the measuring angle will typically limit the distances to 50 cm.
Most infrared sensors does not work in daylight. Light interference can be significantly reduced by mounting 1-2 cm aluminum tubes or similar blank tubes. At the same time, the measuring angle is reduced considerably, which provides more precise detection. Sensors should not be mounted with vertical tubes, as dust and dirt can get into the tubes, and thus there is a risk that the sensor will not function correctly.
If dirt gets on the receiver or transmitter units, there is a risk that the circuit will not function correctly. This is particularly risky when mounted under rails. It is possible to use two sensors simultaneously to achieve greater reliability. This applies to a lesser extent when mounting the ultrasonic sensors under rails, as the ultrasound is powerful and penetrating, and the sensor diameter is significantly larger Ø16 mm.
Is the most accurate, reliable and efficient train detecton method.