AGRO VATORS for ESP32-CAM
An ESP32 camera project for AI Thinker ESP32-CAM involving OLED display, Servo motor.
Parts and sourceBefore you start
Check the exact OLED display, Servo motor configuration against the upstream wiring or parts list.
Upstream README
AGRO-VATORS
AI-powered Smart Farming Rover for Plant Disease Detection, Autonomous Navigation, and Real-time IoT Monitoring
π AGRO-VATORS
AI-Powered Smart Farming Rover using Computer Vision and IoT
AGRO-VATORS is an intelligent farming rover designed to assist farmers by monitoring environmental conditions, detecting plant diseases, and supporting autonomous navigation. It combines IoT sensors, computer vision, and a web dashboard for real-time monitoring and control.
Features
- Plant disease detection using YOLOv8 and Roboflow
- Live ESP32-CAM video streaming
- Real-time temperature and humidity monitoring
- Soil moisture monitoring
- Water pump control using relay
- GPS location tracking
- Autonomous line-following mode
- Manual rover control through a web dashboard
- Live dashboard with sensor data
Hardware Used
| Component | Purpose |
|---|---|
| ESP32 | Main Controller |
| ESP32-CAM | Live Video Streaming |
| L298N Motor Driver | Drive DC Motors |
| DC Motors | Rover Movement |
| DHT11 | Temperature & Humidity |
| Soil Moisture Sensor | Soil Monitoring |
| Ultrasonic Sensor | Obstacle Detection |
| GPS Module | Location Tracking |
| OLED Display | Live Status Display |
| Relay Module | Water Pump Switching |
| Water Pump | Irrigation |
| Servo Motors | Camera Pan & Tilt |
Software Stack
| Category | Technologies |
|---|---|
| Programming Language | Python, C++ (Arduino) |
| Backend | Flask |
| Frontend | HTML, CSS, JavaScript |
| AI Model | YOLOv8 |
| Plant Disease Detection | Roboflow API |
| Microcontroller | ESP32, ESP32-CAM |
| IDE | Arduino IDE, VS Code |
π Project Structure
AGRO-VATORS/
β
βββ docs/
β βββ diagrams/
β βββ images/
β βββ videos/
β
βββ esp32/
β
βββ models/
β
βββ static/
β
βββ templates/
β
βββ test/
β
βββ app.py
βββ plant_health.py
βββ requirements.txt
βββ README.md
βββ LICENSE
βββ .gitignore
βββ .env.example
Installation
- Clone the repository
git clone https://github.com/shayak-98/AGRO-VATORS.git
- Install dependencies
pip install -r requirements.txt
- Create a
.envfile
ROBOFLOW_API_KEY=YOUR_API_KEY
ROBOFLOW_MODEL_ID=YOUR_MODEL_ID
- Run the application
python app.py
Project Images
Rover
Dashboard
OLED Display
System Architecture
Workflow
- ESP32 collects data from environmental sensors.
- Sensor data is sent to the Flask dashboard over Wi-Fi.
- ESP32-CAM streams live video to the Flask application.
- YOLOv8 performs real-time object detection on the video stream.
- When the user clicks Scan Plant, an image is captured and sent to the Roboflow API.
- The disease prediction is displayed on the dashboard.
- The rover can be controlled manually or switched to autonomous mode.
Demo
Demo videos of the project are available in:
docs/videos/autonomous_mode.mp4docs/videos/project_demo.mp4docs/videos/dashboard_demo.mp4
Usage
- Power the ESP32 rover.
- Connect the laptop ,ESP32 and ESP32 CAM to the same Wi-Fi network.
- Launch the Flask application.
- Open the dashboard in your browser.
- View live sensor data.
- Watch the ESP32-CAM live stream.
- Control the rover manually or switch to autonomous mode.
- Click Scan Plant to detect plant diseases.
Future Improvements
- Automatic crop recommendation
- AI-based autonomous navigation
- Cloud database integration
- Android application
- Historical sensor analytics
π€ Contributing
Contributions, suggestions, and improvements are welcome.
If you find any issues, please open an Issue or submit a Pull Request.
π License
This project is licensed under the MIT License.