Infrared Model Train Detector Circuit

6,329

Circuit Image

This simple and economical infrared model train detector circuit is designed specifically for hobbyists who want to incorporate a smart sensor to detect trains on their model railway track. The schematic diagram illustrates a straightforward configuration comprising an infrared transmitter and receiver, centered around the PLL Tone Decoder LM567 (IC1). The circuit operates effectively within a range of approximately 10 to 50 cm. The output of the detector is galvanically isolated using a standard opto-coupler CNY18-2 (IC2), allowing for suitable interfacing with any external circuits for further processing tasks. The operation of the circuit is simple: when light from the infrared sender (D1) is reflected by the wagon of the model train, IC1 receives the recovered signal through the infrared photo sensor (D2) at its input pin (pin 3). If the PLL (IC1) locks onto the signal, its output (pin 8) goes low, thereby disabling the opto-coupler IC2 for a specific duration, and this cycle repeats based on the number of wagons. Infrared components D1 and D2 should be positioned so that D2 can only detect reflected light. As the train passes, the infrared light is reflected at regular intervals, generating a pulse code corresponding to the train. By utilizing an external circuit connected through IC2, it becomes possible to differentiate various model trains based on this pulse code. While the selection of D1 and D2 is not overly critical, they must be band compatible. The operating point of the detector relies on the levels of reflected light, and the resistor R2 (22K in this case) may need to be adjusted for optimal performance.

This infrared model train detector circuit provides a practical solution for enhancing model railway systems by enabling automatic detection of trains. The integration of the LM567 PLL Tone Decoder allows for reliable signal processing, ensuring that the system can accurately identify the presence of trains based on the reflected infrared light. The use of the CNY18-2 opto-coupler ensures electrical isolation between the detector circuit and any connected external systems, which can include alarms, automated signals, or other control mechanisms.

To optimize the performance of the circuit, careful attention should be paid to the positioning of the infrared components. D1 should be aligned to emit infrared light directly onto the track, while D2 must be positioned to receive only the light that is reflected back by the train wagons. This setup minimizes false triggering from ambient light sources and enhances the reliability of the detection system.

The choice of infrared emitters and detectors is crucial; they should be selected based on their wavelength compatibility to ensure efficient operation. Additionally, the tuning of resistor R2 is essential, as it influences the sensitivity of the detector. Depending on the reflective properties of the model train wagons, adjustments to R2 may be required to achieve the desired detection range and response time.

Overall, this circuit design is an excellent addition to any model railway enthusiast's toolkit, allowing for enhanced automation and control over train operations through efficient detection mechanisms.This simple and economical IR model train detector circuit is intended especially for those hobbyists who wish to add a smart sensor to detect trains on their model railway track. As can be seen in the schematic diagram, it comprises of a simple infrared transmitter and receiver wired around the good old PLL Tone Decoder LM567(IC1).

It has a worki ng range of around 10 to 50 cm. Output of the detector is galvanically isolated with the help of a standard opto-coupler CNY18-2 (IC2), which can be suitably interfaced to any external circuit for further processing task(s). Working of the circuit is straight forward. When light from Infrared sender (D1) is relected by the wagon of the model train, IC1 through Infrared photo sensor (D2) receives the recovered signal at its input point (pin3).

If PLL (IC1) is locked, its output (at pin8) drops low, thus disabling the optocoupler IC2 for the specific time and this process repeats based on the number of wagons. Infrared componets D1 and D2 should be mounted such that D2 can only pick up reflected light. When a train passes, the infrared light is reflected at certain intervals, which produces a sort of pulse code` for the train.

Using an external circuit connected through IC2, it is possible to distinguish various model trains from each other using the pulse code! The choice of D1 and D2 is not very critical, but they must be band compatible. Operating point of the detector is dependent on refleted light levels and value of the resistor R2 (here 22K) may need to be tuned` for optimum performance.

🔗 External reference