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. 

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • 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 .

  • 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 .

  • 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. 

  • 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.

  • 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 ?

  • 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.

  • 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 ?

This reply was deleted.

Activity

DIY Robocars via Twitter
RT @Heavy02011: ⁦@diyrobocars⁩ : A Home-brew computer club* for Connected Autonomous Driving. talk at #piandmore ⁦@PiAndMore⁩ on Jan 23rd h…
Saturday
DIY Robocars via Twitter
RT @a1k0n: New blog post! Deep dive into my ceiling light based localization algorithm which runs in 1ms on a Raspberry Pi 3: https://t.co/…
Saturday
DIY Robocars via Twitter
Great new guide to using @donkey_car https://custom-build-robots.com/donkey-car-e-book-en
Saturday
DIY Robocars via Twitter
RT @chr1sa: The next @DIYRobocars virtual AI race is tomorrow morn at 9:00am PT. You can watch live on Twitch https://www.meetup.com/DIYRobocars/events/275268196/
Friday
DIY Robocars via Twitter
New version of Intel OpenBot! This resolves many of the issues with the first version, including a much smoother tr… https://twitter.com/i/web/status/1352395636369313798
Jan 21
DIY Drones via Twitter
Using ArduRover with an RTK GPS https://ift.tt/2N9I3RO
Jan 18
DIY Drones via Twitter
Jan 18
DIY Robocars via Twitter
Jan 18
DIY Robocars via Twitter
Jan 15
DIY Robocars via Twitter
Jan 15
DIY Drones via Twitter
Jan 14
DIY Robocars via Twitter
RT @Heavy02011: @diyrobocars : A Home-brew computer club* for Connected Autonomous Driving on Jan 23rd, 2021 https://www.meetup.com/Connected-Autonomous-Driving/events/275728684/ #Meetu…
Jan 14
DIY Robocars via Twitter
Jan 14
David Hori liked Isabella Domi's profile
Jan 12
DIY Robocars via Twitter
RT @Heavy02011: ⁦@diyrobocars⁩ Autonomous Driving Assembly at #rC3. join us at https://rc3.world/rc3/assembly/diyrobocars-f1tenth/ ⁦@f1tenth⁩ ⁦@DAVGtech⁩ ⁦@DWalmroth⁩…
Jan 11
DIY Robocars via Twitter
RT @chr1sa: New car designs coming for our next @DIYRobocars @donkey_car virtual race on the 23rd. Choose any one you want at race time Le…
Jan 11
More…