Page 1 of 1

Soil moisture

Posted: 17 Apr 2018, 15:00
by jme
Hi,

Anyone know if this soil moisture sensor is compatible with ESP easy ?

How do i have to set it up ?

Image

Same for this water level sensor ?

Image

Thx in advance

Re: Soil moisture

Posted: 17 Apr 2018, 16:33
by toffel969
For the first one a definite yes. You can use the analog output to adc or the digital to any other gpio. The threshold is set up with the poti.

Re: Soil moisture

Posted: 18 Apr 2018, 20:29
by Drum
From my understanding, the soil moisture sensor you have shown does not last very long in use. There are a couple of capacitive soil moisture sensors which should work longer if you can keep them sealed from moisture. Their accuracy is very dependent on a stable voltage

https://www.dfrobot.com/product-1385.html
https://www.tindie.com/products/miceuz/ ... re-sensor/
https://www.indiegogo.com/projects/soil ... rduino-diy#/
https://www.tindie.com/products/aprbrot ... rod_search

The have used a previous version of the last one after replacing the battery with a 18650 and voltage regulator. The new version has a different temp sensor which may not be supported by espeasy, and a clever switch operated by gpio which allows you to also monitor the battery voltage, as the ADC is also used to measure the soil moisture. This also should allow an correction to the soil moistur reading as the battery voltage drops. Adapting a plugin is not very hard.

The others I have not used.

Re: Soil moisture

Posted: 18 Apr 2018, 20:49
by grovkillen
I think many use the fork soil sensor incorrectly (don't hold this against me if I'm wrong, I don't have one myself) by letting them operate 24/7. The DC current will make the cathode loose the metallic part fairly fast if operated 100% of the time. I would suspect the life time to increase if you only let them run for lets say 30 seconds twice an hour?

Re: Soil moisture

Posted: 18 Apr 2018, 22:22
by toffel969
grovkillen wrote: 18 Apr 2018, 20:49 I think many use the fork soil sensor incorrectly (don't hold this against me if I'm wrong, I don't have one myself) by letting them operate 24/7. The DC current will make the cathode loose the metallic part fairly fast if operated 100% of the time. I would suspect the life time to increase if you only let them run for lets say 30 seconds twice an hour?
That would be preferable indeed. With task run, there should actually be a way to achieve that with rules.
However, I replaced the fork of this sensor by a stainless steel one, lasts for 9 months already without visible corrosion. It's an "ok" solution.

Re: Soil moisture

Posted: 19 Apr 2018, 14:29
by jme
Thx for your answers
For the first one a definite yes. You can use the analog output to adc or the digital to any other gpio. The threshold is set up with the poti.
Which device type do i have to choose in Esp easy ?

Re: Soil moisture

Posted: 19 Apr 2018, 16:19
by toffel969
jme wrote: 19 Apr 2018, 14:29 Thx for your answers
For the first one a definite yes. You can use the analog output to adc or the digital to any other gpio. The threshold is set up with the poti.
Which device type do i have to choose in Esp easy ?
Analog input.
https://www.letscontrolit.com/wiki/index.php/Analog

Re: Soil moisture

Posted: 24 Apr 2018, 23:01
by jme
Yes that works :-)

One more question if i put the soil moisture sensor in water i get a value of 326.

If i remove it from water i havea value of 960.

how cani convert it to percent ? 100% wet, 0%dry ?

Re: Soil moisture

Posted: 24 Apr 2018, 23:54
by jme
if i want to use the digital input, wich device type do i have to set up in espeasy?

Re: Soil moisture

Posted: 25 Apr 2018, 06:10
by grovkillen
A switch which it essentially is then, high signal when the level is above the set level (adjusted by the potentiometer).

Re: Soil moisture

Posted: 28 Apr 2018, 11:43
by krikk
another very interesting sensor would be this one:

https://ex-store.de/Kapazitiver-Feuchti ... altausgang

...but its unavailable because he works on a new (better) revision which should be release in may??

Re: Soil moisture

Posted: 28 Apr 2018, 11:56
by grovkillen
Cool, let's hope the new version cost about the same.

Re: Soil moisture

Posted: 29 Apr 2018, 09:39
by dynamicdave
Hi,
I use the first version of the mositure sensor.
I don't use the digital output. I use the voltage or analogue output.
The voltage output connects to the analogue input on an ESP8266 (Wemos D1 Mini).

I've mounted the Wemos D1 Mini on a small breadboard and routed the +3v3 for the moisture sensor via a transistor (that acts as switch).

The ESP8266 talks to Node-Red via MQTT which means I can send a message to turn-on the transistor (and power-up) the moisture sensor for a few seconds every 15-minutes or so.

Cheers from Dynamic Dave

Re: Soil moisture

Posted: 29 Apr 2018, 09:49
by dynamicdave
Here's a link to a PDF instruction sheet that I made for the IoT Club where I work as a tutor.
It covers the practical steps involved in setting up the mositure sensor.

http://youtrain.me.uk/iotclub/pdf/rs_11.pdf

Cheers from David

Re: Soil moisture

Posted: 10 Apr 2019, 19:09
by acsservices
Drum wrote: 18 Apr 2018, 20:29 From my understanding, the Soils testing Phoenix moisture sensor you have shown does not last very long in use. There are a couple of capacitive soil moisture sensors which should work longer if you can keep them sealed from moisture. Their accuracy is very dependent on a stable voltage

https://www.dfrobot.com/product-1385.html
https://www.tindie.com/products/miceuz/ ... re-sensor/
https://www.indiegogo.com/projects/soil ... rduino-diy#/
https://www.tindie.com/products/aprbrot ... rod_search

The have used a previous version of the last one after replacing the battery with a 18650 and voltage regulator. The new version has a different temp sensor which may not be supported by espeasy, and a clever switch operated by gpio which allows you to also monitor the battery voltage, as the ADC is also used to measure the soil moisture. This also should allow an correction to the soil moistur reading as the battery voltage drops. Adapting a plugin is not very hard.

The others I have not used.
Thanks for sharing this information.

Re: Soil moisture

Posted: 02 May 2019, 16:45
by Drum
I was looking and found a new one
https://www.tindie.com/products/pinotec ... re-sensor/

Looks like it might last longer but is more expensive.