A Low-Cost ESP32-CAM Prototype for Obstacle Monitoring on a Model Railway Track: Combining Camera Confirmation with Time-of-Flight Ranging
A railway obstacle is most dangerous when nobody sees it in time, and nobody can watch every stretch of track all day. This paper presents a low-cost obstacle detection and monitoring prototype for a model railway track. A VL53L1X time-of-flight (ToF) sensor measures the distance to whatever is in front of the unit, and an ESP8266 NodeMCU compares each reading against a 15 cm threshold. Once an object reaches that threshold, the controller turns on a buzzer through a 2N2222 transistor driver and sends a trigger signal to an AI-Thinker ESP32-CAM, which takes a picture of the obstacle. Distance and status go to a web dashboard so an operator can keep an eye on the track from a distance. The paper covers the system architecture, the full hardware connections (including the GPIO configuration of the ESP8266, VL53L1X and ESP32-CAM), the firmware decision logic and the website monitoring path. In bench tests the assembled prototype responded as expected in every recorded condition: no alert beyond 15 cm, buzzer and camera trigger at 15 cm and closer, and a return to the clear state when the obstacle was taken away. Since these are single recorded outcomes, accuracy, false-detection rate and response time are treated as design bounds here, and the number of trials needed to report them statistically is specified. The camera is used only for visual confirmation and no image classification is done. The prototype is meant for controlled model-track demonstration and is not a certified safety device.
Authors
- Shriya Arunkumar (ORCID: https://orcid.org/0009-0001-7155-7530)
- Divagar S
- Bharath Kalyan T R
- Naveen C S
Publication Details
- Journal
- International Journal of Latest Technology in Engineering Management & Applied Science
- Published
- 2026-11-23
- DOI
- https://doi.org/10.51583/ijltemas.2026.151100014
- Primary Topic
- Arduino and IoT Applications
- Type
- article
- Field-Weighted Citation Impact
- 0.00