# Leak sensor connection

**URL:** <https://discuss.bluerobotics.com/t/leak-sensor-connection/9712>\
**Category:** ArduSub\
**Created:** [May 19, 2021, 12:47pm UTC](https://discuss.bluerobotics.com/t/leak-sensor-connection/9712 "2021-05-19T12:47:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hydropumpon](https://avatars.discourse-cdn.com/v4/letter/h/eb8c5e/32.png) [@hydropumpon](https://discuss.bluerobotics.com/u/hydropumpon)\
**Post date:** [May 19, 2021, 12:47pm UTC](https://discuss.bluerobotics.com/t/leak-sensor-connection/9712/1 "2021-05-19T12:47:53Z")

</div>

Hello,

I have a question about connection of bluerobotics leak sensor ([https://bluerobotics.com/store/sensors-sonars-cameras/leak-sensor/sos-leak-sensor/](https://bluerobotics.com/store/sensors-sonars-cameras/leak-sensor/sos-leak-sensor/)) and pixhawk4 with ardusub software.  
In QGC software there are options to choose leak sensor pin (AUX1-6, 3.3ADC1-2, 6.6ADC), but i couldn’t fine any AUX named channels in pixhawk4. Could any1 tell where should i connect leak sensor for proper work?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![EliotBR](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/eliotbr/32/6937_2.png) [@EliotBR](https://discuss.bluerobotics.com/u/EliotBR)\
**Post date:** [May 19, 2021, 11:48pm UTC](https://discuss.bluerobotics.com/t/leak-sensor-connection/9712/2 "2021-05-19T23:48:04Z")

</div>

Hi Alex,

ArduSub only officially supports the Pixhawk 1 hardware, and that’s the only platform Blue Robotics has tested and used extensively.

From the [Pixhawk 4 documentation](https://docs.px4.io/main/en/flight_controller/pixhawk4.html#connectors), the `FMU PWM OUT` pins are considered to be AUX outputs (see number 17), so I’d say those are your best bet, but I can’t provide any guarantees.

Hope you can get it working! 🙂

---

<div class="post-metadata">

**Author:** ![kostantin](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/kostantin/32/13445_2.png) [@kostantin](https://discuss.bluerobotics.com/u/kostantin)\
**Post date:** [September 10, 2024, 5:09am UTC](https://discuss.bluerobotics.com/t/leak-sensor-connection/9712/3 "2024-09-10T05:09:11Z")

</div>

Hello, I am also using Pixhawk 4 and all the connections regarding servos and auxiliary devices are made on the PM07 power distribution board. I have tried with the PWMout ports, but whatever I choose, from Ardusub , it does not receive the signal from the leak sensor. ANy help or updates on this? I have tested the sensor with arduino, and the signal is confirmed. Any one used pm07 board?

---

<div class="post-metadata">

**Author:** ![EliotBR](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/eliotbr/32/6937_2.png) [@EliotBR](https://discuss.bluerobotics.com/u/EliotBR)\
**Post date:** [September 12, 2024, 7:04am UTC](https://discuss.bluerobotics.com/t/leak-sensor-connection/9712/4 "2024-09-12T07:04:09Z")

</div>

Leak detector support was [added to Pixhawk 4](https://github.com/ArduPilot/ardupilot/pull/18019) a few months after this post was made. I’ve just checked and it should be available in the latest ArduSub 4.1 (stable) and 4.5 (beta) releases.

> [@kostantin](#):
>
> Any one used pm07 board?

I haven’t tested with that, but if you’re connecting FMU PWM OUT correctly then the Leak Detector should work to plug into the relevant pin of the FMU PWM OUT header on the PM07 board.

It may help if you show how you’ve connected your leak sensor, and how you’ve configured the ArduSub parameters. As an example, if you have the sensor connected to AUX 6 then I believe you should have [`LEAK1_PIN`](https://docs.bluerobotics.com/ardusub-zola/software/autopilot/ArduSub-4.1/developers/parameters/#leak1-pin-pin-that-leak-detector-is-connected-to)=Pixhawk Aux6, and `SERVO14_FUNCTION`=Disabled (8 main + 6 aux = pin 14).
