Skip to content

Raspberry Pi NMRA DCC Decoder Hardware and Software

License

Notifications You must be signed in to change notification settings

bicknell/rpi-dcc-decoder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published