** DCCInterface.com produces Arduino boards that work with this library. Contact them for details on their hardware.
To begin, you'll need to install the Arduino IDE from www.arduino.cc. You'll find the download and complete instructions for your environment there. It's recommended that you install the IDE and run some of the default examples on an Arduino before tackling the DCC Monitor.
DCC specifications contain DCC packet format details. Visit NMRA.org for more details.
Be sure to Like us on Facebook to hear about updates to this and other projects.
The DCC Monitor will parse the DCC signal and count packets. Every two seconds the data is dumped out the serial monitor on your computer.

We built a DCC monitor using an Arduino Uno and a few components.
This article will walk you through how we built it.
Arduinos and parts can be found on Amazon.com, see the links in righthand column. Digi-Key is a great place to purchase the optoisolator, diode and resistors.


Arduino Uno
Small breadboard
2 - 10K resistors
1 - 1K resistor
1 - Diode 1N4148
1 - Optoisolator 6N137
6 - Jumper wires
We'll start by building this circuit. A big thanks to Dave Falkenburg for providing this circuit to us. It made this project possible.

The DCCIN connections are the two rails where you want to monitor the DCC signal. This signal is run through an optoisolator (6N137). This protects the Arduino from the higher voltages on the rails. The output of the optoisolator is connected to pin 2 on the Arduino. This pin drives interrupt 0 on the Arduino, software takes it from there.
We'll be building this circuit on the breadboard and connecting to the Arduino Uno.
**** There have been several users reporting that this doesn’t work on Chinese made Arduinos ****














At this point your hardware is assembled and ready to go. On to the software.
See the Arduino site for more information on installing a library.
Step 16 - Attach the Arduino to your platform with the USB cable. No photo, but a simple step.
Step 17 - Launch Arduino IDE and choose the DCC_Monitor example. If DCC_Decoder isn't there you might need to restart Arduino IDE or the library isn't installed correctly. Go back to step 15.

Step 18 - Upload the sketch to your Adruino.

Step 19 - Wait for upload to finish.

Step 20 - Open the Serial Monitor in the Arduino IDE.

Step 21 - Turn on the DCC booster and watch packet data in monitor window.

That's it...Enjoy your DCC monitor.