BMP280 + AHT20 #236

Closed
opened 2026-10-05 05:52:38 +02:00 by adam · 11 comments
Owner

Hi Ricardo,

This is not a request, just a simple question.
I want to use this sensor. It consists of two sensors on the same board, a BMP280 (already supported) and the AHT20, which is not supported.

My question is whether you would give me your consent to modify the code in wx_utils.cpp to support this sensor.

I've already made the change.....

Image

Image

It works well, but since it's your code, I need to ask you if I can do it or not..... and only for my iGates

Best regards.

Hi Ricardo, This is not a request, just a simple question. I want to use this sensor. It consists of two sensors on the same board, a BMP280 (already supported) and the AHT20, which is not supported. My question is whether you would give me your consent to modify the code in wx_utils.cpp to support this sensor. I've already made the change..... ![Image](https://github.com/user-attachments/assets/bcede123-e868-40b7-abe5-525d8fd1e136) ![Image](https://github.com/user-attachments/assets/b7da247f-e7a8-4563-96ca-f4e50755ce12) It works well, but since it's your code, I need to ask you if I can do it or not..... **and only for my iGates** Best regards. <!-- github-sync-id:3636912725 -->
adam closed this issue 2026-10-05 05:52:38 +02:00
Author
Owner

Hola!

You can alter it, but let me know of the changes needed to add this to the main repository later. This is also a good add to the firmware ;)

Hola! You can alter it, but let me know of the changes needed to add this to the main repository later. This is also a good add to the firmware ;) <!-- github-comment-id:3549506806 -->
Author
Owner

Hola!

You can alter it, but let me know of the changes needed to add this to the main repository later. This is also a good add to the firmware ;)

Buenas Ricardo,

Ok, muchas gracias por la respuesta. Ahora ando liado con un tema y cuando tenga un hueco, te paso el parche ( .diff )

Un saludo.

> Hola! > > You can alter it, but let me know of the changes needed to add this to the main repository later. This is also a good add to the firmware ;) Buenas Ricardo, Ok, muchas gracias por la respuesta. Ahora ando liado con un tema y cuando tenga un hueco, te paso el parche ( .diff ) Un saludo. <!-- github-comment-id:3549533207 -->
Author
Owner

excelente!

excelente! <!-- github-comment-id:3549534537 -->
Author
Owner

Buenas Ricardo,

Ya está. Lo tengo funcionando en mi iGate, y por el momento va bien.

Y vuelvo a darte las gracias por darme la opción de poder modificar el programa.

Todo es porque tengo muchas placas de este tipo y es una pena no poder usarlas.

No sé si lo que he hecho está mal o no, pero creo que es operativo.

Cualquier idea o critica coinstructiva sera bienvenida.

Un salduo.

wx_utils_BMP280_AHT20.patch

Buenas Ricardo, Ya está. Lo tengo funcionando en mi iGate, y por el momento va bien. Y vuelvo a darte las gracias por darme la opción de poder modificar el programa. Todo es porque tengo muchas placas de este tipo y es una pena no poder usarlas. No sé si lo que he hecho está mal o no, pero creo que es operativo. Cualquier idea o critica coinstructiva sera bienvenida. Un salduo. [wx_utils_BMP280_AHT20.patch](https://github.com/user-attachments/files/23682889/wx_utils_BMP280_AHT20.patch) <!-- github-comment-id:3564307163 -->
Author
Owner

me gusta la idea! entonces envíame:

link de la libreria para el AHT20

y la idea es que solo si existe BMP280 busque también el AHT20 y segun si lo encuentra o no cambia entre un wxModule y otro para saber de cuales hacer la lectura, cierto?

me gusta la idea! entonces envíame: link de la libreria para el AHT20 y la idea es que solo si existe BMP280 busque también el AHT20 y segun si lo encuentra o no cambia entre un wxModule y otro para saber de cuales hacer la lectura, cierto? <!-- github-comment-id:3564317218 -->
Author
Owner

Si si... si solo hay el BMP280, sigue como siempre.
Despues de encontrar el BMP280, intenta ver si encuentra el AHT20, y si lo encuentra, entonces cambia a tipo 6.
Si no hay BMP280, pero si esta el AHT20, lo omito porque no puede ser.

Dejame ver lo de la libreria..........

Si si... si solo hay el BMP280, sigue como siempre. Despues de encontrar el BMP280, intenta ver si encuentra el AHT20, y si lo encuentra, entonces cambia a tipo 6. Si no hay BMP280, pero si esta el AHT20, lo omito porque no puede ser. Dejame ver lo de la libreria.......... <!-- github-comment-id:3564328108 -->
Author
Owner

https://github.com/adafruit/Adafruit_AHTX0/blob/master/Adafruit_AHTX0.cpp

lib_deps =
adafruit/Adafruit AHTX0 @ 2.0.5

pio lib install "adafruit/Adafruit AHTX0"

https://github.com/adafruit/Adafruit_AHTX0/blob/master/Adafruit_AHTX0.cpp lib_deps = adafruit/Adafruit AHTX0 @ 2.0.5 pio lib install "adafruit/Adafruit AHTX0" <!-- github-comment-id:3564339151 -->
Author
Owner

excelente y corre bien por ahora?

lo sumare el fin de semana al firmware o el lunes maximo y lo vemos

excelente y corre bien por ahora? lo sumare el fin de semana al firmware o el lunes maximo y lo vemos <!-- github-comment-id:3564413610 -->
Author
Owner

En principio va bien..........
Solo llevo probandolo 3 días, pero lo voy a dejar todo el fin de semana.
Te cuento si veo reinicios raros o cualquier otra cosa.

Un saludo.

Image

En principio va bien.......... Solo llevo probandolo 3 días, pero lo voy a dejar todo el fin de semana. Te cuento si veo reinicios raros o cualquier otra cosa. Un saludo. ![Image](https://github.com/user-attachments/assets/f4c1968d-8428-48e7-9375-5fb91acfcdca) <!-- github-comment-id:3564479785 -->
Author
Owner

Buenas Ricardo...

Por ahora toda va bien, no se ha colgado ni se ha reiniciado.
Lo unico que ha pasado es que le valor de la presion se quedo bloqueado en un valor extraño, 880 hPa.
Pero buscando en la red, he visto que configurando el sensor de otra manera, va de cine.

                        bmp280.setSampling(
                            Adafruit_BMP280::MODE_NORMAL,
                            Adafruit_BMP280::SAMPLING_X2,     // temperatura con oversampling
                            Adafruit_BMP280::SAMPLING_X16,    // presión con oversampling alto
                            Adafruit_BMP280::FILTER_X16,      // filtro digital fuerte
                            Adafruit_BMP280::STANDBY_MS_500   // tiempo de espera entre mediciones
                        );

Asi no satura el bus I2C y va mejor. Pero repito, es lo que me pasa con mi sensor. No se si con otro pasara lo mismo.

Un saludo

Buenas Ricardo... Por ahora toda va bien, no se ha colgado ni se ha reiniciado. Lo unico que ha pasado es que le valor de la presion se quedo bloqueado en un valor extraño, 880 hPa. Pero buscando en la red, he visto que configurando el sensor de otra manera, va de cine. bmp280.setSampling( Adafruit_BMP280::MODE_NORMAL, Adafruit_BMP280::SAMPLING_X2, // temperatura con oversampling Adafruit_BMP280::SAMPLING_X16, // presión con oversampling alto Adafruit_BMP280::FILTER_X16, // filtro digital fuerte Adafruit_BMP280::STANDBY_MS_500 // tiempo de espera entre mediciones ); Asi no satura el bus I2C y va mejor. Pero repito, es lo que me pasa con mi sensor. No se si con otro pasara lo mismo. Un saludo <!-- github-comment-id:3567810591 -->
Author
Owner

agregado a GitHub y pronto , apenas termine otro detalle ahi sale a webflasher

agregado a GitHub y pronto , apenas termine otro detalle ahi sale a webflasher <!-- github-comment-id:3596353802 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/LoRa_APRS_iGate#236