Capacitive Soil Moisture Sensor Arduino Code
If your plant is outdoors you have to protect your electronics from getting rusted or damaged.
Capacitive soil moisture sensor arduino code. In my case i glued it to the pot which had my. It has a detection length of 38mm and a working voltage of 2v 5v. In this tutorial we have used the waveshare soil moisture sensor. First we read the value from the capacitance sensor note.
Interfacing soil moisture sensor and arduino. Capacitive soil moisture sensor contents 1 introduction 2 specification 3 tutorial 3 1 requirements 3 2 connection diagram 3 3 calibration code 3 4 calibration 3 4 1 calibration range 3 4 2 section settings 3 5 test code 4 faq introduction our soil moisture sensor measures soil mositure levels by capacitive sensing rather than resistive. Our soil moisture sensor measures soil mositure levels by capacitive sensing rather than resistive sensing like other sensors on the market. At the time we start writing the code we define 3 variables.
It has a fork like design which makes it easy to insert into the soil. Capacitive soil moisture sensor arduino in this tutorial you will learn how to use the capacitive soil moisture sensor v1 2 with arduino and display the soil moisture value on a 16 2 i2c lcd module. The soil moisture is monitored in real time. This project is about arduino and capacitive soil moisture sensor lcd oled interfacing tutorial.
Following is the python code we use for generating moisture from the value from the capacitive soil moisture sensor measurement in the smart garden system. To avoid corrosion of the soil moisture sensor you a capacitive one. After s the soil moisture sensor into the soil near your plant. Insert it in to the soil around your plants and impress your friends with real time soil moisture data.
This code for a soil moisture sensor and a moist level indicator has been developed and produced by pierre pennings december 2018 this application can be used e g. The analog output voltage boosts along with the soil moisture level increases. A comparator activates a digital output when a adjutable threshold is exceeded. Soil moisture is basically the amount content of water present in the soil.
A 12volt dc water pump is controlled as the soil moisture increases or decreases below a certain pre defined value. Soil moisture sensor arduino. Glue or tape the relay module and the arduino to a nearby wall. In automatic plant watering systems the diy moisture sensor uses 2 pieces of fundue forks the diy moist level indicator is made with 5 neopixel smd5050 leds with ws2812b.
It is made of corrosion resistant material which gives it an excellent service life.