This is an Arduino decoder sketch with library for decoding the signals from the Märklin-Motorola-protocol. Credits for the library are fully for GitHub user Laserlight, all the files are in the forked repository https://github.com/buzz4stroke/MaerklinMotorola
The sketch for controlling the accessories is my own design. You can control the Arduino with signals from your central control if it is sending the MM2 protocol. Examples are: Marklin 6021, Marklin Mobile station (not version 1), Marklin Central Station, Intellibox, ESU ECOS and more, computer controlled layouts are no problem, as long as the signal is the Marklin MM2 protocol.
The name ARDIMO_wise is an acronym for ARduino DIgital MOtorola. The suffix is an acronym for wi(ssels) en se(inen) which is Dutch for turnout and signals.
Accessories to be controlled:
- Turnout with coil
- Turnout with servo
- Signal with coil
- Signal with servo
- Signal with lights
- Lights on/off
- Decoupler rail with coil
Signal polarity from the rail isn't relevant. Library is working with timings only.
Example-Circuit to get required signal to Arduino:
Additional informations about the protocol
Protocol: