I'm trying to use the aux pins in the pixhwak to control servo or leds. I am able to use the RC9 / RC10 / RC 11 for the same. But i want to extend it to RC12 / RC13 / RC 14 .i.e. Aux out 53/54/55 in pixhawk. But there are no servo buttons in mission planner to control the pins other than RC5 - RC 11 . Please help me to do the same. I also tried to give PWM signals from RC5 - RC8 to control a servo. It doesnt work. 

Views: 5983

Reply to This

Replies to This Discussion

Even if i define aux pins 53/54/55 for servo control or led on off where will i have the control for them to control or switch on or switch off ?

Ok, you need to set this parameter to get the number of Aux ports to use as PWM: BRD_PWM_COUNT

You use the Channel options to control the flight controller with one of the radio channels.  I have CH9_OPT set to 28 to turn a relay on or off based on the PWM value.

Then you define a relay from 1 to 4 to use one of the Aux out pins.  So I set RELAY_PIN to 55 for the last AUX pin.  So when I set relay 1 on this Aux pin will change.

If you program a mission you can also turn on or off relays during the mission.

You can also use the RC functions to pass through the Channel to the Aux pin if its set to PWM.  So RC9_FUNCTION set to 1 will pass channel 9 straight through to AUX 0.  The safety switch may need to be pushed before you will see the PWM.

Hi Michael , about RC pass through function .I have done some tests and I found no way to use it to activate a relay output .

In standard Pixhawk config , Pin 54 is a relay output , that correspond to Rc channel 13 .

But if you define RC13 with 1 , pass through , you'll have a PWM output not a Relay output, I'm I wrong ?

Correct, if you do pass through you get only PWM output from the radio.  If you define Relay 1 as 54 (RELAY_PIN=54) it becomes a relay pin and will go from 0v to 3.3v. From there you would need to use a FET to drive some device like an LED.

So if you define channel 10 (CH10_OPT=28) as a relay it will turn the first relay on when the PWM value is above 1800 and in this case will change the value of pin 54.

Currently the flight controller only goes to channel 12 and not 13 so you can't use it to control a relay.

Guys thank you for the reply.
I got i working by tweaking Mission planner to get servo controls in the Servo tab. Extended the controls for Servos 12, 13 and 14. Thank you very much for the replies  once again. 

I was not able to operate the second relay with the radio control.

It seems that the relays other than relay 1 can only be switch by waypoints mission and not radio control.

So only one relay can be operate by the pilot directly .

what settings did you use?
I have channel 9 set as 28 (EPM) relay 1 at aux1 brd_pwm_count is 0 but still no relay 3,3v output when switching ...

Luc Maximilien said:

I was not able to operate the second relay with the radio control.

It seems that the relays other than relay 1 can only be switch by waypoints mission and not radio control.

So only one relay can be operate by the pilot directly .

Reply to Discussion

RSS

Season Two of the Trust Time Trial (T3) Contest 
A list of all T3 contests is here. The current round, the Vertical Horizontal one, is here

© 2020   Created by Chris Anderson.   Powered by

Badges  |  Report an Issue  |  Terms of Service