Smart Water Refilling system
Introduction
Efficient water management is a critical need in many homes and industries. This project uses a Blink board to monitor and control the water level in a tank. By leveraging the A02YYUW waterproof ultrasonic sensor and a motorized pump, this system ensures that the tank maintains optimal water levels at all times. The ultrasonic sensor provides accurate distance measurements, which the Blink board processes to control the pump.
When the water level falls below a pre-defined minimum threshold, the Blink board signals the pump to refill the tank until the water reaches a maximum threshold. For this project, the minimum threshold is set to 300 mm from the top of the tank, and the maximum threshold is 100 mm from the top. This approach ensures consistent water availability while avoiding wastage or overflow.
Components Used
- Blink Board
- A02YYUW Waterproof Ultrasonic Sensor
A high-precision ultrasonic sensor designed for outdoor and waterproof applications. It measures the distance to the water surface and provides data to the Blink board via the UART protocol. - 24V Motorized Pump
The actuator used to fill the tank when the water level falls below the threshold. - 20×4 LCD Display
A user-friendly interface that shows real-time water level data, pump status, and other system notifications.
Objectives
- Automate Water Level Control: Design a system that automatically maintains water levels within defined thresholds without manual intervention.
- Ensure Accuracy: Use precise ultrasonic sensor measurements to monitor the water level accurately.
- Optimize Resource Usage: Prevent water wastage and pump overuse by maintaining optimal water levels.
- Provide Real-Time Feedback: Display water levels and pump status on an LCD for easy monitoring.
- Create a Scalable Solution: Develop a system that can be adapted for different tank sizes and applications, such as domestic, agricultural, or industrial use.
How It Works
Sensor Measurements
The A02YYUW ultrasonic sensor is placed at the top of the water tank. It continuously measures the distance to the water surface and sends this data to the Blink board through the UART protocol. The Blink board processes the received distance values to determine the current water level.
Thresholds and Logic
The system operates based on two thresholds:
- Minimum Threshold: 300 mm from the top of the tank. When the water level falls below this point, the Blink board activates the pump.
- Maximum Threshold: 100 mm from the top of the tank. Once the water reaches this level, the Blink board turns off the pump.
The system cycles between these thresholds to ensure optimal water levels without manual intervention.
Actuation
When the Blink board detects that the water level is below the minimum threshold, it sends a signal to the motorized pump to start filling the tank. As the water level rises, the Blink board continues monitoring until the water reaches the maximum threshold, at which point it deactivates the pump. This process is repeated automatically.
Circuit Diagram
Connecting A02YYUW ultrasonic sensor to Blink Board
The lcd will show: