Coder Social home page Coder Social logo

dpharris / dcccommander Goto Github PK

View Code? Open in Web Editor NEW

This project forked from drferg/dcccommander

0.0 0.0 0.0 243 KB

DCCCommander is a C/C++ Arduino Library providing the foundation for implementing an NMRA-compliant DCC command station for model trains.

C++ 37.87% C 62.13%

dcccommander's Introduction

DCCCommander

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

DCCCommander provides functions for various train and accessory related settings, including: setting a locomotive’s speed, activating functions, switching turnouts, and programming DCC decoders.

DCCCommander translates these commands into NMRA-compatible DCC packets for transmitting over the tracks. Packets are prioritzed dependent on their type and DCCCommander keeps track of packets that require long-term 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/motor-controller.

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

Currently, DCCCommander 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

Origins

DCCCommander is a heavily modified fork to CmdrArduino - https://github.com/Railstars/CmdrArduino

dcccommander's People

Contributors

bentam avatar berry120 avatar drferg avatar dtcole avatar geoff-coppertop avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.