The ESP32 hacking continues apace, I soldered together a two-into-one ground wire so I could have both the outdoor temperature sensor and the outdoor air quality sensor attached to the one ESP32 board, instead of needing two separate boards! (The boards I'm using have a 3.3V power pin and a 5V power pin, but only one ground pin.)
I also fixed up my MicroPython code because it turns out it wasn't ACTUALLY asynchronous, it only appeared that way. 😬 Until now all the boards that had multiple sensors were checking both sensors at 30-second intervals which masked the problem, but while the temperature sensor is checked every 30 seconds, the air quality sensor is only every three minutes. The end result was that the temperature sensor would be read, 30 seconds later the air quality one would be, and then three minutes later the temperature sensor would be read again, then after another 30 seconds the air quality sensor again, etc. Oops.
Posted on
22 May 2024, 11:29