Home        Store        Docs        Blog

Running relay off pix hawk aux 2,3,4


(Zachary Pennington) #1

Hi, I’m a student on a team working on a project and I’m trying to connect a relay to any pins 2-4. Aux 5 and 6 is taken and I’m trying to find out whether or not it is possible to connect anything in those spots and if so how. I’ve searched for a while now and can’t seem to find it. Any help and direction would be greatly appreciated.


(Jacob) #2

Set BRD_PWM_COUNT to a lower number. The first n channels starting at aux1 will be configured as pwm, and the remaining may be used as relays. https://www.ardusub.com/operators-manual/full-parameter-list.html#brdpwmcount-auxiliary-pin-config

See also the RELAY_PIN parameters: https://www.ardusub.com/operators-manual/full-parameter-list.html#relay-parameters


(Zachary Pennington) #3

Thank you very much for the fast reply. I was able to get the parameters in order, however I couldnt map the RELAY_PIN3 to the controller. I am using a logitech F310. How can I map the button to the controller if there isnt an option in the joystick configuration section for relay pin 3?


(Jacob) #4

there is only support for 2 relays on the joystick right now.
How many relays do you need? You can change the RELAY1_pin parameter to the pin you want to use.