Post topics, source code that relate to the Arduino Platform

User avatar
By Gustav007
#93792 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
You do not have the required permissions to view the files attached to this post.
User avatar
By Inq720
#93852 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