Add new sensor (Adafruit STEMMA Soil Sensor - I2C)

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
knighToFdemonS
New user
Posts: 6
Joined: 23 Mar 2024, 16:44

Add new sensor (Adafruit STEMMA Soil Sensor - I2C)

#1 Post by knighToFdemonS » 23 Mar 2024, 18:25

Hey,

I want to add this sensor with EspEasy: https://www.adafruit.com/product/4026
It uses the I2C address 0x36.
On the climate-version there is the option to add the device "Environment - Soil moisture sensor" but it only lists Catnip and BeFIE as sensor-types.
After reading some posts i noticed that the Adafruit SeeSaw library is required to read correct sensor data.
Is it possible to add this through a plugin? Or another way to get the sensor working on EE?

Thanks in advance.

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

Re: Add new sensor (Adafruit STEMMA Soil Sensor - I2C)

#2 Post by Ath » 23 Mar 2024, 20:39

I'll see if I can add support for this sensor. We already have the SeeSaw library in use in ESPEasy, so that can be reused for this sensor.
/Ton (PayPal.me)

knighToFdemonS
New user
Posts: 6
Joined: 23 Mar 2024, 16:44

Re: Add new sensor (Adafruit STEMMA Soil Sensor - I2C)

#3 Post by knighToFdemonS » 23 Mar 2024, 21:33

Thank you very much, thats awesome!

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

Re: Add new sensor (Adafruit STEMMA Soil Sensor - I2C)

#4 Post by Ath » 05 Apr 2024, 22:06

knighToFdemonS wrote: 23 Mar 2024, 21:33 Thank you very much, thats awesome!
I've created PR #5025 to include support for the Adafruit I2C Capacitive Moisture sensor. A test-build is available from this GH Actions run. To be able to download you'll need a free Github account.

@knighToFdemonS please test and report your findings, either here or in the GH pull request :).
/Ton (PayPal.me)

Rob73
Normal user
Posts: 31
Joined: 25 May 2022, 15:05

Re: Add new sensor (Adafruit STEMMA Soil Sensor - I2C)

#5 Post by Rob73 » 07 Apr 2024, 01:43

Is it a very big deal to add a new sensor? I am working on a vane to show wind direction. I have been experimenting with an as5600 angle sensor. It too uses 0x36, I believe. Is this something that can be added or is there a "work around" for reading the raw i2c data and doing the conversion myself?


Rob

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

Re: Add new sensor (Adafruit STEMMA Soil Sensor - I2C)

#6 Post by Ath » 07 Apr 2024, 10:02

The only thing the as5600 angle sensor has in common with the Adafruit soil sensor is the I2C address. Nothing in the data format or protocol has any resemblance, and neither has the sensor function.
That's a very good reason not to try and add support for an as5600 to this plugin, but either add it to another position/direction plugin, or create a new plugin for it.
/Ton (PayPal.me)

knighToFdemonS
New user
Posts: 6
Joined: 23 Mar 2024, 16:44

Re: Add new sensor (Adafruit STEMMA Soil Sensor - I2C)

#7 Post by knighToFdemonS » 09 Apr 2024, 11:18

Ath wrote: 05 Apr 2024, 22:06
knighToFdemonS wrote: 23 Mar 2024, 21:33 Thank you very much, thats awesome!
I've created PR #5025 to include support for the Adafruit I2C Capacitive Moisture sensor. A test-build is available from this GH Actions run. To be able to download you'll need a free Github account.

@knighToFdemonS please test and report your findings, either here or in the GH pull request :).
Thank you so much. Looks like it is working reporting the correct values.
I will make advanced tests later, looks good so far.
Image
Tested "Bin-ESP32S3-climate_ESP32s3_4M316k_CDC-20240405_PR_5025_8575073729" with an ESP32-S3.

Post Reply

Who is online

Users browsing this forum: No registered users and 24 guests