0% found this document useful (0 votes)
39 views

Methods of Detecting Water Level Arduino: by Smart Technology

This document describes two methods for detecting water level using an Arduino board: an ultrasonic sensor and a water sensor. The ultrasonic sensor works by transmitting and receiving sound waves to calculate the distance to nearby objects like water. The water sensor detects the presence or absence of water by changes in resistance. The document provides instructions on connecting these sensors to an Arduino and includes code examples to read the sensor values and detect the water level.

Uploaded by

HANS PRABOWO
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
39 views

Methods of Detecting Water Level Arduino: by Smart Technology

This document describes two methods for detecting water level using an Arduino board: an ultrasonic sensor and a water sensor. The ultrasonic sensor works by transmitting and receiving sound waves to calculate the distance to nearby objects like water. The water sensor detects the presence or absence of water by changes in resistance. The document provides instructions on connecting these sensors to an Arduino and includes code examples to read the sensor values and detect the water level.

Uploaded by

HANS PRABOWO
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

instructables

Methods of Detecting Water Level Arduino

by Smart Technology

In this project,I'll show you how create an inexpensive water detector using two methods :

1. Ultrasonic sensor (HC-SR04).

2. Funduino water sensor.

Methods of Detecting Water Level Arduino: Page 1


Step 1: Using Ultrasonic Sensor As Detector

The idea of ultrasonic sensor came from the bats and What You Will Need ?
dolphins, they estimate distance by using the
echolocation process—sound waves transmitted,
bounced back and received, with the time difference For this project you will need:
used to calculate the distance of objects.
-Arduino uno
First of all we need to trigger the ultrasonic sensor
module to transmit signal by using arduino and then -Breadboard Water
wait for receive ECHO. Arduino reads the time
between triggering and Received ECHO. We know -Ultrasonic Sensor
that speed of sound is around 340m/s. so we can
calculate distance by using given formula: -Led (optional)
Distance= (travel time/2) * speed of sound Where
speed of sound around 340 meter per second. The Circuit :

So on this sensor you have 4 pins. to define him.


1.pin Vcc - this pin is connected to 5V+.
4.pin GND - this pin is connected to ground.
2.pin. Trig - you need to define this pin in your
program.

3.pin Echo -this pin is the same as Trig you also need

Download (https://cdn.instructables.com/ORIG/FXN/08WB/JB6UC49N/FXN08WBJB6UC49N.ino)
http://www.instructables.com/ORIG/FXN/08WB/JB6UC49N/FXN08WBJB6UC49N.ino

(https://cdn.instructables.com/ORIG/FXN/08WB/JB6UC49N/FXN08WBJB6UC49N.ino)

Step 2: For More Details Watch the Video

Methods of Detecting Water Level Arduino: Page 2


https://youtu.be/pQHmi_xxR9U

Step 3: Using Water Sensor As Detector

There are a lot of uses for this sensor module. It can For this project you will need:
be used to detect the presence or absence of water,
accurately gauge the water surface level, or you can -Arduino uno
even accurately gauge the volume of water present
by using a volume measurement device such as a -Breadboard Water
measuring cup in conjunction with the analog water
sensor module. -Water Sensor

What You Will Need ? -Led (optional)

The Circuit : Anode Led - Arduino Pin13


The connections are so easy!
Cathode Led - Arduino GND
Vcc - Arduino 5V

GND - Arduino GND

A0 - Arduino Analog pin 0

Methods of Detecting Water Level Arduino: Page 3


http://www.instructables.com/ORIG/FC6/1PO4/JB6U6YNF/FC61PO4JB6U6YNF.ino
… Download (https://cdn.instructables.com/ORIG/FC6/1PO4/JB6U6YNF/FC61PO4JB6U6YNF.ino)

(https://cdn.instructables.com/ORIG/FC6/1PO4/JB6U6YNF/FC61PO4JB6U6YNF.ino)

Methods of Detecting Water Level Arduino: Page 4

You might also like