I am trying to receive a crossfire RC PPM signal with my teensy 4.1 but am having problems. I am using a TXS0108E Logic Level converter between the RC recever and the Teensy 4.1. I am trying to use the PulsePosition library to receive this input but It is just not working. My simple test sketch is:
this is the output from the serial monitor, it is just flipping between the two different numbers no matter what I change with the RC transmitter sticks.
Any help would be great! Thank you
Code:
#include <PulsePosition.h>
#define rxPin 6
PulsePositionInput crossfire;
void setup() {
Serial.begin(9600);
crossfire.begin(rxPin);
}
void loop() {
Serial.println(crossfire.read(1));
}
this is the output from the serial monitor, it is just flipping between the two different numbers no matter what I change with the RC transmitter sticks.
Code:
748.19
0.53
0.51
1748.16
0.51
0.51
1748.16
0.51
0.51
0.51
1748.16
1748.16
1748.16
1748.16
0.51
1748.16
1748.16
1748.16
1748.16
1748.16
1748.16
0.51
1748.16
1748.16
1748.16
1748.19
1748.16
1748.19
Any help would be great! Thank you