Closed Noki closed 3 years ago
STATE_SAVE_PERIOD
is for BME680 only and controls how often a snapshot of calibration data is stored to NVRAM. You don't need this for BME280 and it has no impact on your issue.
What is prompted during startup:
BME280 sensor found and initialized
or
BME280 sensor not found
or
I2c bus busy - BME280 initialization error
or none of the above messages?
@gregorwolf Can you help here?
I figured it out. I did not understand that I need to copy the lines from the generic.h to the file for the specific board. Now it works. However it might be a good idea to note this in the readme because it took me quite a while. ;-)
This is an open source project, you're welcome to contribute to the documentation!
@Noki Could you share your file? I am having some issues with Heltec Lora ESP32 v2 and I2C. I am using pins 21 and 22, and it does not read any data.
Thanks!
@jsponz did you look at the pinout specs for your heltec v2? You can't use #21 as SDA, since this GPIO on heltec v2board is used for Vext control. Use the i2c bus of display, instead (SDA_OLED / SCL_OLED in hal file).
Thanks! You are right. I have changed to pins 15 and 4 and it works :-)
Hi!
I'm trying to connect a BME280 to a TTGO Lora32 V2.1 NEW but I can't get it to work.
I connected the sensor and changed the section in generic.h to:
In the debug window I can see that the device was found and that 0x76 is the correct address:
From what I can see in platformio.ini I don't think the following part mentioned in generic.h is required anymore, since lib_deps_sensors is part of lib_deps_all:
I can't see a screen with BME values and the values are also not transmitted to TTN. The normal paxcounter functionality works fine.
I tried adjusting the BME680 STATE_SAVE_PERIOD because I wasn't sure if data for the sensor get's only transmitted 4 times a day, but it seems to have no effect.
Can someone please point out the missing steps to get the sensor to read, display and transmit data and to adjust the update interval?
Best regards Tobias