mecparts / CmdrArduino

CmdrArduino provides the foundation for implementing an NMRA DCC command station.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CmdrArduino

CmdrArduino is an embedded library written in C++ that provides the foundation for implementing an NMRA DCC command station.

CmdrArduino presents classes and methods for, among other things, setting a locomotive’s speed, activating functions, switching turnouts, and programming DCC decoders.

CmdrArduino translates these commands into DCC packets. The packets are carefully prioritzed, and CmdrArduino keeps track of packets that require repeating in the background. An interrupt service routine attached to TIMER1 (AVR) takes these packets and injects the highest priority packet into the precision DCC waveform. This signal is suitable for amplification with your favorite booster/power station.

Please note that the Arduino outputs are not themselves capable of driving trains directly.

Currently, CmdrArduino supports Arduino (including the Railstars Io;duino).

To install, see the general instructions for Arduino library installation here: http://arduino.cc/en/Guide/Environment#libraries

About

CmdrArduino provides the foundation for implementing an NMRA DCC command station.


Languages

Language:C++ 79.0%Language:C 21.0%