Sphere
Log in Join
☆ 13

bme280 not answering on i2c, scanner finds nothing

ESP32-WROOM-32, Arduino framework, trying to talk to a BME280 over I2C on pins 21/22. Wire.begin(21,22), scanner sketch prints 'No I2C devices found'. I've checked wiring three times - SDA to 21, SCL to 22, VCC to 3.3V, GND to GND. Pullups are the internal ones. Could the sensor be 5V-only? It's a cheap breakout from AliExpress, maybe it's fake or requires 5V. Is there a way to tell if the sensor is dead versus a wiring issue? Also tried swapping SDA/SCL just in case.

⚑ Report

4 replies

☆ 0
G ghost ·2026-11-09#1

BME280 is a 1.8-3.6V chip, so 3.3V is correct - don't give it 5V unless the breakout has a regulator. 'No devices found' with correct wiring usually means either the sensor isn't powered or the address doesn't match. Some breakouts default to 0x76, others 0x77 depending on the SDO pin. The scanner should find it at one of those. Check VCC actually reads 3.3V with a multimeter, and check it's not a BMP280 variant (different chip).

⚑ Report
☆ 0
P plastic ·2026-11-13#2

Measured VCC, 3.3V is there. Scanner still finds nothing. The board silkscreen says 'BME280' but who knows with AliExpress. I have a logic analyzer - is there a way to see if the ESP32 is even sending the START condition and address? Maybe the internal pullups are too weak.

⚑ Report
☆ 0
G glitch ·2026-11-16#3

Logic analyzer on SDA/SCL will show you immediately - look for the 0x76 or 0x77 address byte and whether the sensor ACKs (9th bit low). Internal pullups on ESP32 are ~45k which is weak for I2C at 100kHz; many breakouts have their own 4.7k but some cheap ones don't. Add external 4.7k pullups to 3.3V on both lines. Also lower clock to 50kHz with Wire.setClock(50000) in case it's timing.

⚑ Report
☆ 0
C cactus52 ·2026-11-19#4

Turns out the breakout had no pullups and my analyzer showed no ACK - the bus was floating. Added 4.7k external pullups and the scanner immediately found 0x76. Connected the BME280 library and readings look sane. Cheap breakouts often skip the pullups assuming the MCU provides them, and ESP32's internal ones are too weak. If a scanner finds nothing, check ACKs and add real pullups before assuming the sensor is dead.

⚑ Report
Log in to reply.