GithubHelp home page GithubHelp logo

leak-detector.ino's Introduction

Leak detector safety shutdown for Arduino 💧

Leak safety shutdown is a software and recommended circuitry to use with a micro-controller to switch off connected devices when liquid is detected and alert users with a flashing light. Leak-detector.ino works with a contact or non-contact liquid sensor (such as XKC-Y25-T12V) and a standard relay which can be closed or open when a leak is detected.

Be careful

⚠️ Electronics and water can be very dangerous. On top of the standard safety measure when working with electrical in risky situations I highly recommended protecting your circuit inside waterproof graded containers. Be careful

Installation

Simply download the .ino file onto your computer and upload it on your Arduino using the Arduino IDE.

Once the software is loaded, you can connect the micro-controller to your liquid sensor, a relay and your devices using the Arduino digital pins.

Standard circuit:

leak-detector-diagram

This example circuit contains a peristaltic pump that can sometimes leak due friction on the silicone tubing after several hours of non stop usage.

If liquid is detected by the sensor located underneath the pump the LED strip flashes rapidly to alert users and the pump supply is immediately stopped to prevent any further leakage.

Options

Connected devices

Make sure to declare your connected device(s) as well as defining their allocated pin at the top of the script:

int liquidsensor_pin= 4;
int pump1_pin= 5;
int ledPin= 6; 

Flashing light

You can also modulate the flashing speed by changing interval (in millisec)

long interval = 100; // will flash very quickly
// or
long interval = 300; // will flash much slower

leak-detector.ino's People

Contributors

the-maxtrix avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.