Generate NMRA DCC Wave Form Using ESP32
Posted: Thu Feb 22, 2018 8:14 pm
Hi Forum
I am learning how to program on the ESP32. I would like to implement the NMRA DCC Protocol https://en.wikipedia.org/wiki/Digital_Command_Control using the ESP32. Basically the DCC protocol can be used to control the model train speed and direction by varying the period of the voltage is applied to the railway track. This voltage is a variations is used to encode a data signal that is decoded by a decoder in the model train. To represent a binary one a nominally 58 µs half cycle, while a zero is represented by a nominally at least 100 µs half cycle.
I have used PWM signal to control power to motors previously, however the NRMA signalis very different.
Could someone suggest approaches I should review to implement a NRMA signal generator on ESP32/
Thanks
Densha
I am learning how to program on the ESP32. I would like to implement the NMRA DCC Protocol https://en.wikipedia.org/wiki/Digital_Command_Control using the ESP32. Basically the DCC protocol can be used to control the model train speed and direction by varying the period of the voltage is applied to the railway track. This voltage is a variations is used to encode a data signal that is decoded by a decoder in the model train. To represent a binary one a nominally 58 µs half cycle, while a zero is represented by a nominally at least 100 µs half cycle.
I have used PWM signal to control power to motors previously, however the NRMA signalis very different.
Could someone suggest approaches I should review to implement a NRMA signal generator on ESP32/
Thanks
Densha