This project is a conglomeration of electronic goodies that let you automate control of your model trains. The heart of the system is, of course, a Raspberry Pi. The primary sensors are Hall Effect sensors, which effectively allow you to know where the train is at any given time. Other goodies include a L298N motor driver and SG-90 servos.
Demo video: [click here]
If you want to learn more about the Raspberry Pi, or electronics in general, and like model trains, then this project is perfect for you! We recommend reading through the Device Pages to both learn and test for yourself how each individual device works before trying to build the entire train set which is described in the System Pages.
» If you are using a Raspberry Pi version 4B, please visit the Drivers & Utilities page and update your version of WiringPi before working with the individual device drivers or the trolley software itself.
Keywords: Raspberry Pi model trains, pca9685, pca9635, L298N ,txs0108e, sg90, ads1115, lcd1602