save water and energy using raspberry pi with fuzzy logic and iot
Water plays an important role in the agricultural development process because it is an essential element for plant growth. In an agriculture-oriented country and the rate at which water resources are depleting is a dangerous threat hence there is a need for a smart and efficient way of irrigation. I
2025-06-28 16:29:01 - Adil Khan
save water and energy using raspberry pi with fuzzy logic and iot
Project Area of Specialization Internet of ThingsProject SummaryWater plays an important role in the agricultural development process because it is an essential element for plant growth. In an agriculture-oriented country and the rate at which water resources are depleting is a dangerous threat hence there is a need for a smart and efficient way of irrigation. In Pakistan especially Balochistan there is a shortage of water, therefore, we make a small greenhouse based on IoT and fuzzy control to save water.
In this project, we have implemented sensors that detect the humidity in the soil (agricultural field) and supply water to the field which has water requirements. There are sensors present in each field that are not activated till water is present on the field. Once the field gets dry sensors to sense the requirement of water in the field and send a signal to the microcontroller. The microcontroller then supplies water to that particular field that has water requirements till the sensors are deactivated again. In case, when there is more than one signal for water requirement then the microcontroller will prioritize the first received signal and irrigate the fields accordingly. The aim of the implementation was to demonstrate that automatic irrigation can be used to reduce water use. The software application and the hardware implementation help the microcontroller read the data from the temperature sensor verify the data with the already stored data and take the next action.
The fuzzy controller is designed and implemented using MATLAB.
Project Objectives- The main objectives are the optimization of plant growing conditions and the reduction of water use and energy consumption
- Improve efficiency and time
- design fuzzy logic system to control irrigation and fertilization of plants
4. implemented IoT in the project for remote monitoring of soil moisture and pH level
Project Implementation MethodWe will progress in our project by making a plan of the design process, this design process plan is summarized in the flowchart, and first, the hardware must be purchased, and tested to make sure they operate perfectly.
This project is based on the Internet of Things (IoT), where the main objectives are the optimization of plant growing conditions and the reduction of water use and energy consumption. The proposed system based on a Wireless Sensors Network (WSN) was installed in different considered zones of a greenhouse. This network sends the data from the plant environment, such as soil humidity and temperature to a server (Raspberry pi) by means of radio-frequency (RF) communication. To control the irrigation, a fuzzy logic controller (FLC) processes these data and makes an intelligent and optimal decision. The proposed system will be applied to irrigate tomato and green chili plants in a real environment.
One of the greatest advantages of a smart irrigation system is its ability to save water.
By investing in smart irrigation technologies, one can be sure to save water, money, and time in caring for your landscape.
The three irrigation technologies which we will set out in the field to upgrade the project.
1 .Weather-based controller.
2 .Sensor-based controller.
3 .Rain/freeze sensors.
Technical Details of Final DeliverableProcessing Unit: It comprises Raspberry pi which is a processor on-chip. The processing unit acts as an intermediate between the sensors and the cloud. All the sensors are wirelessly connected to the processing unit
Processing layer: contains the FLC.
Cloud layer: a server for hosting data and the controller.
Communication layer: for transferring data between the different parts of the system by means of serial, RF communication, and Internet using a wireless sensor network architecture.
Final Deliverable of the Project HW/SW integrated systemCore Industry ITOther IndustriesCore Technology Internet of Things (IoT)Other TechnologiesSustainable Development Goals Decent Work and Economic Growth, Sustainable Cities and Communities, Responsible Consumption and ProductionRequired Resources| Item Name | Type | No. of Units | Per Unit Cost (in Rs) | Total (in Rs) |
|---|---|---|---|---|
| Total in (Rs) | 79130 | |||
| SD HC 32GB memory card | Equipment | 1 | 2500 | 2500 |
| 400W boost converter constant current module | Equipment | 1 | 1530 | 1530 |
| Rain detector sensor | Equipment | 1 | 210 | 210 |
| DHT11 humidity and temperature sensor | Equipment | 1 | 210 | 210 |
| water pump | Equipment | 1 | 9270 | 9270 |
| 2 channel relay module | Equipment | 2 | 400 | 800 |
| soil moisture sensor | Equipment | 4 | 270 | 1080 |
| Raspberry pi 4 model | Equipment | 1 | 24500 | 24500 |
| Breadboard | Equipment | 1 | 170 | 170 |
| Wi-Fi module | Equipment | 1 | 770 | 770 |
| 12v solenoid valve | Equipment | 1 | 1310 | 1310 |
| Exide Battery | Equipment | 1 | 9000 | 9000 |
| Water Tank 300 gallons | Equipment | 1 | 11880 | 11880 |
| LED | Equipment | 24 | 15 | 360 |
| Switch with socket | Equipment | 1 | 550 | 550 |
| Drip Irrigation pipe | Equipment | 4 | 770 | 3080 |
| wire of sensor implementation | Equipment | 1 | 500 | 500 |
| PH sensor tool | Equipment | 1 | 1410 | 1410 |
| printing | Miscellaneous | 4 | 2000 | 8000 |
| stationary | Miscellaneous | 1 | 2000 | 2000 |