Soil probe not working

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
manuloup
Normal user
Posts: 13
Joined: 12 Nov 2020, 07:50

Soil probe not working

#1 Post by manuloup » 12 Nov 2020, 09:30

Hi,

I am trying to make my soil probe based on a esp8266 working with Espeasy and the plugin P047 : https://espeasy.readthedocs.io/en/lates ... /P047.html

My device is based on a tmp112 (I2C) , and moisture should come to a0 output.
2020-02-28_161919.jpg
2020-02-28_161919.jpg (80.73 KiB) Viewed 18600 times
I have installed successfully the latest version of mega firmware (test version) :
2020-11-12_092727.jpg
2020-11-12_092727.jpg (249.93 KiB) Viewed 18600 times
2020-11-12_092754.jpg
2020-11-12_092754.jpg (171.3 KiB) Viewed 18600 times
No value is returned for temperature and moisture.

Is my device not a recognized one ?

Thank you for your help.

Manu

TD-er
Core team member
Posts: 8739
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Soil probe not working

#2 Post by TD-er » 12 Nov 2020, 10:06

Does the device show op when performing an I2C scan?

manuloup
Normal user
Posts: 13
Joined: 12 Nov 2020, 07:50

Re: Soil probe not working

#3 Post by manuloup » 12 Nov 2020, 10:11

Here is the result of the I2C scan.
2020-11-12_101110.jpg
2020-11-12_101110.jpg (81.64 KiB) Viewed 18594 times

User avatar
Ath
Normal user
Posts: 3494
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Soil probe not working

#4 Post by Ath » 12 Nov 2020, 10:21

You have not selected the correct 'I2C address' in the configuration, 0x0 is the default, 'empty', value, and should be changed to 0x48, most likely available in the combobox as a selection.
/Ton (PayPal.me)

manuloup
Normal user
Posts: 13
Joined: 12 Nov 2020, 07:50

Re: Soil probe not working

#5 Post by manuloup » 12 Nov 2020, 10:29

It is done, but still no values for temperature and moisture.
2020-11-12_102757.jpg
2020-11-12_102757.jpg (210.82 KiB) Viewed 18588 times

User avatar
Ath
Normal user
Posts: 3494
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Soil probe not working

#6 Post by Ath » 12 Nov 2020, 10:39

It might be needed to use the 'Force Slow I2C speed' setting, not all sensors allow for 400 kHz (default high speed).
/Ton (PayPal.me)

manuloup
Normal user
Posts: 13
Joined: 12 Nov 2020, 07:50

Re: Soil probe not working

#7 Post by manuloup » 12 Nov 2020, 10:44

Done, but still no success.
2020-11-12_104419.jpg
2020-11-12_104419.jpg (171.16 KiB) Viewed 18584 times

manuloup
Normal user
Posts: 13
Joined: 12 Nov 2020, 07:50

Re: Soil probe not working

#8 Post by manuloup » 12 Nov 2020, 10:58

Look at the previous I2C scan screen. The device in 0X48 does not appear to be supported. Isn't it a problem ?

User avatar
Ath
Normal user
Posts: 3494
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Soil probe not working

#9 Post by Ath » 12 Nov 2020, 11:12

You are running a TEST build, I assume? Because in that build the device names are not included to save some space from the flash size. If a device is listed by its address, then it is detected.
/Ton (PayPal.me)

manuloup
Normal user
Posts: 13
Joined: 12 Nov 2020, 07:50

Re: Soil probe not working

#10 Post by manuloup » 12 Nov 2020, 11:14

Yes you are right, it is a test build.

manuloup
Normal user
Posts: 13
Joined: 12 Nov 2020, 07:50

Re: Soil probe not working

#11 Post by manuloup » 12 Nov 2020, 11:21

Sadly, I still do not get any values for temperature and moisture, even with all those settings.

manuloup
Normal user
Posts: 13
Joined: 12 Nov 2020, 07:50

Re: Soil probe not working

#12 Post by manuloup » 12 Nov 2020, 11:50

It looks like it can't read my soil device :
2020-11-12_115004.jpg
2020-11-12_115004.jpg (162.88 KiB) Viewed 18569 times

TD-er
Core team member
Posts: 8739
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Soil probe not working

#13 Post by TD-er » 12 Nov 2020, 15:49

It is still possible the sensor is working fine, but the plugin code does expect different data. (e.g. newer version of the chip)
Can you check with debug level logging enabled to see if there is more info from the plugin about what data is seen and is unexpected?

manuloup
Normal user
Posts: 13
Joined: 12 Nov 2020, 07:50

Re: Soil probe not working

#14 Post by manuloup » 12 Nov 2020, 17:01

I tried different log levels but I always get the same single message.
2020-11-12_165247.jpg
2020-11-12_165247.jpg (198.28 KiB) Viewed 18513 times
2020-11-12_164815.jpg
2020-11-12_164815.jpg (170.55 KiB) Viewed 18513 times

User avatar
ThomasB
Normal user
Posts: 1065
Joined: 17 Jun 2018, 20:41
Location: USA

Re: Soil probe not working

#15 Post by ThomasB » 12 Nov 2020, 20:00

I looked at the P047 plugin and it appears to be written specifically for a moisture / light / Temperature sensor sold on Tindie. This one:
https://www.tindie.com/products/miceuz/ ... re-sensor/

From the product photo it appears it uses a 14-Pin microcontroller for the I2C access.

But you are using a TMP112 temperature sensor. Your board appears to be this one:
https://www.alibaba.com/product-detail/ ... 06302.html

I don't believe the TMP112 sensor is supported by ESPEasy. That is to say, I couldn't find a plugin for a TMP112.

- Thomas
Last edited by ThomasB on 12 Nov 2020, 20:05, edited 1 time in total.

manuloup
Normal user
Posts: 13
Joined: 12 Nov 2020, 07:50

Re: Soil probe not working

#16 Post by manuloup » 12 Nov 2020, 20:02

Thanks.

How could I help to get my device and TMP112 sensor get supported by this plugin ?

User avatar
ThomasB
Normal user
Posts: 1065
Joined: 17 Jun 2018, 20:41
Location: USA

Re: Soil probe not working

#17 Post by ThomasB » 12 Nov 2020, 20:14

Your board measures moisture, temperature, and humidity. Which of these things is important to you?

Keep in mind that the TMP112 is a temperature sensor. The other measurements come from other sensors. Creating the plugin would require a lot more information. It will help if you posted a schematic.

My advice is to use the Tidie sensor module and wire it to a ESP8266 NodeMCU or Wemos D1 Mini board. That will allow you to use the existing ESPEasy plugin. I don't have experience with that Tidie board, so my advice should be taken as a suggestion only.

- Thomas

manuloup
Normal user
Posts: 13
Joined: 12 Nov 2020, 07:50

Re: Soil probe not working

#18 Post by manuloup » 13 Nov 2020, 10:19

I have 2 of those devices. I can send one to anybody if it can help the community to get a plugin for it.

User avatar
ThomasB
Normal user
Posts: 1065
Joined: 17 Jun 2018, 20:41
Location: USA

Re: Soil probe not working

#19 Post by ThomasB » 13 Nov 2020, 17:26

I found useful information on the soil sensor. It's also a Tindie sold item (by April Brother). It is open source, so of course that means it is available from several China based suppliers too.

See these links:

Main Supplier (April Brother, China) Catalog Page: https://www.tindie.com/products/aprbrot ... or-rev-21/

Wiki: https://wiki.aprbrother.com/en/ESP_Soil ... ensor.html

Project Repository (source code and schematics): https://github.com/AprilBrother/esp-soi ... ure-sensor

3rd Party Homie Version: https://github.com/MoJo2600/esp-soil-moisture-sensor

Hackaday Article: https://hackaday.io/project/12843-esp-s ... ure-sensor

BTW, there are two versions. The original V1 board used a DHT11 temperature sensor. The V2 board changed the DHT11 to TMP112.

- Thomas

manuloup
Normal user
Posts: 13
Joined: 12 Nov 2020, 07:50

Re: Soil probe not working

#20 Post by manuloup » 13 Nov 2020, 21:36

That would be great to make it work with espeasy.

I didn't want to use an external MQTT like ThingSpeak so that's the reason why I tried to find out another firmware like espeasy to run it.

https://wiki.aprbrother.com/en/ESP_Soil ... ensor.html

TD-er
Core team member
Posts: 8739
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Soil probe not working

#21 Post by TD-er » 13 Nov 2020, 23:11

Can you make an issue for it on GitHub?
Also make sure to list exactly what unsupported sensor is used, preferrable with one or more existing libraries supporting it on ESP8266/ESP32.

manuloup
Normal user
Posts: 13
Joined: 12 Nov 2020, 07:50

Re: Soil probe not working

#22 Post by manuloup » 15 Nov 2020, 16:13

done. Thanks a lot for your time.

Post Reply

Who is online

Users browsing this forum: No registered users and 17 guests