Jump to content

- - - - -

Yet Another DIY Leak Sensor

  • Please log in to reply
7 replies to this topic

#1 vsc



  • Member
  • Pip
  • 16 posts

Posted 22 May 2017 - 07:05 PM

A number of DIY leak sensors have been published over the years where SparkFun published a project in 2013 based upon an Arduino. This project builds upon the SparkFun design using an AdaFruit Trinket and a few other components.


The following is a link to the instructions for this project,








#2 johnsampson



  • Member
  • Pip
  • 7 posts

Posted 30 May 2017 - 05:44 AM

Awesome project, thanks for sharing!

#3 h2sk1


    Hermit Crab

  • Member
  • Pip
  • 4 posts

Posted 16 June 2017 - 06:58 AM

This looks fantastic.  That'll be my next project.

#4 johnohuk



  • Member
  • Pip
  • 29 posts
  • Gender:Male

Posted 11 July 2017 - 02:27 PM

And yet another one... 




Bit of a work in progress... just trying to get it to fire the strobe as well..

#5 tubestance



  • Industry
  • PipPip
  • 53 posts
  • Gender:Male
  • Location:Playa Del Rey, California

Posted 19 July 2017 - 07:11 AM

Sweet! Thanks for sharing.

#6 vsc



  • Member
  • Pip
  • 16 posts

Posted 29 August 2017 - 04:23 AM

I must admit a few weeks ago getting the enclosure wet for the first time, at 100 feet the leak detector sounded. In short a small fiber, most likely from a lens wrap, was on the main o-ring. I missed it. That said there was only a few drops of water in the bottom of the housing and the leak detector picked it up doing its job. The fact that there is an audible alert ensured that I immediately reacted to the situation, heading for the surface.


That said after rinsing out the enclosure and in theory drying it, I locked it up for the night without desiccant. At some point in the middle of the night the alarm went off again. It would appear enough residual moisture was present, most likely between the wires and the heat shrink tubing used at the end of the sensor circuit board.


Note I updated the firmware on Instructables to include a power savings mode which should extend the battery life to a year of standby time. The leak detector in the power savings mode polls the sensor every four seconds. When on travel, test at the start of the trip. The detector shifts to polling the sensor once per second, shifting back to power savings mode after two weeks. The older source code file is still present on Instructables which should yield three months of continuous monitoring (e.g. once per second polling), using a CR2032 battery. The updated file is what was in use when the small flood occurred, thus I'm rather sure the code is working.

Edited by vsc, 29 August 2017 - 04:25 AM.

#7 vsc



  • Member
  • Pip
  • 16 posts

Posted 03 February 2018 - 01:28 PM

It has been almost a year and I posted an improved version of this underwater housing leak detector using a newer version of AdaFruit's Trinket which is based upon the Atmel SAM processor. The result is a multi-year battery life with a single CR2032 battery.



#8 cueea1988


    Brine Shrimp

  • Member
  • Pip
  • 1 posts

Posted 29 September 2018 - 07:24 AM


i can't upload trinke m0 

Do you mind if I ask you a favor?


sorry my english very bad


thank you


Arduino:1.8.4 (Windows 10), 開發板:"Adafruit Trinket M0"

C:\Users\hank\Downloads\H2OhNo\H2OhNoM0\H2OhNoM0.ino:23:19: fatal error: power.h: No such file or directory
 #include <power.h>
compilation terminated.
exit status 1

sorry my english is very bad