My EzloPi Project #2 - Soil Moisture Sensors for Plants

I thought I’d have a go at using some Soil Moisture Sensors and an ESP32 board / EzloPi.

Ezlogic Dynamic Dashboard Tiles:

image

The example tutorial here on the EzloPi website shows how to connect one Soil Moisture Sensor directly to the ESP board.

Here is their wiring diagram for that.

Here is my wiring diagram for two Soil Moisture Sensors and using the expansion board.

I got an ESP32 board:

ESP32-WROOM-32

Chip Information -
XX5R69
Silabs CP2102
DCL00X
2108+

I bought this expansion board also off Aliexpress and using female to female Dupont cables I can easily connect two Soil Moisture Sensors to the two 3.3V and two GND pins that are supplied on the expansion board etc.

I purchased two of these Soil Moisture Sensor Modules off Aliexpress.

First I downloaded the “Universal” Windows drivers from this page here this enabled my Windows 10 PC to communicate with the ESP board on a USB “Com” port.

Once I had all the wiring done and connected up I then used the EzloPi Web Flasher website to configure my sensors and flash the firmware onto the ESP32 board.

Once your ESP board is connected to your PC via a USB data cable you can click “Connect Device” on the menu.

image

Select the serial port and click the Connect button.

image

It should then go Green and say Connected

image

On the first section in the “Manufacturer” “Brand” and “Model” fields you can enter any descriptive text you wish.

Note the “EzloPi Device ID” is auto generated and will be the serial number of this EzloPi “Controller” that you will see on your account etc. Also enter your 2.4Ghz WIFI SSID name and password, this is the WIFI that the ESP board will be connected too.

Here I used the Analog Input option twice and added two, one for GPIO Pin 33 and one for GPIO Pin 32.

You can name your sensor in the first field on this dialogue box.

image

image

Once you have added both Analog Inputs and configured them you can click the “Flash Device” button.

image

You will then see this pop-up message telling you to press the “Boot” button on the ESP32 board.

image

Once you have done that you will then see this pop-up message. Here you need to be patient and wait, it can take sometime to flash the firmware on to the board.

image

Once its done you will then see this pop-up mesage.

image

You should then see your two new Soil Moisture Sensors in the Ezlogic dynamic dashboard page.

Note - If you do not see them you might need to go to the Settings - Controllers area in the Ezlogic Web UI and add the EzloPi “Controller” into your existing Controller group.

When the soil probe is dry and just in air it should read 0%. Then when you put the probe into soil, you should get a percentage reading…

image

Meshbot triggers are coming soon for EzloPi sensor devices also.

If you missed it, my first EzloPi project was here.

2 Likes

Some photos of the actual devices.

I did have to solder the pin header onto the Soil Moisture Sensor module…

Bench Testing.

I probably need to buy some enclosure cases to put them into.

1 Like

how much did the whole thing cost you?
how many sensors can you put in one EzloPi device?
cool project :wink:

I just had a quick look on Aliexpress looks like I paid the following:

1x ESP32 32 Pin MicroController Board = £3.22 - Shipping £1.55 - Total £4.77
1x ESP 32 Pin expansion board = £0.62 - Shipping £1.59 - Total £2.21
2x Soil Moisture Sensors =£1.58 each - Shipping £1.37 - Total £ 4.53
A few female to female Dupont cables I already had them.

Grand Total £11.51 or 14.65 USD.

I think you can have up to 4x Soil Moisture Sensors on the one ESP board.

Its a project for my daughter to remind her to water her plants in her room, when I can use a Meshbot trigger, I plan to send TTS announcement messages to her Google Home speaker periodically.

1 Like

we just need a nice 3d printed box to put it all in :slight_smile:

Yeah I was thinking that also. I don’t have a 3D printer here though. But I have been looking at some project enclosure boxes on Aliexpress that maybe I can use.

1 Like

A well documented project. Good job.

1 Like

We can also use all these Arduino compatible ESP boards to run EzloPi so that we can work with Arduino projects as well, (or replace).
You don’t have to write any code to achieve that.

https://www.aliexpress.us/item/2251832856725934.html?spm=a2g0o.productlist.main.7.201436d1RiJ8KD&algo_pvid=5420ad0d-6c3c-4042-91b6-826a14c0936e&algo_exp_id=5420ad0d-6c3c-4042-91b6-826a14c0936e-3&pdp_npi=4%40dis!USD!3.00!3.0!!!3.00!!%40210318c916923733878771452e54bf!67333639827!sea!US!0!A&curPageLogUid=zRZMNCOnPFoC

https://www.aliexpress.us/item/3256805490698254.html?spm=a2g0o.productlist.main.13.201436d1RiJ8KD&algo_pvid=5420ad0d-6c3c-4042-91b6-826a14c0936e&algo_exp_id=5420ad0d-6c3c-4042-91b6-826a14c0936e-6&pdp_npi=4%40dis!USD!5.72!5.03!!!5.72!!%40210318c916923733878771452e54bf!12000033981036985!sea!US!0!A&curPageLogUid=zGbelxQ5TqGx

https://www.aliexpress.us/item/3256805357774183.html?spm=a2g0o.productlist.main.37.201436d1RiJ8KD&algo_pvid=5420ad0d-6c3c-4042-91b6-826a14c0936e&algo_exp_id=5420ad0d-6c3c-4042-91b6-826a14c0936e-18&pdp_npi=4%40dis!USD!5.45!4.36!!!5.45!!%40210318c916923733878771452e54bf!12000033479397457!sea!US!0!A&curPageLogUid=MAUoQfDckAGQ

https://www.aliexpress.us/item/3256801449872088.html?spm=a2g0o.productlist.main.53.201436d1RiJ8KD&algo_pvid=5420ad0d-6c3c-4042-91b6-826a14c0936e&algo_exp_id=5420ad0d-6c3c-4042-91b6-826a14c0936e-26&pdp_npi=4%40dis!USD!3.28!2.66!!!3.28!!%40210318c916923733878771452e54bf!12000016917147470!sea!US!0!A&curPageLogUid=Xgy9oDDXwHzq

https://www.aliexpress.us/item/3256802344790862.html?spm=a2g0o.productlist.main.117.201436d1RiJ8KD&algo_pvid=5420ad0d-6c3c-4042-91b6-826a14c0936e&algo_exp_id=5420ad0d-6c3c-4042-91b6-826a14c0936e-58&pdp_npi=4%40dis!USD!5.25!3.67!!!5.25!!%40210318c916923733878771452e54bf!12000021022178681!sea!US!0!A&curPageLogUid=yJhS4Okqz79g

https://www.aliexpress.us/item/3256805663893377.html?spm=a2g0o.productlist.main.11.201436d1RiJ8KD&algo_pvid=75ca6fd6-ed1e-4935-bd00-1a61763d3632&algo_exp_id=75ca6fd6-ed1e-4935-bd00-1a61763d3632-5&pdp_npi=4%40dis!USD!13.73!0.99!!!99.53!!%402101d91e16923734691342045ef005!12000034615352084!sea!US!0!A&curPageLogUid=WoK9gBlw4uas

https://www.aliexpress.us/item/3256804950940107.html?spm=a2g0o.productlist.main.87.44334rYe4rYe6v&algo_pvid=181d1d18-a16b-4f84-88f5-8b01b7491262&algo_exp_id=181d1d18-a16b-4f84-88f5-8b01b7491262-43&pdp_npi=4%40dis!USD!3.45!1.93!!!3.45!!%402103205316923736429996386e5663!12000031811147606!sea!US!0!A&curPageLogUid=lLaxcc0hDukD

https://www.aliexpress.us/item/2251832777120842.html?spm=a2g0o.productlist.main.107.44334rYe4rYe6v&algo_pvid=181d1d18-a16b-4f84-88f5-8b01b7491262&algo_exp_id=181d1d18-a16b-4f84-88f5-8b01b7491262-53&pdp_npi=4%40dis!USD!3.33!2.9!!!3.33!!%402103205316923736429996386e5663!66439683790!sea!US!0!A&curPageLogUid=Kj4CNMsvjHMM

https://www.aliexpress.us/item/3256805490698254.html?spm=a2g0o.productlist.main.27.44334rYe4rYe6v&algo_pvid=45fe2669-39a3-407b-9c59-25108d1f58ba&algo_exp_id=45fe2669-39a3-407b-9c59-25108d1f58ba-13&pdp_npi=4%40dis!USD!5.72!5.03!!!5.72!!%40210318c916923737094034402e54b9!12000033981036985!sea!US!0!A&curPageLogUid=rfKKgzbAaIxI

https://www.aliexpress.us/item/3256805357774183.html?spm=a2g0o.productlist.main.35.44334rYe4rYe6v&algo_pvid=45fe2669-39a3-407b-9c59-25108d1f58ba&algo_exp_id=45fe2669-39a3-407b-9c59-25108d1f58ba-17&pdp_npi=4%40dis!USD!5.45!4.36!!!5.45!!%40210318c916923737094034402e54b9!12000033479397457!sea!US!0!A&curPageLogUid=FbIcgTuZupMv

https://www.aliexpress.us/item/3256805659152436.html?spm=a2g0o.productlist.main.45.44334rYe4rYe6v&algo_pvid=45fe2669-39a3-407b-9c59-25108d1f58ba&algo_exp_id=45fe2669-39a3-407b-9c59-25108d1f58ba-22&pdp_npi=4%40dis!USD!3.41!3.0!!!3.41!!%40210318c916923737094034402e54b9!12000034553780880!sea!US!0!A&curPageLogUid=1kcTFibHZZnw

https://www.aliexpress.us/item/3256805680541772.html?spm=a2g0o.productlist.main.43.44334rYe4rYe6v&algo_pvid=f1f8ce63-fdaa-47b3-93e9-cdd2b169f922&algo_exp_id=f1f8ce63-fdaa-47b3-93e9-cdd2b169f922-21&pdp_npi=4%40dis!USD!6.40!3.2!!!6.40!!%402101f4a116923737996046379e869f!12000034630650721!sea!US!0!A&curPageLogUid=EVI6VlAilHk6

https://www.aliexpress.us/item/3256801763558814.html?spm=a2g0o.productlist.main.13.44334rYe4rYe6v&algo_pvid=a6c5067d-9d88-4ed9-b33c-67329b309a2b&algo_exp_id=a6c5067d-9d88-4ed9-b33c-67329b309a2b-6&pdp_npi=4%40dis!USD!3.41!3.0!!!3.41!!%402101f49916923738887613292e5660!12000018196507290!sea!US!0!A&curPageLogUid=0bCUqsHPuWc9

@melih what are they? Just different types of microcontrollers ? Dont really know what Wemos is.

they are all ESP based microcontrollers who are built with compatibility for Arduino…
so you can take an existing Ardunio project, replace it with new board, put EzloPi firmware on it and now you can control it with our Apps, Cloud and create rules etc.