Skip to content

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

Notifications You must be signed in to change notification settings

AndTH/CmdrArduino

This branch is 11 commits behind drFerg/DCCCommander:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

35c3bcf · Jul 29, 2015
Jul 14, 2015
Jul 14, 2015
Jul 14, 2015
Jul 7, 2015
May 20, 2015
Mar 23, 2015
Apr 6, 2015
Jul 3, 2015
Apr 4, 2015
May 21, 2015
May 21, 2015
May 5, 2015
May 12, 2015
Apr 6, 2015
Dec 13, 2012

Repository files navigation

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) or MCPWM0 (ARM) takes these packets and injects the highest priority packet into the precision DCC waveform. This signal is suitable for amplification with your booster/power station. Please note that the Arduino outputs are not themselves capable of driving trains directly.

Currently, CmdrArduino supports various Arduino devices including atmega168/328 variants, as well as the Yun and attiny.

Installation

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

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 65.7%
  • C++ 34.3%