I tried to read a PWM signal from Pixhawk by connecting it to Arduino. The Pixhawk is connected to FrSky X8R. But my PWM always reads to zero.
Here's my arduino code
#define RCPin 4
int RCValue;
void setup() {
Serial.begin(9600);
pinMode(RCPin, INPUT);
}
void loop() {
RCValue = pulseIn(RCPin, HIGH,25000);
Serial.println(RCValue);
}
The picture attached is also my wiring.