Leak Sensors Query

I have a BLUEROV2 R4 heavy configuration and wondered how to enable additional leak sensors using the SOS leak sensor board. I have two sensors plugged into the leak sensor sockets on the Navigator and 4 into the SOS board which is attached to pin 15.

I have Leak sensor 1 enabled (digital/navigator built in) but there dont seem any autopilot parameter options to enable the other sensors (ie. the 2nd leak socket on the navigator board and the 4 attached to the SOS board and attached to pin 15 on the Navigator board)?

The guide on the website only refers to Pixhawk connections not the Navigator board.

Hi @BillyBudd -
All of the leak sensors are connected together, such that if any of them get wet, the leak detected warning will be produced. I’m not sure if configuring a second leak sensor channel is possible, if you were trying to tell the difference between a leak in one area vs. another. Generally, if any detect a leak, it is time to recover the vehicle!

1 Like

Hi @BillyBudd

The Navigator has an AUX Leak header you can use. This is mentioned in the Navigator Hardware Setup guide.

The SOS board will plug directly into here:

1 Like

All the leak inputs, from both external SOS board and the JST-GH leak sensor connectors drive the same input on the Pi

If you wanted separate channels of leak detection, say for detecting a leak in another enclosure, you could modifty this LUA script and use one of the ADC inputs (it currently just uses the existing leak pin - this script is helpful for folks with a BlueBoat who want leak detection, as ArduRover doesn’t contain it like ArduSub does.)

This script shows how to read from the ADC to detect “high” state like the leak detector creates, connecting 3.3V to the input pin.

Many Thanks for this info @tony-white and @DanielG_BR - much appreciated!

Just to confirm - if I plug the SOS board into the AUX leak socket then all leak sensors (two on the Navigator and 4 on the SOS) will be joined together and I only need to configure 1 leak sensor entry in the autopilot parameters?

Also appreciate the tip about how to configure independent leak sensors. Unfortunately I havent previously attempted to modify/edit any scripts but would like to learn more about how to do this - is there a guide or link that might help me get started?

Hi @BillyBudd -
That’s correct - all leak sensors will trigger the same pin, no need to configure other inputs.

We don’t have any formalized guide to lua scripts, but there are many example posts here on the forums! Try searching the keyword “lua”

1 Like