New: the AI firewall watches the whole platform and explains each incident in plain words. See how it works

Reply To: i2cdetect shows no address, is the BME280 broken or did I wire it wrong?

Translated from Türkçe by AI ·

On a Pi 4 you don’t need to look at bus 1, 0 on the header. A completely empty table usually comes from one of two things, and I ran into the same thing on a site:1. SDA and SCL are swapped. Pin 3 is SDA (GPIO2), pin 5 is SCL (GPIO3). Follow the wiring again using the labels on the module, cheap cables often have mixed-up colours.2. On a 6-pin module, if CSB is left floating the chip can switch to SPI mode at power-up. Connect CSB to 3.3 V and SDO to GND and the address becomes 0x76; connect SDO to 3.3 V and it becomes 0x77.Quick check: with the Pi on and the sensor connected, measure the voltage of SDA and SCL against GND with a multimeter. Both should be around 3.3 V (the Pi has pull-ups). If you see 0 V, something is pulling the line down: a short circuit or a wrong pin.Once the address shows up, check the chip ID too: on a BME280 register 0xD0 returns 0x60. If it returns 0x58, you were sold a BMP280, which has no humidity sensor; there are a lot of them on the market.

sudo i2cget -y 1 0x76 0xD0
Accepted solution♥ 4