A small and simple interface to enable an Arduino to become a Model Railway DCC accessory decoder.
Use this interface with an Arduino to create your own Accessory decoders, DCC monitors, turn out control, signal control in fact anything your imagination can create.
No more messing about with breadboards.
How to Connect the board to an Arduino…..
On one side of the board is a 3 way connector
Pin 1 – + 5v – Connect this to a 5V source ( or the 5v pin on the Arduino )
Pin 2 – – GND – Connect this to the power source GND ( or the GND pin on the Arduino if you are using the Arduino as a power source )
Pin 3 – Ard – Connect this to an Arduino External Interrupt pin – the most commonly used pin is D2 – most libraries will use this pin.
The other 2 pin connector is the DCC input. Your DCC feed will be two wires – one to each rail – connect a feed from one rail to Pin 1, and another feed from the other rail to Pin 2.
- You need to make sure you have a good clean, strong signal from your DCC Controller.
- Depending on your DCC controller – you might have to switch the feeds over before a signal is picked up – if you don’t see packets switch the feeds.
Testing the Interface.
The easiest way to test the interface is to upload a monitoring sketch from MynaBay Inc. and watch the packets appear on the Serial Monitor in the Arduino IDE.
Follow the instructions from Step 15 to install the DCC_Decoder library.
Take a look at an example sketch to see how it can be turned in to a small cheap DCC decoder…