Creating an automatic irrigation system based on Arduino Nano will allow you to monitor soil moisture and automatically turn on a pump depending on the moisture level.
Required components:
Relay module
LCD 1602 I2C character display 16×2
Hydrometer and I2C module
Accumulators
Note that the input voltage must be in the range of 7 to 12 volts.
**If you do not have the Arduino IDE installed, I advise you to watch the video tutorial, which shows how to install and configure it. At this link you will find information on how to install the driver on the Arduino board.**
Download the firmware from this link and upload it to the Arduino according to the instructions above. The library and project scheme can be found here.
You need to flash the Arduino before connecting all the components. If batteries or other parts are connected to it during the firmware, you risk burning (literally) your computer and Arduino.
When the sensor gets into the ground, due to the fact that there is a certain amount of moisture in it, a small current begins to flow between the “pins”. Depending on the level of humidity, the current flows differently (because different resistance is created). By measuring this current, you can find out the approximate level of soil moisture. If the level is less than what we need, then the Arduino gives a command to close the relay, which in turn turns on the pump. After the humidity has increased, the Arduino opens the relay and the water supply stops.
Disclaimer. This article is created for informational purposes only. All advice and instructions are provided for educational purposes and we are not responsible for any possible consequences related to the implementation of this project. Always use safety precautions when working with electronic components.
If you have any problems, you can contact us at [email protected].