Very new to coding in general, and I've been tasked with the Arduino portion of a research project.
The ultimate goal is to build a custom board (and code) to record soil moisture levels from multiple sensors in regular time intervals. Bonus if I can get a live reading on an LCD screen.
I've done a few basic tutorials (blink, buttons, etc) but that's about it.
So far we have the Uno and a bread board, sensors are on the way.
( Songhe Capacitive Soil Moisture Sensor Module Corrosion Resistant 3.3~5.5V W/Gravity for Arduino)
If anyone can point me in the right direction for finding basic codes to get started I'd be super grateful.
The cheap resistive soil moisture sensors work for a day, or a week, or maybe a month.
They look like these: https://www.amazon.com/HiLetgo-Moisture-Automatic-Watering-Arduino/dp/B01DKISKLO/
Don't use them, they only cause trouble.
The capacitive soil moisture sensor do work. For example: https://www.adafruit.com/product/4026
Adafruit has a tutorial and a library.
Here is the story of Chirp! https://wemakethings.net/chirp/
Some soil moisture sensors can be placed deep in the ground. There are also professional sensors.
The capacitive sensors that you bought should work. There are very cheap capacitive sensors that barely work. Keep in mind that if the results are inconsistent, then it might be the sensor.
Don't go for "finding codes"! That's a dead or at least painful end.
Google "Arduino + moisture sensor" You will get plenty of suggestions.
The number one is to paly, explore just that sensor. Read the code and try to understand how it works, what the different parts of the code is doing.
There are several educational example codes available to learn from.
Look for "blink without delay", "do several things at the same time".
Your project is quite reasonable and worth the basic learning, and giving You what You want.
This business is not like playing with LEGO bricks, not any "plug and play".
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.