Rainwater Harvesting Controller Kit with ESP32 + Ultrasonic
Automate Your Rainwater Harvesting with an ESP32 Ultrasonic Controller Kit
Every part needed, pre-tested for compatibility, with an AI build companion trained on this exact project. Shipped from Bengaluru in 3-5 days.
Design a fully automated rainwater harvesting controller that monitors tank water level with dual ultrasonic sensors, diverts the first flush of dirty roof runoff, and intelligently switches between rainwater and mains water supply based on availability. The system logs every rainfall event and water usage pattern to a microSD card, giving you a complete picture of your water savings.
What You’ll Build
You’ll assemble and program an ESP32-based controller housed in a waterproof enclosure that connects to your existing rainwater harvesting infrastructure. The controller automatically opens the first-flush diverter valve when rain begins, then switches to tank filling once the initial runoff clears. When the tank is low, it activates a pump and a mains-backup valve to ensure uninterrupted water supply. An OLED display shows real-time tank level, rain status, and system mode, while an RTC timestamps all logged events.
What You’ll Learn
- Interface HC-SR04 ultrasonic sensors with ESP32 using pulse timing for accurate water level measurement.
- Program real-time clock (DS3231) for event timestamping and scheduling, with battery backup.
- Integrate rain sensor input and relay control logic to manage diverter and pump valves.
- Log sensor data and events to a microSD card using SPI communication and file system management.
Kit Contents
| Component | Quantity |
|---|---|
| ESP32 Dev Board | 1 |
| HC-SR04 | 2 |
| Rain Sensor | 1 |
| 4-ch Relay Module | 1 |
| DS3231 RTC | 1 |
| MicroSD Module | 1 |
| 0.96in OLED | 1 |
| LM2596 Buck Converter | 1 |
| 18650 Cell | 2 |
| TP4056 Module | 1 |
| 100nF Caps | 10 |
| 10kΩ Resistors | 10 |
| PCB Prototype Board | 2 |
| Waterproof Enclosure | 1 |
| Soldering Iron | 1 |
| Solder Wire | 1 |
Why Buy This Kit Instead of Sourcing Parts Separately
| Factor | Sourcing Separately | Compoden Kit |
|---|---|---|
| Compatibility checks | You verify every part | Pre-tested as a system |
| Build support | Forums and scattered tutorials | AI companion trained on this exact project |
| Time to first working build | Days of debugging | Hours, with step-by-step guidance |
| Shipping coordination | Multiple sellers, multiple delays | One shipment from Bengaluru in 3-5 days |
Who This Kit Is For
This kit is ideal for B.Tech ECE/EEE students working on sustainable technology projects, DIY home automation enthusiasts in India, and engineers building smart water management solutions for Smart India Hackathon or ATL Tinkering Labs at the advanced level. It also suits professionals setting up automated rainwater harvesting in independent homes, villas, or farmhouses.
Built and Backed by Compoden
Every Compoden kit ships with an AI build companion trained on this exact project — accessible via a QR code on the box, with WhatsApp and email backup. We’ve spent 10 years building projects for makers, schools, and institutions across India. If a part fails because of a manufacturing defect, replace it free within 7 days.
What if I get stuck during the build?
The AI companion provides 24/7 instant answers specific to your project; if you need human help, our support team responds on WhatsApp within 4 hours.
Can I integrate this controller with Home Assistant or other smart home platforms?
Yes. The ESP32 can be programmed to send MQTT messages over Wi-Fi. The AI companion includes guidance on integrating with Home Assistant and similar platforms.
How does the first-flush diversion work automatically?
The rain sensor detects the start of rainfall, the controller opens the diverter valve, and a configurable timer (based on roof size) determines when to switch to tank filling. You’ll program the logic step-by-step using the included tutorial.
Is the enclosure truly waterproof for outdoor installation?
The kit includes an IP65-rated waterproof enclosure with cable glands. The build guide walks you through proper sealing of sensor and power cables to maintain protection.
Ultrasonic level sensor monitors tank. Diverts first-flush, controls pump to mains-backup valve and logs rain events.
What's in this kit
Choose your assembly option:
- Soldering Kit — 25W soldering iron, 60/40 solder wire, flux, and small perfboard for permanent assembly.
- Breadboard Combo — 800-point full-size breadboard with 65-piece jumper wire pack for solderless prototyping.
Other projects you can build
Shipping Information
- Prepaid Orders: ₹75 for orders up to ₹999, FREE shipping above ₹999
- COD Orders: ₹125 shipping + ₹50 COD fee = ₹175 total
- Delivery Timeline: Dispatch in 1-2 days, delivery in 2-7 days depending on location
Returns & Warranty
- 7-Day Return: Manufacturing defects only (approval required)
- Warranty: 7 days from delivery
- Non-Returnable: Batteries, consumables, cut wires, clearance items