Fixed a few things and cleaned up a bit of code for a new firmware release on the AirRx. Here I’m using it to control a small live steam locomotive.
Below are a couple of shots of the electronics in the tender:
The electronics on the bench:
Short video:
All of the CV settings:
/* * Decode message packets here and do servos and config variables * * CV 201 - Radio Channel 0-15 * CV 202 - DCC Address lo * CV 203 - DCC Address hi * CV 204 - Servo Mode 0=Steam, 1=couplers, 2=ESC * CV 205 - Servo0 LowLimit Lo * CV 206 - Servo0 LowLimit Hi * CV 207 - Servo0 HighLimit Lo * CV 208 - Servo0 HighLimit Hi * CV 209 - Servo0 Reverse * CV 210 - Servo1 LowLimit Lo * CV 211 - Servo1 LowLimit Hi * CV 212 - Servo1 HighLimit Lo * CV 213 - Servo1 HighLimit Hi * CV 214 - Servo1 Reverse * CV 215 - Function Code for Coupler 0 * CV 216 - Function Code for Coupler 1 * CV 217 - Function Code for Output x * CV 218 - Function Code for Output y * CV 219 - On/Off Code for Output x * CV 220 - On/Off Code for Output y * CV 230 - Reset to factory defaults */