-->
Page 1 of 1

ESP8266BME_280__TFT

PostPosted: Thu Mar 03, 2022 2:40 am
by Gustav007
Hallo,
ich habe einen Fehler mit meiner Wetterstation . Nach einer gewissen Zeit, es handelt sich um Stunden , erscheint im Display bei der Temperatur eine undefinierbare Länge von Nachkommastellen. Nach abschalten der Stromversorgung ist wieder alls OK. Bei Luftdruck und Feuchte ist alles gut.
Wo kann ich diesen Fehler beseitigen.
Hier mein Scetch dazu

Re: ESP8266BME_280__TFT

PostPosted: Tue Mar 08, 2022 5:07 pm
by Inq720
Looking at your code, you use many delay(1000) statements. Typically this is not a good idea. Especially with the ESP8266 because the I2C is done in software, not hardware. https://bbs.espressif.com/viewtopic.php?t=1032 This might be messing with the I2C in the lower levels. Using a more asynchronous approach should give you better results. I had a project using two BME280 and I finally was able to get them down to 10 ms sampling rates and it ran for days without any trouble, but I had to do it asynchronously.

Good luck