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 @chr1sa: Donkeycar 4.4 released with tons of new features, including path learning (useful with GPS outdoors), better Web and Lidar supp…
Nov 27
DIY Robocars via Twitter
RT @NXP: We are already biting our nails in anticipation of the #NXPCupEMEA challenge! 😉 Did you know there are great cash prizes to be won…
Nov 24
DIY Robocars via Twitter
RT @gclue_akira: レースまであと3日。今回のコースは激ムズかも。あと一歩 #jetracer https://t.co/GKcEjImQ3t
Nov 24
DIY Robocars via Twitter
UC Berkeley's DIY robocar program https://roar.berkeley.edu/
Nov 24
DIY Robocars via Twitter
RT @chr1sa: The next @DIYRobocars autonomous car race at @circuitlaunch will be on Sat, Dec 10. Thrills, spills and a Brazilian BBQ. Fun…
Nov 24
DIY Robocars via Twitter
RT @arthiak_tc: Donkey car platform ... Still training uses behavioral cloning #TCXpo #diyrobocar @OttawaAVGroup https://t.co/PHBYwlFlnE
Nov 20
DIY Robocars via Twitter
RT @emurmur77: Points for style. @donkeycar racing in @diyrobocars at @UCSDJacobs thanks @chr1sa for taking the video. https://t.co/Y2hMyj1…
Nov 20
DIY Robocars via Twitter
RT @SmallpixelCar: Going to @diyrobocars race at @UCSDJacobs https://t.co/Rrf9vDJ8TJ
Nov 8
DIY Robocars via Twitter
RT @SmallpixelCar: Race @diyrobocars at @UCSDJacobs thanks @chr1sa for taking the video. https://t.co/kK686Hb9Ej
Nov 8
DIY Robocars via Twitter
RT @PiWarsRobotics: Presenting: the Hacky Racers Robotic Racing Series in collaboration with #PiWars. Find out more and register your inter…
Oct 23
DIY Robocars via Twitter
RT @Hacky_Racers: There will be three classes at this event: A4, A2, and Hacky Racer! A4 and A2 are based around UK paper sizing and existi…
Oct 23
DIY Robocars via Twitter
Oct 23
DIY Robocars via Twitter
Oct 19
DIY Robocars via Twitter
Oct 18
DIY Robocars via Twitter
RT @NeaveEng: Calling all UK based folks interested in @diyrobocars, @f1tenth, @donkey_car, and similar robot racing competitions! @hacky_r…
Oct 13
DIY Robocars via Twitter
RT @araffin2: 🏎️ After hours of video editing, I'm happy to share a best of my Twitch videos on learning to race with RL. 🏎️ Each part is…
Oct 13
More…