I am trying to use a BMP180 barometer I2C sensor with my Heltec WiFi Kit 32 V3. I am using the Arduino IDE to write and upload sketches and have run the I2C scanner and it sees the BMP180 at address 0x77.
I am aware that the OLED is using the Wire() and so have tried to initiate the BMP like so:
#include "BMP085.h" Adafruit_BMP085 bmp; #define PIN_SDA 41 #define PIN_SCL 42 #define BMP085_ADDRESS 0x77 //extern TwoWire Wire1; void setup() { Serial.begin(9600); Wire1.begin(PIN_SDA,PIN_SCL); delay(50); if (!bmp.begin(0x77, &Wire1)) { Serial.println("Could not find a valid BMP085 sensor, check wiring!"); while (1) {} } }
I have used several different libraries ( SparkFun BMP180, Adafruit BMP3XX, BMP180MI, Adafruit BMP085 unified and several others) but cannot get the Heltec WiFi Kit 32 V3 to recognize the BMP189 on Wire(1).
My research has shown that several people have the same issue. If the Heltec WiFi Kit 32 V3’s OLED uses the first I2C to itself and the second I2C cannot be used by common sensors, then the Heltec WiFi Kit 32 V3 is practically useless, so I’m really hoping someone can show me how to get around this issue.