FarmPulse AI - Smart Irrigation and Plant Disease Detection System for Small Farmers
Empowering Farmers With AI Where Technology Rarely Reaches
Across rural farmlands, crops often suffer not from lack of effort but from lack of timely information. Water is wasted because irrigation runs on routine instead of real soil needs. Plant diseases spread silently because farmers notice symptoms only when the damage is already done. And for many small farmers, advanced tools remain out of reach—too costly, too complex, or dependent on stable internet that village fields often lack.
FarmPulse AI bridges this gap with an affordable, solar-powered, intelligence-driven system that helps farmers understand their crops better—without needing technical knowledge or continuous connectivity.
What Makes FarmPulse AI Unique?
Instead of relying on manual checks or guesswork, FarmPulse AI brings real-time environmental awareness directly to the field. A small IoT device continuously measures soil moisture, temperature, and humidity, watering crops only when they truly need it. This prevents water waste, reduces input cost, and keeps plants healthier.
Built-in AI takes the system a step further. Using a simple photo of a leaf, the device—or the linked web app—can identify whether a plant is healthy or diseased. If a disease is detected, it names the issue and shows a confidence level, helping farmers take action early and avoid widespread crop loss. All predictions run efficiently on the backend, and alerts reach the farmer instantly via the dashboard or mobile app.
FarmPulse AI is entirely solar-powered, built on ESP32-C6, and designed with low-cost sensors so small farmers can deploy it easily. The device logs data to Firebase whenever internet is available but continues working locally even without connectivity.
Why It Matters
Water Conservation: Smart irrigation ensures water flows only when the soil actually needs it.
Early Disease Detection: AI catches plant diseases at the very beginning—before they spread.
Farmer-Friendly: Simple interface, automatic operation, no technical expertise required.
Affordable & Scalable: Designed for small farms, kitchen gardens, and large farmlands alike.
Sustainable: Solar-powered design reduces operational cost and works even in remote fields.
FarmPulse AI transforms farming from reactive to proactive—helping farmers make better decisions, save resources, and protect their crops with confidence.
The Big Picture
FarmPulse AI is more than an IoT device; it’s a step toward smarter, climate-resilient agriculture. By combining real-time sensing, automation, and AI-based disease detection, it offers every farmer—big or small—a practical way to improve yield and reduce losses. This project aims to build a future where technology supports farmers silently in the background, ensuring healthier crops, efficient water use, and a more sustainable farming ecosystem.
MyLists | DigiKey - FarmPulse AI
- 1× ESP32-C6-DEVKITC-1-N8
- 2× Mini Epoxy Solar Panel 70×70 mm
- 1× TP4056 Battery Charging Module
- 1× DHT11 sensor
- 1× Soil Moisture Sensor
- 1× Relay Module (Single Channel)
- 1× Submersible Water Pump
- 2× Lithium-Ion Battery 3.7V 2500mAh 18650
- 1× 9V Battery
- 2× 18650 Battery Holder
- 1× Zero PCB
- 1× DC-DC Boost Module (1.5V to 5V)
- 1× Switch (Rocker SPST)
- 1× Female Pin Header 2.54mm (1×40)
- 1× Male Pin Header 2.54mm (1×10)
- 1× Capacitor 100 µF
- 1× Capacitor 0.1 µF

Step 1 — Setting Up (ESP32-C6)
I used the ESP32-C6 microcontroller a small Wi-Fi-enabled chip.
It is the main brain of the system and handles everything:
- Reads sensor values
- Sends data online
- Runs a small ML model for automatic irrigation
Controls the water pump
Step 2 — Schematic Diagram
This is the schematic diagram of FarmPulse AI system

Step 3 — Powering ESP32-C6 and Sensors with Solar Energy
This system is mainly powered by solar energy. Two Solar panels (connected in series) provides ~ 5 - 7V during peak hours (more sun light intensity) and ~ 3.5 - 4.5V during normal hours. They are used to charge the 2x li-ion batteries (connected in parallel ~ 3.7V) using TP4056 charging module. The typical output of this charging module is 3.7 - 4.2 V, since esp32 requires a stable 5V input, a DC-DC booster 1.5V to 5V is used to provide boosted and regulated 5V. The submersible 12V DC water pump is powered by a separate 9V battery.
- 2x 5V Mini solar panel to convert light energy into power
- TP4056 charging module
- 18650 battery li-ion batteries
- DC-DC Booster 1.5V to 5V
This keeps the system running day and night using sunlight and rechargeable li-ion batteries
Step 4 — Adding Plant Disease Detection (Cloud AI)
To help identify plant diseases early, I used Grok API to analyze the plant disease, where farmers can upload leaf photos in the web app.
A cloud-based ML model checks the image and tells:
- Whether the plant is healthy
- If diseased → the name of the disease
- Confidence percentage
This helps farmers take action sooner.
Step 5 — Firebase Realtime Database
I used Firebase Realtime Database to store the sensors values which is pushed from ESP32-C6 using WiFi

Step 6 — FarmPulse AI web app for smart irrigation and disease prediction
- FarmPulse AI login page

- Live Dashboard to update sensors data continuously
.png)
- Water Pump status and control
.png)
- Disease prediction using Groq API call
.png)
.png)
- Scan History

Farmers can view everything from a mobile dashboard.
Step 6 — Building the Prototype
I put everything together on a small board:
- ESP32-C6
- Sensors
- Relay + water pump
- Solar charging circuit
- Battery