SHT40

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
hofikhof
New user
Posts: 1
Joined: 22 Dec 2021, 18:38

SHT40

#1 Post by hofikhof » 22 Dec 2021, 18:40

Please add support for sensor SHT40 I2C add 0x44 - new model temperature and humidity - to esp mega relase.
Or how I can add support this device to esp?
https://github.com/LaskaKit/Temp-HumSen ... -LPkit.ino
https://github.com/adafruit/Adafruit_SH ... it_SHT4x.h

dqqk
New user
Posts: 2
Joined: 24 Nov 2022, 19:17

Re: SHT40

#2 Post by dqqk » 24 Nov 2022, 19:20

I have the same question: is it possible to add support for the SHT40?

The SHT40 is easier to get, cheaper, and more accurate than (the already supported) SHT3x series of sensors

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

Re: SHT40

#3 Post by Ath » 24 Nov 2022, 22:08

I've put it on my TODO list, but that has already quite a few items on it, so no planning or ETA. And I don't currently have this sensor, so would have to obtain one first.
/Ton (PayPal.me)

dqqk
New user
Posts: 2
Joined: 24 Nov 2022, 19:17

Re: SHT40

#4 Post by dqqk » 25 Nov 2022, 09:03

Great! Thanks in advance!

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

Re: SHT40

#5 Post by Ath » 23 Apr 2023, 21:33

hofikhof wrote: 22 Dec 2021, 18:40 Please add support for sensor SHT40 I2C add 0x44 - new model temperature and humidity - to esp mega relase.
dqqk wrote: 25 Nov 2022, 09:03 Great! Thanks in advance!
Hi guys, I've created PR #4625 to add SHT4x sensor support (SHT40/41/43/45) to ESPEasy. Tests can be done using a build from this Github Actions run. (You'll need a free Github account to be able to download)
Please test and report your findings here or in the GH Pull Request conversation
/Ton (PayPal.me)

runningrunner72
New user
Posts: 4
Joined: 25 May 2023, 08:43

Re: SHT40

#6 Post by runningrunner72 » 25 May 2023, 08:53

Ath wrote: 23 Apr 2023, 21:33 Hi guys, I've created PR #4625 to add SHT4x sensor support (SHT40/41/43/45) to ESPEasy. Tests can be done using a build from this Github Actions run. (You'll need a free Github account to be able to download)
Please test and report your findings here or in the GH Pull Request conversation
Hi.

I would like to test build with SHT40 support with ESP32 and ESP8266 chips, but GitHub tells me:
"ESPEasy_mega_20230423_ESP32_PR#4625_4780034308 Expired"
"ESPEasy_mega_20230423_ESP82xx_PR#4625_4780034308 Expired"
"Documentation Expired"

Could you please resume publishing the build?

Thanx

Petr

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

Re: SHT40

#7 Post by TD-er » 25 May 2023, 09:13

I just triggered to make a new GH Actions build for this.
Should be done in 30 - 40 mins: https://github.com/letscontrolit/ESPEas ... 5077139400

runningrunner72
New user
Posts: 4
Joined: 25 May 2023, 08:43

Re: SHT40

#8 Post by runningrunner72 » 25 May 2023, 10:27

TD-er wrote: 25 May 2023, 09:13 I just triggered to make a new GH Actions build for this.
Should be done in 30 - 40 mins: https://github.com/letscontrolit/ESPEas ... 5077139400
Quick testing done... ESP-WROOM-32 (ESP32-D0WDQ5-V3) and Wemos D1 mini (ESP8266) with SHT40 sensor with builds ESP_Easy_mega_20230525_climate_ESP32_4M316k and ESP_Easy_mega_20230525_climate_ESP8266_4M1M measure temperature and humidity at the sensor comparably to the SHT30 sensor.

P.

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

Re: SHT40

#9 Post by TD-er » 25 May 2023, 11:52

Thanks for testing.
I just merged it, so it will be included in the next build.

runningrunner72
New user
Posts: 4
Joined: 25 May 2023, 08:43

Re: SHT40

#10 Post by runningrunner72 » 25 May 2023, 12:18

TD-er wrote: 25 May 2023, 11:52 Thanks for testing.
I just merged it, so it will be included in the next build.
Will it be included in a normal or climate build? I'd argue for normal :-)

epost
Normal user
Posts: 33
Joined: 09 Feb 2018, 20:04

Re: SHT40

#11 Post by epost » 25 May 2023, 18:38

I use this version for the SCD40
Build: ESP_Easy_mega_20230409_collection_E_ESP8266_4M1M Apr 9 2023

epost
Normal user
Posts: 33
Joined: 09 Feb 2018, 20:04

Re: SHT40

#12 Post by epost » 25 May 2023, 18:44

Sorry, didn't read properly. it is an SHT40 and not an SCD40.

runningrunner72
New user
Posts: 4
Joined: 25 May 2023, 08:43

Re: SHT40

#13 Post by runningrunner72 » 26 May 2023, 07:20

runningrunner72 wrote: 25 May 2023, 12:18
TD-er wrote: 25 May 2023, 11:52 Thanks for testing.
I just merged it, so it will be included in the next build.
Will it be included in a normal or climate build? I'd argue for normal :-)
Or would it be possible to compile VCC (battery voltage) measurements into the CLIMATE build (CLIMATE build with and without VCC support like other builds)?

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

Re: SHT40

#14 Post by Ath » 26 May 2023, 08:51

The VCC builds are measuring the 3.3V supplied to the ESP, not an external voltage. And it will disable the use of the Analog Input of an ESP8266.

For an external voltage you'd better use the Analog Input (and matching plugin) of the ESP, and optionally a resistor divider to bring the external voltage to the required level (depends on your board whether it will accept the max 1V allowed by the ESP analog input or has a divider already that will allow up to 3.3V input).
/Ton (PayPal.me)

Post Reply

Who is online

Users browsing this forum: No registered users and 27 guests