SOIL MOISTURE SENSOR FOR PLANTS (V1.2 / V2.0) - Arduino tutorial #31
Bas on Tech Bas on Tech
7.3K subscribers
149,751 views
2.3K

 Published On Mar 28, 2020

The capacitive soil moisture sensor allows you to measure the moistness of soil. The biggest advantage over a traditional moisture sensor is that the capacitive sensor doesn't corrode. In this tutorial I'll explain how you can read the soil moisture sensor and what the advantages are. Further you learn how to work with the map() function and how to calculate the soil moisture in percentage.

Many ask what the difference is between v1.2 and v2.0, this is what I found:
- The spelling of the out pin: AOUT on v1.2 and AUOT on the v2.0
- The top of the PCB shows a tiny circle on v2.0

πŸ€“ Fun fact: One pin on my sensor is labeled AUOT which should be AOUT for Analog OUT.

The Arduino for beginners tutorials series guides you through the world of Arduino. A video is around 10 minutes and shows you step-by-step how to build the circuit and write the code. The website contains the course material, circuit diagram, Arduino code and shopping list of all the components used in the tutorial.

⬇️ Course material, circuit diagram, code and part list https://arduino-tutorials.net/tutoria...

πŸ‘‰ More tutorials and projects on https://arduino-tutorials.net

πŸ‡³πŸ‡± Deze tutorial is ook in het Nederlands beschikbaar Β Β Β β€’Β πŸ‡³πŸ‡±Β CAPACITIEVEΒ VOCHTSENSORΒ VOORΒ PLANT...Β Β 

CHAPTERS:
00:00 Introduction
00:15 Components
00:30 Capacitive soil moisture sensor
02:57 Building the circuit
03:34 Arduino code - part 1
04:42 Arduino code - part 2

COMPONENTS
πŸ‡¨πŸ‡³ Arduino Uno (clone) with cable - AliExpress
https://arduino-tutorials.net/r/Jd28hF

πŸ‡³πŸ‡± Arduino Uno (clone) - Opencircuit
https://arduino-tutorials.net/r/8237Hd

πŸ‡³πŸ‡± Arduino Uno SMD (original) - Opencircuit
https://arduino-tutorials.net/r/Ud29dh

πŸ‡³πŸ‡± Arduino Uno Chip (original) - Opencircuit
https://arduino-tutorials.net/r/Jd82ha

πŸ‡¨πŸ‡³ 1x breadboard small - AliExpress
https://arduino-tutorials.net/r/7364GD

πŸ‡³πŸ‡± 1x breadboard small - Opencircuit
https://arduino-tutorials.net/r/238Jds

πŸ‡¨πŸ‡³ 1x breadboard large - AliExpress
https://arduino-tutorials.net/r/FDH28dh

πŸ‡³πŸ‡± 1x breadboard large - Opencircuit
https://arduino-tutorials.net/r/8237Dh

πŸ‡¨πŸ‡³ Jumper wire assortment (MM/MF/FF) - AliExpress
https://arduino-tutorials.net/r/Fh378fg

πŸ‡¨πŸ‡³ Jumper wire male-male - AliExpress
https://arduino-tutorials.net/r/7346GD

πŸ‡³πŸ‡± Jumper wire male-male - Opencircuit
https://arduino-tutorials.net/r/8237Jd

πŸ‡¨πŸ‡³ 128x64 I2C OLED (blue) - AliExpress
https://arduino-tutorials.net/r/Fh83gf

πŸ‡³πŸ‡± 128x64 I2C OLED (blue) - Opencircuit
https://arduino-tutorials.net/r/923Hfg

πŸ‡¨πŸ‡³ 128x64 I2C OLED (white) - AliExpress
https://arduino-tutorials.net/r/34hFGd

πŸ‡³πŸ‡± 128x64 I2C OLED (white) - Opencircuit
https://arduino-tutorials.net/r/38HFks

πŸ‡¨πŸ‡³ 128x64 I2C OLED (yellow-blue) - AliExpress
https://arduino-tutorials.net/r/dhf83D

πŸ‡³πŸ‡± 128x64 I2C OLED (yellow-blue) - Opencircuit
https://arduino-tutorials.net/r/283Jfh

πŸ‡¨πŸ‡³ 20x colored tactile switches - AliExpress
https://arduino-tutorials.net/r/73fHd

πŸ‡³πŸ‡± 5x colored tactile switches - Opencircuit
https://arduino-tutorials.net/r/834jFH


VIDEO SUMMARY:
In this tutorial, Bas will show you how to use a capacitive soil moisture sensor. You'll need an Arduino board, the sensor, a sensor cable, jumper wires and a glass of water. He explains that the sensor works by measuring the resistance between two pins which changes based on the water level in the soil. However, he warns that fertilizers and corrosion can affect the sensor's accuracy. Instead of measuring resistance, this sensor works like a capacitor, measuring charge and discharge timing. The sensor also has a chip called a 555 timer chip which helps with timing. Bas will guide you on how to connect the sensor to the Arduino board and run the code. Finally, he'll show you how to calculate the percentage of moisture in the soil by adjusting the code and measuring the total range of the sensor.

#arduino #BasOnTech

show more

Share/Embed