Binding RC button to SERVOn_FUNCTION

I have a SpeedyBee F405 v3 flight controller and I would like to notify another BOARD that the RC button was pressed by wiring the M8 pad of the FC to one of the GPIO inputs.

I tried the following settings in Mission Planner:

  1. Found a non-busy RC channel in Mandatory Hardware → Radio Calibration. Let it be RC8.
  2. Went to Servo Output and set SERVO8_FUNCTION=RCIN8. ( also tried to set RCPassThru)

When I press the RC button, I see two values: 987 (if the RC button isn’t pressed) and 2010 (if the RC button is pressed). However, if I check the voltage on the M8 pad, nothing changes, regardless of the RC button’s position.

What could I do wrong?

Thanks in advance.

you need to set it up as a relay output.

https://ardupilot.org/copter/docs/common-relay.html

1 Like

Thanks.

It works, but seems the doc is a little bit outdated. I don’t see RELAYx_FUNCTION. There is only RELAYx_PIN.

So I set RELAYx_PIN and RC8_OPTION to RELAY2 and the behaviour started to be as expected.

some parameters might not appear until you reload the parameters after enabling the relay.

1 Like