DesignofaPrototypeAutomaticPlantIrrigation ControlSystem
DesignofaPrototypeAutomaticPlantIrrigation ControlSystem
Abstract
Farmers have been using irrigation techniques through manual control. This manual process
is time consuming and usually results in water wastage. The study is about the construction
of a prototype automatic plant irrigation control system. The device is assembled using
ARDUINO UNO and equipped with a soil moisture sensor to detect its condition. In this
automated system, irrigation will automatically take place when there is an intense requirement
of water, as suggested by its moisture content and will automatically turn off when the soil finally
received the amount of water it needs. The testing of the device under different soil conditions
was interpreted based on the sensor input value of the microcontroller. The device worked
and functioned properly according to its program.
devices and interactive objects that can sense researcher was able to observe the flow of the
and control the real world. device’s activity and its functional capabilities.
52
Florencondia JSET Vol. 4, 2016
53
Florencondia JSET Vol. 4, 2016
54
Florencondia JSET Vol. 4, 2016
pinMode(YLED, OUTPUT); {
pinMode(RLED, OUTPUT); digitalWrite(GLED,HIGH);
pinMode(PUMP, OUTPUT); digitalWrite(YLED,LOW);
// initialize all the readings to 0: digitalWrite(RLED,LOW);
for (int thisReading = 0; thisReading < digitalWrite(PUMP,LOW);
numReadings; thisReading++) }
readings[thisReading] = 0; //DAMP
} if(avgvalue<600 && avgvalue>=370)
void loop() { {
// subtract the last reading: digitalWrite(GLED,LOW);
total= total - readings[index]; digitalWrite(YLED,HIGH);
// read from the sensor: digitalWrite(RLED,LOW);
readings[index] = analogRead(SENSOR); digitalWrite(PUMP,LOW);
// add the reading to the total: }
total= total + readings[index]; //WET
// advance to the next position in the array: if(avgvalue<370)
index = index + 1; {
// if we’re at the end of the array... digitalWrite(GLED,LOW);
if (index >= numReadings) digitalWrite(YLED,LOW);
// ...wrap around to the beginning: digitalWrite(RLED,HIGH);
index = 0; digitalWrite(PUMP,HIGH);
avgvalue = total / numReadings; // calculate }
the average delay(50);
Serial.print(”sensor=”); }
Serial.println(avgvalue);
//SENSOR IS NOT CONNECTED
if(avgvalue>=1000)
Development of a Prototype
{ digitalWrite(RLED,LOW);
Automatic Plant Irrigation Control
digitalWrite(YLED,LOW);
System
digitalWrite(GLED,LOW);
digitalWrite(PUMP,HIGH);
The researcher presented the actual
}
procedure in Figure 1 on how to develop
//DRY
the prototype Automatic Plant Irrigation
if(avgvalue<1000 && avgvalue>=600)
Control System. They are the following:
55
Florencondia JSET Vol. 4, 2016
Table 2. Description of the Soil Condition Using the Automatic Irrigation System.
Soil Moisture LEDs status Relay Water
Pump
Condition Content Green Yellow Red Status
Status
< 1000
Dry ON OFF OFF ON ON
≥ 600
< 600
Damp OFF ON OFF ON ON
≥370
Wet < 370 OFF OFF ON OFF OFF
• Construction of the device. The was assessed on the basis of its operation
researcher assembled the prototype after during the testing. The device functioned
the needed materials was gathered. properly according to the input values
programmed in the microcontroller for
each type of soil conditions.
56
Florencondia JSET Vol. 4, 2016
57