Moisture Sensor from BeFlE

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
bloop16
New user
Posts: 7
Joined: 04 Feb 2021, 15:48

Moisture Sensor from BeFlE

#1 Post by bloop16 » 19 Mar 2023, 16:36

Dear Community,

I have bought an Moisture Sensor called SoMoSe from BeFlE and am trying to get it working.
Sadly a couldn't find a device to get the Sensor working.
Does anyone know how to get the sensor working?
Is there a way to get an i2c device running without the separate device?
I`m not a developer and my knowledge is not good enough to understand what the developer ment.

https://github.com/BeFlE/SoMoSe

Thank´s for your help

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

Re: Moisture Sensor from BeFlE

#2 Post by Ath » 19 Mar 2023, 17:21

ESPEasy currently supports this moisture sensor.

The plugin for this sensor is available in all Collection builds and the Climate build.
There is no support (yet) in the plugin for the model you have selected (have a link where to buy that?), but it's possible to add that. Your sensor doesn't support the "Light" measurement, that is available in the miceuz sensor I linked, so that would read 0 in all cases.
/Ton (PayPal.me)

bloop16
New user
Posts: 7
Joined: 04 Feb 2021, 15:48

Re: Moisture Sensor from BeFlE

#3 Post by bloop16 » 19 Mar 2023, 17:33


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

Re: Moisture Sensor from BeFlE

#4 Post by Ath » 19 Mar 2023, 17:43

I'll try to add support for this sensor.
/Ton (PayPal.me)

bloop16
New user
Posts: 7
Joined: 04 Feb 2021, 15:48

Re: Moisture Sensor from BeFlE

#5 Post by bloop16 » 19 Mar 2023, 17:57

Thank`s a lot! :D

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

Re: Moisture Sensor from BeFlE

#6 Post by Ath » 01 Apr 2023, 13:30

bloop16 wrote: 19 Mar 2023, 17:57 Thank`s a lot! :D
I have created PR #4582 that adds support for the BelFlE Soil moisture sensor. Can you please test using this Actions build (once it's finished, you will need one of the Collection builds, or a MAX build when working with an ESP32 with 16MB Flash), and report your findings here?

NB: I ordered such sensor myself, so have already done some quick tests here.

Edit: Updated to newer Actions build
/Ton (PayPal.me)

bloop16
New user
Posts: 7
Joined: 04 Feb 2021, 15:48

Re: Moisture Sensor from BeFlE

#7 Post by bloop16 » 01 Apr 2023, 22:49

WoW, really quick!
Seams to work, i'll gonna test in soil for the next week!
And check how it is working with a second sensor.
Thanks a lot!

bloop16
New user
Posts: 7
Joined: 04 Feb 2021, 15:48

Re: Moisture Sensor from BeFlE

#8 Post by bloop16 » 06 Apr 2023, 21:19

Everything fine, seams to work great!
Shall i test anything else?

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

Re: Moisture Sensor from BeFlE

#9 Post by Ath » 07 Apr 2023, 19:27

Thanks for reporting your results.
I've updated to latest available mega update, but that shouldn't change the working of this plugin, though you are welcome to re-test using the latest build from this Actions run
/Ton (PayPal.me)

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

Re: Moisture Sensor from BeFlE

#10 Post by Ath » 10 Apr 2023, 14:28

bloop16 wrote: 06 Apr 2023, 21:19 Everything fine, seams to work great!
Shall i test anything else?
The PR has been merged, and included in the latest release. Documentation is also updated.
/Ton (PayPal.me)

sptotal
New user
Posts: 7
Joined: 29 Sep 2023, 15:44

Re: Moisture Sensor from BeFlE

#11 Post by sptotal » 29 Sep 2023, 15:47

Which release binary I have to flash to get the BeFlE moisture sensor on a Wemos D1 mini?

If I flash the current one ESP_Easy_mega_20230822_normal_ESP8266_4M1M.bin I can not see any device Environment - Soil moisture sensor.

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

Re: Moisture Sensor from BeFlE

#12 Post by TD-er » 29 Sep 2023, 15:50

As mentioned in the link posted by Ton: https://espeasy.readthedocs.io/en/lates ... #p047-page
It should be in all "Collection" builds and also the "Climate" build.

sptotal
New user
Posts: 7
Joined: 29 Sep 2023, 15:44

Re: Moisture Sensor from BeFlE

#13 Post by sptotal » 29 Sep 2023, 16:12

So the build ESP_Easy_mega_20230822_collection_C_ESP8266_4M1M.bin would be the right one?

It's a little bit difficult if you are new to EspEasy...

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

Re: Moisture Sensor from BeFlE

#14 Post by TD-er » 29 Sep 2023, 16:25

Yep, any "collection" would be OK.
Just have a look at any other plugin you may also need to see if "collection_C" would be the best choice for you.
See: https://espeasy.readthedocs.io/en/lates ... al-plugins

sptotal
New user
Posts: 7
Joined: 29 Sep 2023, 15:44

Re: Moisture Sensor from BeFlE

#15 Post by sptotal » 30 Sep 2023, 12:09

I how flashed the Collection_C Firmware and configured BeFIE Sensor AS device. SDA: GPIO-4 (D2) and SCL: GPIO-5 (D1) but I get no readings. Voltage of the sensor ist connected correctly to 5V of the Wemos D1 mini.
20230930_120837.jpg
20230930_120837.jpg (2.96 MiB) Viewed 2880 times
What ist going wrong? How can I debug it?

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

Re: Moisture Sensor from BeFlE

#16 Post by TD-er » 30 Sep 2023, 12:46

Can you see it as an I2C device in the I2C scan? (tools page)

sptotal
New user
Posts: 7
Joined: 29 Sep 2023, 15:44

Re: Moisture Sensor from BeFlE

#17 Post by sptotal » 30 Sep 2023, 14:20

Thank you. I2C scan Said "No devices". I reattached the cable and now it's measuring without resoldering. Values are a bit off, i.e. temperature about +6°C. Moisture weg is around 140 which should be 100 as maximum.

Is it possible to calibrate the Sensor via ESP Easy? I have a few "Trübner SMT50" soil moisture sensors which are really good (precise out of the box) but expensive, too.

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

Re: Moisture Sensor from BeFlE

#18 Post by Ath » 30 Sep 2023, 14:55

sptotal wrote: 30 Sep 2023, 12:09 Voltage of the sensor ist connected correctly to 5V of the Wemos D1 mini.
I'd suggest to connect the sensor to 3.3V, as the GPIO pins of the ESP are not really specified for 5V, though there are some ppl using that all the time, it's still not advised.
sptotal wrote: 30 Sep 2023, 14:20 Values are a bit off, i.e. temperature about +6°C. Moisture weg is around 140 which should be 100 as maximum.

Is it possible to calibrate the Sensor via ESP Easy? I have a few "Trübner SMT50" soil moisture sensors which are really good (precise out of the box) but expensive, too.
The only calibration available in this plugin is the Formula field, next to the Values names. For Temperature it's usually enough to subtract the desired offset, but I don't know how linear the Moisture reading is, so maybe you can get calibration values from another, more accurate, device when measuring close to this sensor? You should then be able to derive a formula from that data.
/Ton (PayPal.me)

sptotal
New user
Posts: 7
Joined: 29 Sep 2023, 15:44

Re: Moisture Sensor from BeFlE

#19 Post by sptotal » 01 Oct 2023, 10:56

3.3V instead of 5V seems to be the solution. Now I have really consistent readings which seems to be true if nothing changes.

Thank you for the fast good support ;)

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

Re: Moisture Sensor from BeFlE

#20 Post by Ath » 01 Oct 2023, 13:06

Great!

Thanks for the feedback :)
/Ton (PayPal.me)

sptotal
New user
Posts: 7
Joined: 29 Sep 2023, 15:44

Re: Moisture Sensor from BeFlE

#21 Post by sptotal » 01 Oct 2023, 21:07

Is it possible to use multiple BeFIE moisture sensors with one Wemos D1 mini? Each Sensor gets it's own I2C adress and all of them connected to the same GPIO pins.

Or is only one sensor of one type supported by the firmware?

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

Re: Moisture Sensor from BeFlE

#22 Post by Ath » 01 Oct 2023, 21:11

Multiple sensors can be configured and work at the same time but I'm not (really) sure if they keep their manually set I2C address, as there doesn't seem to be a 'save' operation available.
That would make restarting the unit after power-loss rather cumbersome.
/Ton (PayPal.me)

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

Re: Moisture Sensor from BeFlE

#23 Post by TD-er » 01 Oct 2023, 21:34

Or you could try using an I2C multiplexer.
Then the multiplexer output determines what sensor is addressed.

sptotal
New user
Posts: 7
Joined: 29 Sep 2023, 15:44

Re: Moisture Sensor from BeFlE

#24 Post by sptotal » 02 Oct 2023, 13:52

I just tried: If you change the I2C address by ESP Easy then this will be a permanent setting for the BeFIE. Running two sensors on one Wemos D1 mini on different addresses the address change will be permanent and survive a reboot (or cut off voltage).

GREAT :D

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

Re: Moisture Sensor from BeFlE

#25 Post by Ath » 03 Oct 2023, 15:07

That's great :)
I'll try to keep that knowledge in memory, but that may be hard :?

The I2C address can be chosen freely between 0x01 and 0x7F for this sensor, but when connecting many (> 5) of them you should remove the 10k pull-up resistors from all but 1 board, to avoid overloading the I2C bus with too low pull-up resistance. When connecting other I2C devices you should avoid the address(es) used there. And your I2C scan (Tools page) may look weird, reporting completely different devices than actually connected :lol:
And of course you are limited to the number of tasks (Devices) on your ESP (max. 12 tasks on ESP8266, max. 32 tasks on ESP32).
/Ton (PayPal.me)

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

Re: Moisture Sensor from BeFlE

#26 Post by TD-er » 03 Oct 2023, 20:12

Ath wrote: 03 Oct 2023, 15:07 That's great :)
I'll try to keep that knowledge in memory, but that may be hard :?
[...]
If only we had some way to document specific info about plugins...

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

Re: Moisture Sensor from BeFlE

#27 Post by Ath » 03 Oct 2023, 21:14

TD-er wrote: 03 Oct 2023, 20:12 If only we had some way to document specific info about plugins...
Fixed that... #4837
/Ton (PayPal.me)

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 15 guests