Hobby king receiver stopped functioning after upgrades on RC Mower with arduino

The attached file contains the sketch I have written to generate a 7-channel ppm signal for input to a 2.4GHz R/C transmitter. It generates the PPM signal on pin 7 and varies the pulse width for channel 1 depending on the setting of a potentiometer with the centre connection on pin A2.

Basically there is an array of data which represents counts for Timer1 and each value is used in turn. Each interrupt toggles Pin 7 and sets up the count value for the next pulse.

It should work perfectly well if you modify it to ignore the potentiometer and you could try some options by hard-coding pulse widths in the array - just for testing.

...R

TrainRadioPot.ino (5.62 KB)