Closed sehraf closed 2 years ago
The 2 0xF4 are in fact intentional. They are used for accessing different sections within that register.
Did you try to affect the environment (i.e. exhaling on the sensor should affect the humidity and temperature) around the sensor when reading the values from it?
Regarding the NACK did you try both primary and secondary addresses?
Whatever was the problem, it solved by itself. Now everything works (could maybe have been a fluke in the ESP-IDF code :man_shrugging: )
I'm trying to get this running on an ESP32 (with ESP-IDF). I'm able to initialize the device but any measurement results in
I2c(EspError(-1))
(while-1
isESP_FAIL
). I was able to fix the error above by fixing what looks like a typo (or are two 0xF4 intentional?):With that fix in place i can get measurements (as many as i want) until i wait for a bit. After a break of some seconds every measurement is the
(That's all, there is nothing following on the right side)
I2c(EspError(-1))
again. A logic analizer shows that the ESP is trying to talk to the BME280 but the transfer gets NACKed:I've also notices that the measured values do not change at all and also look (completely) wrong (60_000 hPa ?!).