This article will help you build a simple Arduino-based DCC system. Growing up in the 1980s I was living the dream. I had an HO layout on a 4 x 8 sheet of plywood in my parents' basement in Reading, ...
For DCC Model Raiway : Based on large (incl ESP32 8266...) arduino platform, this program allows to drive 3 colors signal based on DCC frames. Tested with CDM Rail.
#define DCC_PULSE_LENGTH_ONE_MIN 220 //44us (counter 1cycle = 200ns @ 10MHz) #define DCC_PULSE_LENGTH_ONE_MAX 375 //75us #define DCC_PULSE_LENGTH_ZERO_MIN 425 //85us ...