Hello guys, today I want to share a great experience I had with the Raspberry PI.
Since I have a basement and the foundations needs to be emptied sometimes, especially during the rainy seasons, I’ve developed a web application that runs on Tomcat + Java 7 that allows the user to check the water level (using Ultrasonic Sensor HC-SR04) and activate remotely the pump (using Relay board). Also some sort of push notifications notifies the user if some given limit has been trespassed.
The Raspberry Pi is a low cost single-board computers has a 32-bit ARM processor developed by the Raspberry Pi Foundation. It’s capable of doing everything which a desktop computer to do. It can be programmed with Python or any other language that will compile for ARM v6. Read more about Raspberry pi
HC-SR04 Ultrasonic Sensor interfacing
In this project I have used HC-SR04 Ultrasonic Sensor monitor the water. Ultrasonic Sensor is used to measure the water level. Here is the circuit diagram which explains how to connect Ultrasonic Sensor to Raspberry Pi.
Raspberry Pi Relay Interface
I have used 2 channel relay board to control the motor pump. Through the web application when I press the Motor ON button, motor will ON through this relay. Here is the circuit diagram.
Project Demonstration Video
Project Source Code
Complete source code is available at Water Level Indicator & Pump Controller using RaspberryPi Sourcecode