We will discuss all points and concepts briefly in this article and also provide a Proteus Simulation to observe how it will work in the real world. Complete fully explained code and simulation are also provided below as you go ahead in this article. You can download it from there.
Smart Irrigation System using Arduino UNOLet’s start with an Introduction:
Where To Buy? | ||||
---|---|---|---|---|
No. | Components | Distributor | Link To Buy | |
1 | LCD 20x4 | Amazon | Buy Now | |
2 | LDR Sensor | Amazon | Buy Now | |
3 | MQ-135 | Amazon | Buy Now | |
4 | Arduino Uno | Amazon | Buy Now |
In the late decades, there has been a quick advancement in Smart Agricultural Systems. Show that agriculture has great importance worldwide. Indeed, in India for example, about 70 % of the people rely upon the vital sector of agriculture. In the past, irrigation systems used to be dependent on the mills to irrigate the farm by conventional methods without knowing the appropriate quantities of these crops.
These old systems are a major cause of the waste of large quantities of water and thus destroy some crops because of the lack of adequate quantities of water. However, with the recent technological developments, there have been innovative systems for irrigation without the farmer interfering in the irrigation process. We will discuss it in brief below.
We will do a simulation on Proteus 8 Professional Software.
The working of this project is like, we will use a Soil Moisture sensor for measuring the moisture of Soil according to which water valves are controlled. When the moisture level gets below a threshold value, valves will open with the help of a relay or solenoid till the soil is well moisturized.
In a used case, when the moisture level gets below a threshold value, valves will open with the help of a relay or solenoid for a required time interval.
Since we are designing a prototype of this project, we will use jumper wires instead of soldering.
You can use a Battery, Adapter or any DC source of 5-8v(recommendable).
Since we are making a prototype of this project, we will make connections on the breadboard and avoid soldering the components. We will use male to male, male to female and female to female jumper wires.
Pin Connections of Smart Irrigation System | ||||
---|---|---|---|---|
No. | Sensor | Pinout | ||
1 | Soil Moisture Sensor | Data - A0 (Arduino) | ||
2 | LDR Sensor | LDR-Resistor Junction - A2 (Arduino) | ||
3 | MQ135 Gas Sensor | Out - A1 (Arduino) | ||
4 | DHT11 Sensor | Data - D2 (Arduino) | ||
5 | BMP180 Pressure Sensor | SDA-SDA (Arduino) SCL - SCL (Arduino) |
You need to install these third-party Arduino Libraries, in order to interface sensors:
We have added comments in the code for better understanding so it can be understood easily.
Note - Change the Address of the LCD Screen while you run the code in Proteus, change it to 0x20 instead of 0x27 or anyone else. In the real experiment, we can alter the address of the LCD by changing the configurations of A0, A1 and A2 pins of the PCF8574 module.
We will show you a demo of this project as a simulation. We are using Proteus 8 Professional Software for the simulation.
Note - We used a simple LED instead of the valve because the valve component is not available in the Software, simply replace the LED with a valve in a real project. Make connections according to the circuit diagram and add virtual terminals to Serial pins to see the readings and Data.
This means when the soil gets dry the valve will open and water will be provided to the crops.