

Smart Irrigation System In PHP and MySQLSmart Irrigation System In PHP and MySQL
A comprehensive web-based application for monitoring and controlling an automated irrigation system with real-time sensor data fro
Smart Irrigation System In PHP and MySQL
A comprehensive web-based application for monitoring and controlling an automated irrigation syst...
Overview
The Smart Irrigation System is an integrated solution designed to optimize water usage in agricultural and gardening applications. It combines hardware sensors with a web-based control interface to provide precise, automated irrigation based on real-time environmental conditions.
The system uses an Arduino microcontroller with WiFi capabilities to collect data from soil moisture sensors placed in different zones, along with temperature and humidity readings from DHT22 sensors. This data is transmitted to a PHP/MySQL backend where it's processed, stored, and used to make intelligent irrigation decisions.
Each irrigation zone can be configured with specific moisture thresholds, allowing the system to automatically start watering when soil conditions become too dry. Users can also manually control irrigation through an intuitive web dashboard, which provides real-time visualization of all sensor data and system status.
The system features a secure login mechanism, allowing authorized users to access the dashboard and control irrigation remotely. Historical data is stored in the database, enabling users to analyze trends, generate reports, and optimize their irrigation strategies over time.
Key components include:
- Arduino-based sensor network for real-time data collection
- Relay-controlled solenoid valves for precise water delivery
- PHP/MySQL backend for data processing and storage
- Responsive web dashboard for monitoring and control
- User authentication system for secure access
Features
- Real-time monitoring of soil moisture, temperature, and humidity
- Manual and automatic irrigation control for 8 different zones
- Zone-specific moisture thresholds for automated irrigation
- Pause/resume functionality for individual zones
- Historical data tracking and reporting
- System diagnostics and maintenance tools
- User authentication and profile management
- Responsive web dashboard with modern UI
Requirements
Web server with PHP 7.4+ and MySQL 5.7+
- Arduino board with ESP8266 WiFi module
- DHT22 temperature and humidity sensor
- Soil moisture sensors for each zone
- Relay module for controlling solenoid valves
Instructions
1. Clone the repository to your web server directory:
```
git clone https://github.com/yourusernam...
```
2. Import the database schema:
```
mysql -u username -p < config/schema.sql
```
3. Configure database connection in `g/database.php`
4. Upload the Arduino code to your microcontroller:
- Open `arduino/irrigation_controller.ino` in Arduino IDE
- Update WiFi credentials and server URL
- Upload to your Arduino board
5. Access the web interface:
- Navigate to `http://your-server-url/Auto_Irrigate/`
- Login with default credentials (username: admin, password: admin123)
Category | Scripts & Code / PHP Scripts / Miscellaneous |
First release | 21 April 2025 |
Last update | 21 April 2025 |
Files included | .php, .css, .h, .db, Javascript .js |
Tags | #smartirrigation, #iot, #arduinoproject, #automatedwatering, #phpmysql, #webdashboard, #soilmoisturesensors, #esp8266, #zonecontrol, #realtimesensors, #precisionagriculture, #waterconservation, #smartfarming, #userauthentication, #responsivedesign |