Hi,
I am trying getting into the Arduino-Drone world with trying a simple example.
Hence once I turn on my FS-i6 remote control the serial monitor gets stuck.
I try to read-in a pwm signal from my receiver FS-IA6B.
Binding before with my remote control seemed to work fine and I can also see my correct supply voltage (4.5V) of my receiver at the FS-i6 display.
The code I am using is...
int PWM_PIN1 = 11;
void setup() {
// put your setup code here, to run once:
pinMode(PWM_PIN1,INPUT);
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
int pwm1 = pulseIn(PWM_PIN1, HIGH, 25000);
Serial.println(pwm1);
delay(5);
}
My pin-out:
5V Power to VCC of my receiver
Gnd to Gnd of my receiver
Pin 11 (PWM) to signal pin of my receiver
I am using Arduino Uno.
I compile and upload the code.
I start my serial monitor and it shows 0 (as expected)
Once I turn on my remore control my serial monitor gets stuck and doesn't display any further values.
Already tried 1000 thinks without any progress.
Any help appreciated.
Regards,
Leo