Hi, I’m trying to get measuraments from this BME/BMP280 bought from aliexpress, here is the link https://pt.aliexpress.com/item/32849462236.html?spm=a2g0o.productlist.0.0.12274a81L9GqDt&algo_pvid=7113a981-2a24-4f18-92ad-ee80d4ed5efc&aem_p4p_detail=2021072318471912068133699718800010119219&algo_exp_id=7113a981-2a24-4f18-92ad-ee80d4ed5efc-0
I tried almost everything possible , here we are:
1 - Example code from Arduino IDE called bme280_example in the Third party tab.
This used the “Seeed_BME280.h” library and the result from serial was “Device error” followed by
zero measuraments (this happens cause that sketch does not brake when got an error…still going)
Pressure: 0.00Pa
Altitude: 44330.76m
Humidity: 0%
2 - Using the I2C scan sketch result in A LOT of sensors found, from address 0x01 to 0x7E
Scanning…
I2C device found at address 0x01 !
I2C device found at address 0x02 !
.
.
I2C device found at address 0x7D !
I2C device found at address 0x7E !
3 - Using the MultiSensorAutoRecognize gave 1 sensor found at address 0x01 and stopped the script
Copyright @2019-2020 Heltec Automation.All rights reserved.
Scanning…
I2C device found at address 0x01 !
4 - Using the bme280test on the Adafruit BME280 Library also didn’t help, the result was:
Could not find a valid BME280 sensor, check wiring, address, sensor ID!
SensorID was: 0x0
ID of 0xFF probably means a bad address, a BMP 180 or BMP 085
ID of 0x56-0x58 represents a BMP 280,
ID of 0x60 represents a BME 280.
ID of 0x61 represents a BME 680.
5 - Tried the Wire.begin() setting a specific frequency
Wire.begin();
Wire.setFrequency(500000);
Wire.end();
6 - Tried the SPI connection using
SPI.begin(SCK,MISO,MOSI,GPIO1);
SPI.setFrequency(1000000);
7 - I also tried the mixed sketch using bmp.begin (0x76)/(0x77)/(0x76,0x58) when calling that function but still returning “0” value and saying that couldn’t communicate to the sensor.
Addition info: - I’m using 2 pullup resistors 4.7k, one SCL pin and one SDA pin
- SCL Sensor pin connected to pin 28 (HTCC)
- SDA Sensor pin connected to pin 29 (HTCC)
- VIN Sensor connected to pin VIN (HTCC)
- GND Sensor connected to pin GND (HTCC)
Checking voltages I garantee the sensor has 5v DC on it’s input.
The main thing here is that HTCC Cubecell can’t see it.
I also tried using a ESP32 Heltec V2 and got same results, no measuraments and "0"returned from bme.begin();
I have 3 of these sensors and tested all of them, no changes, almost giving up this thing…
any comments would be wellcome, I may provide more details or debug if needed,
thanks in advance!