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.
make
./dcc_decode 5 -s1
Runs on GPIO 5, with a 1us poller. Use 1us for the best performance.