Robotrain is the LEGO® 4558 Metroliner model on steroids.
I modified the original LEGO model and augmented it with Arduino, Raspberry Pi and several electronic components to make it remote controllable.
The main features are:
- More cars which are connected by Jacobs bogies instead of standard bogies with coupling
- Train running on 12 V permanently powered tracks
- Train carries an Uninterruptible Power Supply that allows it to run on non-powered tracks
- NodeMCU Mini with motor driver as motor control
- NodeMCU Mini as remote control
- Raspberry Pi Zero W with camera module as cockpit cam
- MQTT as common communication interface
Planned features are:
- Mobile app that resembles the cockpit of a real train with a view from the drivers seat
This is work in progress. Please see the the sub-directories of modules for more information!
Feel free to fork this repository and use it for your own projects!
The electronics and software work for all 9 V track-powered train motors and should also work for the battery powered version.
You need to modify the motors to lead the current out of the chassis through one pair of cables and take the motor power in through another pair of cables. I will provide a tutorial on that later!
This repository uses the Git LFS extension for binary files. Please activate Git LFS before you commit changes to any of the file types listed in .gitattributes!
I'm happy to accept contributions to the main project!. Please have a look into the Issues and see if you can submit a pull request that implements one of it. I'm happy to discuss details with you before you start to work. Maybe we can collaborate on a new feature.
You can also submit pull requests for fixes and features that are not alrady in the issues. If I like it, I will merge it ;-)