MobaStation is a open source project to create a full digital model railroad control system based on Arduino. Main goal of the project is to use only cheap, easy to get components that can easy assembled.
MobaStation works with the Z21-LAN-Protocol. So you can connect it as Z21 to control systems like rocrail, traincontroller (not tested yet) and others. You can also use mobile-apps like the official Z21 app.
For DCC we use the Maggge/DCC-Library wich is extracted from DCC-EX-Library and slightly modified.
For accessories like turnouts, sensors and others we use the Maggge/MobaBus-Library.
Coming soon: XpressNet to connect Roco multiMAUS controller.
-
Build the MobaStation:
1)For Network connectivity are different possibilities:- Arduino Mega with integrated Wifi-Module (the ESP needs to be flashed with the AT 1.7 firmware)
- Arduino Mega with ESP-01 connected to Serial3 (the ESP needs to be flashed with the AT 1.7 firmware)
- Arduino Mega with Ethernet Modul
- Arduino Mega with Ethernet and Wifi (the ESP needs to be flashed with the AT 1.7 firmware)
2)Arduino Motorshield for DCC
3)Optional: MCP2515 Can-Bus-Modul for MobaBus
4)Optional: MAX485 RS485-Modul connected to Serial1 for XPressNet (at the moment not activated) 5)Optional: Track-Power-Button (connected to Pin 24 and GND) and Track-Status-Led (connected to Pin 25 and GND). I use a Button with integrated LED-Ring 6)Optional: Track-Voltage meter (Voltage divider on MotorDriver Input. Connected to Pin A15. Resistor - values will follow). -
Download the latest Release (not the source code!) and extract it.
-
Connect the Arduino Mega to USB.
-
Open the MobaStation Config Tool.
-
Open "Flash device" in Menu.
-
Select the COM Port of the Arduino and the firmware contained in Package and "Flash device".
-
Now you can connect to MobaStation in Menu
-
Open the config window in Menu.
-
Enter your settigns. Press "Write config" and voilà. Your MobaStation is now ready to drive your trains!