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 [ Ссылка ]
👉 More tutorials and projects on [ Ссылка ]
🇳🇱 Deze tutorial is ook in het Nederlands beschikbaar [ Ссылка ]
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
[ Ссылка ]
🇳🇱 Arduino Uno (clone) - Opencircuit
[ Ссылка ]
🇳🇱 Arduino Uno SMD (original) - Opencircuit
[ Ссылка ]
🇳🇱 Arduino Uno Chip (original) - Opencircuit
[ Ссылка ]
🇨🇳 1x breadboard small - AliExpress
[ Ссылка ]
🇳🇱 1x breadboard small - Opencircuit
[ Ссылка ]
🇨🇳 1x breadboard large - AliExpress
[ Ссылка ]
🇳🇱 1x breadboard large - Opencircuit
[ Ссылка ]
🇨🇳 Jumper wire assortment (MM/MF/FF) - AliExpress
[ Ссылка ]
🇨🇳 Jumper wire male-male - AliExpress
[ Ссылка ]
🇳🇱 Jumper wire male-male - Opencircuit
[ Ссылка ]
🇨🇳 128x64 I2C OLED (blue) - AliExpress
[ Ссылка ]
🇳🇱 128x64 I2C OLED (blue) - Opencircuit
[ Ссылка ]
🇨🇳 128x64 I2C OLED (white) - AliExpress
[ Ссылка ]
🇳🇱 128x64 I2C OLED (white) - Opencircuit
[ Ссылка ]
🇨🇳 128x64 I2C OLED (yellow-blue) - AliExpress
[ Ссылка ]
🇳🇱 128x64 I2C OLED (yellow-blue) - Opencircuit
[ Ссылка ]
🇨🇳 20x colored tactile switches - AliExpress
[ Ссылка ]
🇳🇱 5x colored tactile switches - Opencircuit
[ Ссылка ]
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
Ещё видео!