bicknell / rpi-dcc-decoder

Raspberry Pi NMRA DCC Decoder Hardware and Software

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rpi-dcc-decoder

Raspberry Pi NMRA DCC Decoder Hardware and Software

A hardware and software design to connect a Raspberry Pi to a NMRA compliant DCC system, decode the DCC signal and display the output on the screen. As-is it is a "DCC Sniffer", but with minor modification could be used to turn the Raspberry Pi into a stationary decoder.

See HARDWARE.md for the circuit design to connect a Raspberry Pi to the tracks of an NMRA compliant DCC system.

The software uses the pigpio library. Inspired by Frequency Counter 1.

This software is under the BSD 2-clause license, see LICENSE.

Building

make

Running

./dcc_decode 5 -s1

Runs on GPIO 5, with a 1us poller. Use 1us for the best performance.

DCC Reference Documents

About

Raspberry Pi NMRA DCC Decoder Hardware and Software

License:BSD 2-Clause "Simplified" License


Languages

Language:C 99.7%Language:Makefile 0.3%