Problems with Pix Relay

I am trying to setup a simple on/off switch for my lights but cant get it working and think I am doing something wrong (and stupid) with the wiring. Anyway the issue - Have custom built lights that I wanna turn on and off with the pix relay function. I have read through all the “relay” posts in the forum and (think) I understand the configuration.

I have tried with aux 4 (after configuring BRD_PWM_COUNT to 3) assigning relay 3 toggle function to the controller button (in my case the nr: 13 that normally operates the lumen brightness) and the relay parameters.

My question is since I only have one PWM cable from the lights I assume it is connected to the Aux 4 where the signal is supposed to go (lowest pin) I also connected a BEC ground cable to the upper pin on AUX 4 but get very small V change when pressing the button, like 0.003v. Also do I need a + input to AUX 4 for this to work and in that case from a bec (mains would fry the PIX right)?

I have checked the lights by connecting the PWM signal cable to 5v and works so I know the lights are fine. So in summary, in AUX4 what line goes to what pin and from where?

Appreciate any help.

Figured it out eventually. It seems that there is not sufficient power for the pwm cable, when lights are connected the voltage drops under 0.02v while it gives 3.3v when disconnected. I guess I need to use this:

I do however have this from an earlier project:
turnegy switch

Would that maybe work with servo signal?

Hi @josef,

As per the pixhawk documentation, the pixhawk doesn’t actually supply power to the servo rail - it’s intended that either something else does, or you can power the pixhawk itself from that rail, or the servo rails can be used for just the signals and you power your devices externally.

Your suggested connection diagram should work, except I’d recommend also connecting the ground wire to the pixhawk ground. Ground is used as an electrical reference point, so if your signal voltage is relative to a different reference to the transistor then it could float and give unexpected/undesired results.

From a brief search, I wasn’t easily able to find out what kind of signal the turnigy switch requires to turn on and off. The hobbyking listing mentions that “The Turnigy switch will complete a circuit when the radio channel passes 50%”, in which case I would assume it should work to give it a DC input (as in the relay toggle pixhawk option you’ve said you’re trying to use).

Dear Eliot,

Many thanks for your support really appreciate that.

Never got it working. There is many posts about this switch, on how unreliable it is so I scrapped it.
I believe i have two viable options, one is a simple pwm relay:


I connect the signal and ground to pix (aux5) and assign relay toggle to a button and it works fine toggling 0.20v and 3.3v. The issue with this is that even with 0.2v the relay switches on so lights are on all the time. Maybe a resistor can fix this?

The other option is a cheap pwm switch similar to the turnigy one.

I got it working fine through a servo tester where it turns on on high and off on low. I just need to grasp on how to adjust the limits on the pix servo channels.

I would much rather use the relay, seems simpler.

I would probably suggest using a diode (or LED if you want) over a resistor, but I believe both should work.

This approach should also work if it accepts a signal the pixhawk can create (e.g. PWM between 1100-1900us, or On/Off), but up to you what you decide to use :slight_smile: