Performance evaluation
The smart irrigation system was tested under various operating conditions to assess
its performance, efficiency and reliability. The assessment focused on the following
essential areas: accuracy of sensor readings, response time, system stability under
multi-threaded execution and generally water conservation.
PIR sensors were able to detect motion and pause irrigation while showing an “Alert”
message on the LCD. Safety was improved, avoiding water wastage. The soil moisture
sensors could detect areas with dry soil and start irrigation. The readings were mostly
accurate, with slight differences caused by the environment. Separating tasks between
Core0 and Core1(intrusion detection), the system could run smoothly and both
processes operated at the same time, avoiding delays. Depending on the number of
sprinkles in use, the servo motor showed the correct pump speed. The pump was not
in overload, meaning that water flowed steadily in the pump. The system stopped and
displayed a “Maintenance” message after 30 watering cycles, reminding the user to
ensure that the system is services, keeping it reliable. Areas which required irrigation
(dry zones) were attended to by the system, saving water in comparison to traditional
methods. About 20 to 30% less water was used after testing. The system proved to be
efficient and reliable.
Conclusion
The project proved to be implemented successfully using a Raspberry Pi Pico
microprocessor for smart irrigation. Using soil moisture sensors, automated pump
control, intrusion detection alerts, immediate user feedback via an LCD, automated
pump control and a way of tracking maintenance; the system was able to combat
traditional irrigation challenges.
By way of performance evaluation, the system was fully functional and reliable
because it was able to respond to watering schedules without any dependence on
human effort, furthermore, showing improvements in water conservation. Its
automatic, semi-automatic and manual modes capabilities enabled it to adapt to
different farming needs while guaranteeing user control when needed.
The project highlighted the need for IoT-driven solutions within agriculture, indicating
how the use of automation and data-driven solutions can amplify sustainability and
productivity. With more improvements such as cloud integration for the use of remote
monitoring, AI-based analysis for predictive measurements and the ability to scale for
larger farms, the system can develop into better smart farming solutions that combat
food security challenges and water wastage at a larger scale.
, Functional requirements:
Three moisture sensors to detect soil moisture levels
Three sprinkler heads with valves, each corresponding to a moisture sensor. Each sprinkler
head is controller by its own valve, which automatically opens whenever its corresponding
moisture sensor detects dry soil.
A pump that supplies water to dry areas and changes speed depending on the number of
areas being watered.
A servo motor with three states indicating the speed of the pump.
An LCD screen to display the areas being watered and the timer of each process cycle.
When an area is being watered, that specific area will be watered for 30 seconds and be
automatically turned off thereafter. Each area has an individual timer.
A button should be added that automatically stops watering, regardless of how much time is
remaining on the active timer.
A motion sensor is used to monitor the area for intrusions. When an intrusion is detected,
watering should not start. If watering has already started, it will be paused for a specified
amount of time before continuing watering.
The system keeps track of watering cycles. After 30 cycles, the user is notified that
maintenance should take place. This notification is displayed on the LCD screen as a clear
“Maintenance” message.
The system implements multi-core processing to simultaneously monitor the motion and
moisture sensors.
Development Environment:
Visual studio code was used as the code editor. The Raspberry Pi Pico SDK was installed
using the Raspberry Pi Pico windows installer (https://www.raspberrypi.com/news/raspberrypi-pico-windows-installer/ Link for references). This installs the all the necessary packages
needed to code for the Pico using visual studio code. Visual studio code used the official
Raspberry Pi Pico extension. This allows you to compile the code and load it onto the Pico.
The “C/C++ Extension Pack” and the official “Github” extensions were also used. The i2cdisplay-lib (https://github.com/ParicBat/rpi-pico-i2c-display-lib) library was used for LCD
configuration and usage.