Comments on: [SOLVED] Could not find a valid BME280 sensor, check wiring! https://randomnerdtutorials.com/solved-could-not-find-a-valid-bme280-sensor/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Sun, 10 Nov 2024 01:04:33 +0000 hourly 1 https://wordpress.org/?v=6.8.1 By: Jim https://randomnerdtutorials.com/solved-could-not-find-a-valid-bme280-sensor/#comment-981827 Sun, 10 Nov 2024 01:04:33 +0000 https://randomnerdtutorials.com/?p=108681#comment-981827 In reply to herraHoo.

Nice job! It showed me I received a BMP280 and not the expected BME280

]]>
By: CEMOI https://randomnerdtutorials.com/solved-could-not-find-a-valid-bme280-sensor/#comment-838472 Fri, 02 Jun 2023 16:09:17 +0000 https://randomnerdtutorials.com/?p=108681#comment-838472 I have used the solution provided by Ralph McCleery above, meaning editing the “Adafruit_BMP280.h” file in order to twist the (0x77) and (0x76) addresses, and it worls perfectly !

If someone could test other(s) librairy(ies) that would work without any modification, it would be simpler in case we use different sensors (originals and clones) with the same program…

Amongst the possible alternatives to the “Adafruit_BMP280” library, I have been told that the “cactus.io” and the “Sparkfun” (it works with a BME280, but does it work with a BMP280 ??) have a better reputation than the Adafruit_BMP280.

Thank for sharing,
Michel

]]>
By: Massimo https://randomnerdtutorials.com/solved-could-not-find-a-valid-bme280-sensor/#comment-832432 Fri, 28 Apr 2023 17:27:43 +0000 https://randomnerdtutorials.com/?p=108681#comment-832432 Hello, thank you so much. Finally, I discovered why the BME 280 wasn’t working. It was a fake !
Regards.

]]>
By: David https://randomnerdtutorials.com/solved-could-not-find-a-valid-bme280-sensor/#comment-827793 Sat, 01 Apr 2023 14:27:28 +0000 https://randomnerdtutorials.com/?p=108681#comment-827793 I found I had a problem getting reliable humidity readings (Kept returning 82%). It turned out the fix for me was to lower the I2C bus speed . Originally I had it set to 400K, I dropped it to 20K and things worked normally. I was connecting to a Pico W and using micropython.

i2c = I2C(0, sda=Pin(0), scl=Pin(1), freq=20000)

Cheers David

]]>
By: Sara Santos https://randomnerdtutorials.com/solved-could-not-find-a-valid-bme280-sensor/#comment-826666 Fri, 24 Mar 2023 00:07:23 +0000 https://randomnerdtutorials.com/?p=108681#comment-826666 In reply to NATT.

Hi.
I didn’t know about that.
Thanks for sharing.
Regards,
Sara

]]>
By: NATT https://randomnerdtutorials.com/solved-could-not-find-a-valid-bme280-sensor/#comment-826664 Thu, 23 Mar 2023 23:43:48 +0000 https://randomnerdtutorials.com/?p=108681#comment-826664 I have found that some bmp 280 boards do not have the required 4k7 pullup resistors on board. Particularly ones from AZ-Delivery! I have a couple of these and wondered why they worked with a raspberry pi pico dev board and not my ESP32 boards. It turned out the pico board had the built in pull ups.

]]>
By: Lee https://randomnerdtutorials.com/solved-could-not-find-a-valid-bme280-sensor/#comment-795774 Thu, 03 Nov 2022 23:06:35 +0000 https://randomnerdtutorials.com/?p=108681#comment-795774 I got caught out with the fake BME280. It was a BMP280 clearly marked as a BME280.
If the AdafruitBME280 library is used, the sketch will NOT find a BMP280, whereas some of the other BMP280 libraries will.
In the ESP32 gauges sketch changing to the BMP280 library , the fake BME280(BMP280) was found OK.

]]>
By: Lee https://randomnerdtutorials.com/solved-could-not-find-a-valid-bme280-sensor/#comment-795768 Thu, 03 Nov 2022 22:10:09 +0000 https://randomnerdtutorials.com/?p=108681#comment-795768 In reply to Ralph McCleery.

Alternatively, you can connect SD0 to Gnd to flip the device address to 0x77.
I can get my devices to work perfectly on ESP8266 but not on ESP32.
Wiring is OK, double checked with a CRO!
I will investigate other libraries, mentioned further down this page.

]]>
By: Ivan https://randomnerdtutorials.com/solved-could-not-find-a-valid-bme280-sensor/#comment-773948 Mon, 08 Aug 2022 00:19:56 +0000 https://randomnerdtutorials.com/?p=108681#comment-773948 In reply to Bruce.

I think I’m facing the same problem, judging by the date it might even be the same batch haha. I ordered two BMP280 sensors from a chinese supplier on aliexpress and i’ve spent 2 days trying to make them work but they don’t even show up in the i2c scanner. Looking at my sensors and the ones online, I think they might indeed have been soldered backwards…
I’m almost sure it is also backwards in the shop page, you can clearly see that the pin soldered to the i2c address selector is 1-GND (the one next to the vent hole) instead of 5-SDO (the opposite pin), which according to the datasheet must be pulled down to ground or to vcc to select the last I2C address bit.

]]>
By: Florian Schmid https://randomnerdtutorials.com/solved-could-not-find-a-valid-bme280-sensor/#comment-771928 Sat, 30 Jul 2022 13:02:28 +0000 https://randomnerdtutorials.com/?p=108681#comment-771928 Hi,
I can’t get the version to run.
When compiling, various error messages come up. What am I doing wrong?
Can you help a (beginner) a little further?
Thanks!

Excerpt from error messages:
C:\Users\Florian\Documents\Arduino\I2C_scanner\I2C_Scanner.ino:129:31: note: in expansion of macro ‘HDC10xx_Device_ID’
uint16_t chip_id = Read16(HDC10xx_Device_ID, address); // get chip ID
^~~~~~~~~~~~~~~~~
I2C_Scanner:129:14: error: unused variable ‘chip_id’ [-Werror=unused-variable]
uint16_t chip_id = Read16(HDC10xx_Device_ID, address); // get chip ID
^~~~~~~
cc1plus.exe: some warnings being treated as errors
Bibliothek Wire in Version 2.0.0 im Ordner: C:\Users\Florian\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.4\libraries\Wire wird verwendet
exit status 1
unused variable ‘chip_id’ [-Werror=unused-variable]

]]>