PixHawk Aux Ports and programming - Solved

To control Aux2 from RC IN Channel 10 simply configure SERVO10_FUNCTION to RCIN 10 (60). If you want to use all 6 Aux ports for Servo’s set the BRD_PWM_COUNT to 6.

Thanks! I see following choices for BRD_PWM_COUNT

0:No PWMs 1:One PWMs 2:Two PWMs 3:Three PWMs 4:Four PWMs 5:Five PWMs 6:Six PWMs 7:Seven PWMs 8:Eight PWMs

so, if I select for example, 3 I am assuming other pins become Relay?

What about this relay feature?

Setting BRD_PWM_COUNT parameter to 6 sets all Aux ports to PWM. None will be available for relays. Relays are configured by setting the Aux outputs to GPIO. So if you want 4 PWM outputs and 2 relays for example then set the BRD_PWM_COUNT to 4. Aux 1-4 (chan 9-12) will be configurable for PWM and Aux 5&6 (chan 13&14) can be configured for relays. There are other parameters to set relays

I don’t know what you mean by “anything in Mission Planner needs to be set”. These configurations changes are made from Mission Planner.

1 Like

Hi…you replied so fast, I was correcting my mistake. i got it.

Any idea on the relay feature? What does that relay means in electronic terms?

It will provide a 3.3V output you can use to trigger a relay coil.

1 Like

Perfect! thank you so much. You solved all my issues. Highly appreciated.

Happy to help. With a Pixhawk only the 6 Aux outputs can be configured this way. 7&8 are not valid choices.

Edit: Actually for Plane and Rover I think you can use the Main outputs for GPIO.

1 Like

My other challenge is that my Futaba T14SG radio is linked to R7008SB receiver which is supposed to be a 15 channel receiver in Mode D.

Inside the Futaba radio when I go to the function section, its only listing channels up to 12. So I can only assign Aux 1,2,3,4 inside the radio. Not sure how to map Aux 5 and 6.

Any suggestions?

Sorry, no. I’m not familiar with Futaba. But looking at the Mode Table in the manual for the Rx perhaps you would want Mode B. Or maybe it’s no different than Mode D for Sbus only the PWM assignments.

Have you changed the mode in the receiver?
Make sure you are not plugging into the S.Bus2 port. It is the single flat one below the other plugs

This video shows the change in the receiver

1 Like

I am using the S-Bus port to connect to PixHawk, not S-BUS2.

I have tried both Mode B and D.

Its a 12 Channel RX that’s why its only listing 12 channels inside the radio. The other two channels are hard coded to two knobs on that radio, DG1 and DG2

Kind of sucks :), Taranis Receivers gives you so many channels (up to 32) and at such a lower price point for the same technology.

Do you guys know what Futaba RX gives you like 14 + Channels?

Is anyone of you know the solution for this post?

I used quadcopter (generic quadrotor) f450 with pixhawk 4 , and i used pwm auxiliary pins from (aux1 to aux 4 ) , and i changed qground parameter to use actuators instead of motors, then i want to use servo , so i connected it to pin (pwm out aux 5 ) with external 5v battery, everything works good and i can control the servo from qground, but when i tried to control servo from Rc ( channel 5 ) I can’t as there is no response….
Anyone can help please ?
@dkemxr

Set SERVO13_FUNCTION to RCIN5 (55).

This parameter in qground?

Forget about QGC, use Mission Planner. If you are using the PX4 flight stack and not Arducopter you are on the wrong forum.

I never used mission planner….
So i can not do it with qground?

Answer the question about the firmware you are using. PX4 or Arducopter.

I’m using px4 as firmware

You are on the wrong forum. Go here PX4

1 Like