Water Level Monitor With Raspberry Pi

by shafinkothia in Circuits > Raspberry Pi

9440 Views, 5 Favorites, 0 Comments

Water Level Monitor With Raspberry Pi

Water Level Monitor using RaspberryPi

Introduction

Hello everybody, I am Shafin, a member of Aiversity. I am going to share about how to build a water level sensor for water tanks with a Raspberry pi. This project is going to help you to understand the working of Raspberry pi in detail.

Supplies

Bucket

Water Jug

Raspberry pi

Buzzer

Jumper Wires

Ultrasonic Sensor

Connections

image_UAea8eP0MX.jpg

Connections

Now let’s talk about the connections of the raspberry pi, ultrasonic sensor and Buzzer.Please follow the circuit diagram as given

Connections:

Ultrasonic sensor vcc to 5v of Raspberry Pi

Ultrasonic sensor Gnd to Gnd of Raspberry Pi

Trigger to GPIO 2

Echo to GPIO 3

Buzzer + to GPIO 4

Buzzer – to Gnd

Structure

FSLYZHJK9D1RIN9.jpeg

Structure

· Attach a scale to the bucket.

· Next attach the buzzer and ultrasonic sensor to the scale

Code

Code

Now you know the connections and the structure, let’s build the code.

1. Open the Thonny Python IDE

2. Download the Github code: -- https://github.com/Aiversity/Raspberry-pi-project..

3. Open and run the code.

Testing

FIXKGXZK9D1RIBD.jpeg

Testing

Fill water in the bucket. When the distance of ultrasonic sensor from the water is around 4 centimetre, the buzzer will beep, alerting the bucket is almost full.

If you have any queries, please ask at Shafin@Aiversity.com

To know more, visit http://aiversity.com