Model railroad hobbyist friend Nico Teering took the Arduino DCC decoder software to a whole new level. A wealth of functions are combined all into one Arduino sketch for multi-purpose DCC control of 16 pins. He called it ArCoMoRa: Arduino Controlled Model Railway.
In a joint effort with Sergey Kopachevskiy a new PCB has been designed, which combines the Arduino and a power- and optocoupler circuit into one. Software is available for free and the units can be acquired on a non commercial basis against cost price plus shipping.
MARDEC software has the option to switch 2 ports via 1 DCC address.
A 'double flash' comes in very handy when for instance we have 2 inverse blinking lights, like with a railway crossing,
A 'double one shot' is used to switch a solenoid turnout that has two coils. One port gives a pulse when the DCC address switches to HIGH, the other port gives the pulse when it switches to LOW. FET modules can be used to power the coils of the turnout.
We're going to attach a servo to the DCCnext or Arduino and configure the MARDEC software to control this servo. To make the application work the first thing to do is tune the 2 servo angles for the DCC ON and OFF state. Maybe we also have to inverse the port.