Re: FrSky V8 transmitter module using Arduino and CC2500
Posted: 06 Nov 2020, 15:30
Try the basicFourFunction sketch, Andy. That should get you some servo movement. You don't need to actually connect any pots to the analog inputs A0 to A3 - just leave those pins floating and there will be enough drift on the analog readings to make the servos move. You can just link one of those analog inputs to VCC or GND to drive the servos to their standard +/- 100% travel limits.
I don't understand why it's not recognizing your cppm signal. Have you connected up the GND from the cppm src (taranis or Phil's PPM tester) to the GND on your CC2500 unit? If you've only connected the one wire and the src and target have floating grounds (e.g. battery powered) then that would explain it.
If it's not that, you could try changing the pinMode statement on line 99 to pinMode(CPPM_PIN, INPUT); instead of pinMode(CPPM_PIN, INPUT_PULLUP); but I'm not confident that will make any difference. Another thing to try is to alter the attachInterrupt( statement on line 100 to RISING instead of FALLING - but I don't really expect that to work either.
I don't understand why it's not recognizing your cppm signal. Have you connected up the GND from the cppm src (taranis or Phil's PPM tester) to the GND on your CC2500 unit? If you've only connected the one wire and the src and target have floating grounds (e.g. battery powered) then that would explain it.
If it's not that, you could try changing the pinMode statement on line 99 to pinMode(CPPM_PIN, INPUT); instead of pinMode(CPPM_PIN, INPUT_PULLUP); but I'm not confident that will make any difference. Another thing to try is to alter the attachInterrupt( statement on line 100 to RISING instead of FALLING - but I don't really expect that to work either.