Pratik Desai
Published © MIT

Overflow Watertank detection System

In this tutorial you are going to learn how to make overflow watertank detection system at very low cost and it is very useful to save water

IntermediateProtip2 hours1,166
Overflow Watertank detection System

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
5 mm LED: Red
5 mm LED: Red
×1
Resistor 330 ohm
Resistor 330 ohm
×1
Buzzer
Buzzer
×1
Smiley Ball
×1
Tilt Switch, 15 °
Tilt Switch, 15 °
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

Arduino Connections

You can Use Zero PCB for make the project sophisticated and handy to use

Code

Code for Automatic Watertank overflow detection System (Arduino IDE)

Arduino
Paste this code in arduino IDE and choose board as Arduino Uno and Upload the code by selecting correct COM Port.
/* Code for Automatic Watertank overflow detection System */

int tiltPin=8;
int tiltVal;
int redLed=11;
int buzz=12;
void setup() 
{
  pinMode(tiltPin,INPUT);
  pinMode(redLed,OUTPUT);
  pinMode(buzz,OUTPUT);
  digitalWrite(tiltPin,HIGH);
  // put your setup code here, to run once:

}

void loop() 
{
  tiltVal=digitalRead(tiltPin);
  if(tiltVal==0)
  {
    digitalWrite(redLed,HIGH);
    digitalWrite(buzz,HIGH);
  }
  
  if(tiltVal==1)
  {
    digitalWrite(redLed,LOW);
    digitalWrite(buzz,LOW);
  }
  // put your main code here, to run repeatedly:

}

Credits

Pratik Desai
5 projects • 30 followers
maker | developer | traveller Click below link to join my WhatsApp group. https://bit.ly/32f8Y0H

Comments