Moderators: grovkillen, Stuntteam, TD-er
-
jme
- Normal user
- Posts: 43
- Joined: 11 Apr 2018, 14:20
#1
Post
by jme » 17 Apr 2018, 15:00
Hi,
Anyone know if this soil moisture sensor is compatible with ESP easy ?
How do i have to set it up ?
Same for this water level sensor ?
Thx in advance
-
toffel969
- Normal user
- Posts: 469
- Joined: 03 Jan 2017, 10:58
- Location: Germany
#2
Post
by toffel969 » 17 Apr 2018, 16:33
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.
Domoticz on Raspi 2 -- 14 ESP units (hacked Sonoff,NodeMCUs, Wemos, self-built units) running with RC140- Mega 2.0.0 dev8
-
grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
-
Contact:
#4
Post
by grovkillen » 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?
-
toffel969
- Normal user
- Posts: 469
- Joined: 03 Jan 2017, 10:58
- Location: Germany
#5
Post
by toffel969 » 18 Apr 2018, 22:22
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.
Domoticz on Raspi 2 -- 14 ESP units (hacked Sonoff,NodeMCUs, Wemos, self-built units) running with RC140- Mega 2.0.0 dev8
-
jme
- Normal user
- Posts: 43
- Joined: 11 Apr 2018, 14:20
#6
Post
by jme » 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 ?
-
toffel969
- Normal user
- Posts: 469
- Joined: 03 Jan 2017, 10:58
- Location: Germany
#7
Post
by toffel969 » 19 Apr 2018, 16:19
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
Domoticz on Raspi 2 -- 14 ESP units (hacked Sonoff,NodeMCUs, Wemos, self-built units) running with RC140- Mega 2.0.0 dev8
-
jme
- Normal user
- Posts: 43
- Joined: 11 Apr 2018, 14:20
#8
Post
by jme » 24 Apr 2018, 23:01
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 ?
-
jme
- Normal user
- Posts: 43
- Joined: 11 Apr 2018, 14:20
#9
Post
by jme » 24 Apr 2018, 23:54
if i want to use the digital input, wich device type do i have to set up in espeasy?
-
grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
-
Contact:
#10
Post
by grovkillen » 25 Apr 2018, 06:10
A switch which it essentially is then, high signal when the level is above the set level (adjusted by the potentiometer).
-
grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
-
Contact:
#12
Post
by grovkillen » 28 Apr 2018, 11:56
Cool, let's hope the new version cost about the same.
-
dynamicdave
- Normal user
- Posts: 258
- Joined: 30 Jan 2017, 20:25
- Location: Hampshire, UK
#13
Post
by dynamicdave » 29 Apr 2018, 09:39
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
Who is online
Users browsing this forum: Ahrefs [Bot] and 3 guests