New versions of Arduino DCC Decoders are available.
DCC Function Decoder
The possibility to use the direction of travel of the loc (forward or reverse) to switch outputs has been added. This makes it possible to switch head and tail lights depending on the loc direction. It is built in both the Arduino and the ATtiny version. How to configure this, is shown inside the code.
DCC Accessory Decoder
A mode has been added to switch signals using two pins. The outputs are inverse, if pin1 is HIGH, then pin 2 is LOW. How to configure this, is shown inside the code. Four modes are available now:
mode 1 – Continuous output. OFF at startup.
mode 2 – One shot, with a timer. OFF at startup.
mode 3 – Flasher with 2 outputs that alternate, with 2 timers. OFF at startup.
mode 4 – Signal with 2 outputs that always are inverse. At startup one of them is ON.
The output logic has been changed with respect to the previous versions. In the new versions, the Arduino output pin is LOW when accessory or function is switched ON, and vice versa. If you need it the other way around … it is not difficult to edit this in the code, just do a ‘find’ for all digitalWrite instructions and modify them.
The download contains all Aduino decoder versions, S88-, sniffer- and sound software.