Good day - My wife and I have traveled across the country on Amtrak a number of times and I always take along a scanner to monitor the train’s radio communications. The defect detector reports were always of interest.
This inspired me to try my hand at creating one for model railroads. After a few weeks of work I finally have it (mostly) working and thought it might be of interest to some of you.
The detector uses two small lasers and two phototransistors that sit across the track from one another. A passing train breaks the beams allowing the Arduino to compute the train’s speed, length and number of axles. It also has a temperature sensor.
Once a train has passed the Arduino uses a small MP3 player to speak its report just as the real ones do!
I have placed a short video on YouTube here:
Photos, code and details of its construction are on my web page here:
http://www.trainelectronics.com/Arduino/DefectDetector/
You will note that the video and web page photos are of an HO implementation but there is no reason that this unit would not work equally well with G-scale. In fact I plan on bringing one along to the ECLSTS in March and to demonstrate it during my seminar.
Please let me know if you have any questions or ideas for enhancements beyond the ones I have listed.
thanks!
dave