Combining rainwater harvesting with solar power for a smart home in India creates a self-sufficient ecosystem that dramatically reduces utility bills and environmental impact. With India facing acute water scarcity — 54% of groundwater wells declining and most cities facing water stress — integrating solar-powered pumping with intelligent rainwater collection and distribution is both practical and increasingly necessary. This guide covers the complete system design, IoT integration, and Arduino-based automation.
Table of Contents
- System Overview and Architecture
- Rainwater Harvesting Design
- Solar-Powered Pump Selection
- IoT Sensors and Monitoring
- Automation: Arduino and ESP32 Code
- Grey Water Recycling Integration
- Cost and Savings for Indian Homes
- Frequently Asked Questions
System Overview and Architecture
The integrated smart home water-energy system consists of four connected subsystems:
- Solar generation: Rooftop panels power the entire system including pumps, sensors, and home loads
- Rainwater collection: Roof collection, filtration, and underground sump storage
- Distribution: Solar-powered pump lifts water to overhead tank; automated valves manage zones
- Intelligence layer: ESP32/Arduino sensors monitor tank levels, rainfall, pump status, and power consumption; automated control based on rules
Rainwater Harvesting Design
Roof Collection Calculation
/* Rainwater Collection Calculation for Indian Home */
// Roof area: 150 sq metres (typical 2BHK flat rooftop)
// Average annual rainfall: Bengaluru example = 970mm/year
// Runoff coefficient for RCC roof: 0.85
// First flush loss: 5-10% (dirt from roof)
Annual_collection = Roof_area x Rainfall x Runoff x (1 - FirstFlush)
= 150 x 0.97 x 0.85 x 0.92
= 113.6 cubic metres = 1,13,600 litres/year
Monthly average = 9,467 litres
India daily per capita requirement: 135 litres (BIS standard)
For family of 4: 540 litres/day = 16,200 litres/month
Rainwater can meet: 9,467 / 16,200 = 58% of annual water needs!
(with some months excess in monsoon, deficit in summer)
Storage Tank Sizing
- Underground sump: 10,000-20,000 litres (2-4 weeks storage)
- Overhead tank: 1,000-2,000 litres (1-2 days storage)
- First flush diverter: 10 litres per 100 sq metres roof area
- Filter: 3-stage (coarse mesh, activated carbon, fine mesh)
Solar-Powered Pump Selection
Three pump types are used in integrated systems:
- DC solar pump (submersible): 12V/24V, 100-500W. Direct solar operation without inverter. Best for low-head applications (15-30 metres). Suitable for underground sump to overhead tank in most Indian homes. Cost: Rs 5,000-15,000.
- AC pump with solar inverter: Standard 230V pump with off-grid solar inverter. More flexible but less efficient. Cost: Rs 8,000-20,000 for pump + Rs 15,000-30,000 for inverter.
- BLDC solar pump: Brushless DC motor, 300-900W, 48V-72V. High efficiency (75-85%), long life (no brushes). Ideal for 30-100m head applications (multi-storey buildings). Cost: Rs 12,000-30,000.
Recommendation for typical Indian 2-3 storey home: 24V, 250W DC submersible pump. Can lift 3,000-5,000 litres/day from 10-15m depth with 2-3 hours of pumping using a 200W solar panel.
IoT Sensors and Monitoring
Key sensors for the smart water-energy system:
- Ultrasonic tank level sensors (HC-SR04): One for sump, one for overhead tank. Non-contact measurement. Cost: Rs 50-80 each.
- Rain sensor or tipping bucket rain gauge: Triggers first-flush diverter automation. Cost: Rs 100-300.
- Flow sensor (YF-S201): Measures total water consumption. Cost: Rs 150-250.
- Water quality sensor (TDS meter): Monitors harvested water quality. Cost: Rs 200-400.
- Current/power sensor (PZEM-004T): Monitors pump power consumption. Cost: Rs 400-700.
- Soil moisture sensor: For automated garden irrigation from rainwater. Cost: Rs 50-100.
Automation: Arduino and ESP32 Code
/* Smart Water Management System
ESP32 + Ultrasonic sensors + WiFi relay control */
#include <WiFi.h>
#include <Wire.h>
// Sensor pins
#define SUMP_TRIG 12
#define SUMP_ECHO 13
#define OHT_TRIG 14
#define OHT_ECHO 15
#define PUMP_RELAY 16 // Active LOW relay
// Tank parameters (in cm)
#define SUMP_MAX_DEPTH 200 // 200cm = 2m deep sump
#define OHT_MAX_DEPTH 100 // 100cm = 1m tall overhead tank
// Thresholds
#define OHT_START_FILL 80 // Start pump when OHT level < 20%
#define OHT_STOP_FILL 10 // Stop pump when OHT level > 90%
#define SUMP_MIN_LEVEL 50 // Don't pump when sump < 50cm (25%)
float readLevel(int trigPin, int echoPin, int maxDepth) {
digitalWrite(trigPin, LOW);
delayMicroseconds(2);
digitalWrite(trigPin, HIGH);
delayMicroseconds(10);
digitalWrite(trigPin, LOW);
long duration = pulseIn(echoPin, HIGH);
float distance = duration * 0.034 / 2; // cm
return maxDepth - distance; // Water level from bottom
}
void loop() {
float sumLevel = readLevel(SUMP_TRIG, SUMP_ECHO, SUMP_MAX_DEPTH);
float ohtLevel = readLevel(OHT_TRIG, OHT_ECHO, OHT_MAX_DEPTH);
// Pump control logic
if (ohtLevel < OHT_START_FILL && sumLevel > SUMP_MIN_LEVEL) {
digitalWrite(PUMP_RELAY, LOW); // Turn ON pump
} else if (ohtLevel >= OHT_STOP_FILL || sumLevel <= SUMP_MIN_LEVEL) {
digitalWrite(PUMP_RELAY, HIGH); // Turn OFF pump
}
// WiFi reporting (to MQTT or local web server)
Serial.printf("Sump: %.0fcm OHT: %.0fcmn", sumLevel, ohtLevel);
delay(5000); // Check every 5 seconds
}
Grey Water Recycling Integration
Grey water (from sinks, showers, washing machines) can supplement rainwater for non-potable uses (toilet flushing, garden irrigation). For Indian homes:
- Grey water volume: 60-70% of daily water intake
- Treatment: Reed bed filter or constructed wetland (Rs 10,000-30,000 for 4-person household)
- Uses: Garden irrigation (direct), toilet flushing (after basic treatment)
- Solar-powered grey water pump: 12V, 50W — lifts treated grey water to garden drip irrigation tanks
- Combined with rainwater, grey water recycling can reduce municipal water dependence by 70-80% for Indian homes
Cost and Savings for Indian Homes
Smart Water-Solar Integration Budget (2-storey Indian home):
Rainwater system:
Underground sump construction (10,000L): Rs 40,000-60,000
First-flush diverter + filters: Rs 3,000-5,000
Gutters and downpipes: Rs 8,000-15,000
Solar pump system:
200W solar panel: Rs 6,000-8,000
24V 100Ah battery: Rs 15,000-20,000
MPPT controller: Rs 3,000-5,000
DC submersible pump: Rs 8,000-12,000
IoT monitoring:
ESP32 + sensors + relays: Rs 1,500-2,500
Enclosure + wiring: Rs 1,000
Total investment: Rs 85,000-1,28,500
Annual savings:
Water bill (BWSSB Bengaluru: Rs 300/KL above 8KL):
Save ~50 KL/year = Rs 15,000/year
Electricity for pumping:
Save Rs 3,000-5,000/year
Total annual saving: Rs 18,000-20,000
Payback: 5-7 years
Frequently Asked Questions
Is rainwater harvesting mandatory in Indian cities?
Yes, for new constructions in most major cities. Bengaluru (plot above 60 sq m), Chennai (plot above 100 sq m), Delhi (plot above 100 sq m), Mumbai (plot above 300 sq m), Pune (plot above 200 sq m). Violation attracts disconnection of water supply in some states.
Can harvested rainwater be used for drinking?
With proper treatment yes. The treatment train for potable rainwater: coarse filter (debris), fine filter (sediment), activated carbon (organic compounds), UV sterilisation. The complete system costs Rs 15,000-25,000 and produces water meeting BIS 10500 standards in most Indian cities with clean rainfall.
What solar panel size is needed to run a submersible pump?
A 250W DC submersible pump needs a 300-400W solar panel to run during peak sun hours. For 3-4 hours of daily pumping (10am-2pm), a 200W panel is sufficient in most Indian cities. Add a 50-100Ah battery for morning/evening pumping outside peak hours.
Do I need a building permit for underground sump construction?
In most Indian cities, underground structures below 1 metre depth require only notification to the local municipal corporation, not a formal permit. Above 1.5 metre depth, structural approval may be required. Always check your local municipal regulations before excavation.
Add comment