firmware icon indicating copy to clipboard operation
firmware copied to clipboard

[Feature Request]: Add AHT20 Sensor

Open b8b8 opened this issue 10 months ago • 9 comments

Platform

NRF52, ESP32

Description

Can the AHT20+BMP280 sensor be added to support. Currently just the humidity is NOT shown. Everything else seems to work.

https://www.aliexpress.com/item/1005006288395566.html

b8b8 avatar Mar 27 '24 00:03 b8b8

Description

Can the AHT20+BMP280 sensor be added to support. Currently just the humidity is NOT shown. Everything else seems to work.

The AHT20 does not currently seem to be supported; and the BMP280 is providing your pressure and temperature readings (the BMP280 does not do humidity).

I'll take a look at adding support this weekend, I should have an AHT20 laying around somewhere, if not I may need your assistance in testing.

jaredquinn avatar Apr 06 '24 00:04 jaredquinn

sure no problem, and honestly the only reason i am asking is i bought 3x of these not realizing. If it end up being hassle they are easy to use with other projects.

b8b8 avatar Apr 06 '24 02:04 b8b8

sure no problem, and honestly the only reason i am asking is i bought 3x of these not realizing. If it end up being hassle they are easy to use with other projects.

What is your skill level? Are you able to build and flash from command line? I have added AHT10 & AHT20 support in my fork at https://github.com/jaredquinn/meshtastic-firmware/tree/add-aht10-telem-sensor

I need to get some more info from other devs as if just supporting the AHT side of this will be enough combined with the existing BMP support; or if I should add another Telemetry Sensor that uses both.

jaredquinn avatar Apr 06 '24 04:04 jaredquinn

Support looks fine with me, it's just we dont have room for more than one temperature in the telemetrypackets, if you have 2 of them active, it's a bit of a gamble which one was the latest to update :-) - also you'd need a separate PR gaianst the protobuf repo to support a new sensor.

caveman99 avatar Apr 07 '24 10:04 caveman99

It's a bit of a gamble which one was the latest to update :-)

Perhaps if both a BMP280 and AHT20 are detected we only take the pressure readings from the AHT and temp/humidity from the BMP (this seems to be the suggested use case and the way the wording on product pages implies)?

I will hold off until I can test it properly before I raise a PR - unfortunately I didn't have an AHT20 handy that I could find (there were 9 BMP280s though); so I've ordered a bunch of the combined module @b8b8 mentioned.

jaredquinn avatar Apr 07 '24 11:04 jaredquinn

sure no problem, and honestly the only reason i am asking is i bought 3x of these not realizing. If it end up being hassle they are easy to use with other projects.

What is your skill level? Are you able to build and flash from command line? I have added AHT10 & AHT20 support in my fork at https://github.com/jaredquinn/meshtastic-firmware/tree/add-aht10-telem-sensor

I need to get some more info from other devs as if just supporting the AHT side of this will be enough combined with the existing BMP support; or if I should add another Telemetry Sensor that uses both.

Lets say skill level is low. I havent actually done proper programming since University 10 years ago and am a mechanical engineer in my day job.

b8b8 avatar Apr 07 '24 15:04 b8b8

Lets say skill level is low. I havent actually done proper programming since University 10 years ago and am a mechanical engineer in my day job.

No programming required here; just a build from source and flashing as per the documentation.

While I wasn't able to find any AHT20s in my kit I have ordered some of the module you mentioned; I am also happy to wait the estimated week for their arrival.

jaredquinn avatar Apr 08 '24 01:04 jaredquinn

I get temp, humidity and pressure on my aht20+bmp280 module.

quimnut avatar Jul 01 '24 03:07 quimnut

yup same with me. everything is working well.

b8b8 avatar Jul 01 '24 16:07 b8b8

This has stopped displaying humidity recently.

b8b8 avatar Oct 14 '24 23:10 b8b8

I get temp, humidity and pressure on my aht20+bmp280 module.

Yes, it's gone in a recent update for me also.

quimnut avatar Oct 14 '24 23:10 quimnut