Capacitive Soil Moisture Sensor Wemos ESPeasy

Everything about esp8266 and more.
Post Reply
User avatar
JHO01
Posts: 28
Joined: Wednesday 02 November 2016 14:59
Target OS: Raspberry Pi
Domoticz version: 49700
Location: Netherlands
Contact:

Capacitive Soil Moisture Sensor Wemos ESPeasy

Post by JHO01 » Monday 09 July 2018 17:14

Finally got the capacitive soil moisture sensor working in Domoticz

Hardware:
-capacitive soil moisture sensor, does not corrode (Aliexpress)
-Wemos D1 Mini
-connect moisture sensor VCC=>5V (Wemos), GND=>G (Wemos), AUDT=>A0 (Wemos)

Software steps:

Domoticz:
-Create Virtual Sensor, Leaf Wetness (because I like the little green icon); note IDX (in my case 1883)

Wemos:
-Flash Wemos with ESPeasy

ESPEasy:
-Config: Connect to your wifi network
-Controllers: Connect to your Domoticz HTTP

-Devices: add Analog input - internal, !st GPIO-14 (D5) enabled,
Do NOT enable send to Controler.
Memorize Name sensor (in my case Soil) and # name of Values (in my case Analog)
Add formula: (840-%value%)/425*100 (The A0 value is varying between 840-425, Dry-Wet)
Submit

-Tools, advanced, check rules, Submit
-Rules: add

Code: Select all

on Soil#Analog do
 SendToHTTP,192.168.2.30,8080,/json.htm?param=udevice&type=command&idx=1883&nvalue=[Soil#Analog]
endon
Submit.

Now the number below the Leaf Wetness icon is showing the moisture percentage


Done
RPI-3, Z-stick Gen5, RFlink, 1-wire DS18B20, Fibaro switches, various RF-433 sockets, , BMP018

User avatar
JHO01
Posts: 28
Joined: Wednesday 02 November 2016 14:59
Target OS: Raspberry Pi
Domoticz version: 49700
Location: Netherlands
Contact:

Re: Capacitive Soil Moisture Sensor Wemos ESPeasy

Post by JHO01 » Friday 27 July 2018 9:25

Next challenge is to make the capacitive moisture sensor water proof. Have a look at my banana collection

1) cut out some plastic of the connector and clamp and solder a telephone wire:
2) Use a 2 cm diameter hose
3) Fill up the inside with silicone
1.jpg
1.jpg (29.39 KiB) Viewed 143 times
2.jpg
2.jpg (22.71 KiB) Viewed 143 times
3.jpg
3.jpg (35.07 KiB) Viewed 143 times
RPI-3, Z-stick Gen5, RFlink, 1-wire DS18B20, Fibaro switches, various RF-433 sockets, , BMP018

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests