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
Pi 4’te header’daki bus 1, 0’a bakmana gerek yok. Tamamen boş bir tablo genelde iki şeyden olur, ben de bir sahada aynısını yaşadım:
1. SDA ve SCL ters. Pin 3 SDA (GPIO2), pin 5 SCL (GPIO3). Modülün üstündeki yazıya göre kabloyu bir daha takip et, ucuz kablolarda renkler karışıyor.
2. 6 pinli modülde CSB boşta kalırsa çip açılışta SPI moduna geçebiliyor. CSB’yi 3,3 V’a bağla, SDO’yu GND’ye bağlarsan adres 0x76, 3,3 V’a bağlarsan 0x77 olur.
Hızlı kontrol: Pi açıkken ve sensör bağlıyken multimetreyle SDA ve SCL’nin GND’ye göre gerilimini ölç. İkisi de 3,3 V civarında olmalı (Pi’de pull-up var). 0 V görüyorsan bir şey hattı aşağı çekiyor, kısa devre ya da yanlış pin.
Adres çıkınca chip id’ye de bak: BME280’de 0xD0 register’ı 0x60 döner. 0x58 dönüyorsa sana BMP280 satmışlar, onda nem yok, piyasada çok oluyor.
sudo i2cget -y 1 0x76 0xD0

