Built something? We create video reels & spotlights for GitHub projects.Promote your project →
Catalog / Railstars / CmdrArduino
Public GitHub Catalog Discovered Sep 24, 2026

Railstars / 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 favorite booster/power station (I like RAILbooster). Please note that the Arduino outputs are not themselves capable of driving trains directly. Currently, CmdrArduino supports Arduino (including the Railstars Io;duino), with ARM support (for LPC17xx processors) actively being added, making the library name something of a misnomer.

View repository on GitHub ↗ View creator profile Browse directory

About this discovery

This repository is cataloged as part of our automated global GitHub synchronization. Full telemetry, velocity snapshots, and code summaries are scheduled for continuous enrichment.

#1179705GitHub System ID
RailstarsOrganization / User
PublicVisibility
ActiveCatalog Status

More from Railstars

↗

Railstars/Aegaeon

A feature-rich, NMRA standards compliant DCC decoder in 8K. Targeted at ATtiny84A.

Discovered
↗

Railstars/ARMduino

A port of the functions provided by Arduino's WProgram.h for the NXP LPC17xx family of processors; shouldn't be hard to port to other ARM processors either.

Discovered
↗

Railstars/OpenLCB

C++ implementation of the OpenLCB model railroad layout control protocol. For Arduino, AVR-8, and ARM Cortex M3

Discovered
FOR MAINTAINERS

Built something? Put it in front of millions of developers.

We make a short reel about your project and post it across YouTube, Instagram, Threads, and X. Send a link, we do the rest.