3

I have a BME280 sensor (this exact ebay item https://www.ebay.co.uk/itm/322638558861) wired directly with jumpers (not soldered) to a RPi B+. I have enabled I2C and installed the tools. The wiring is as per this diagram:

diagram from https://github.com/fivdi/bme280

When I run i2cdetect -y 1 I get the following:

00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --

So my Pi cannot seem to find the sensor and thus I'm stuck.

In a probably foolish excitement I first wired the sensor incorrectly and while the RPi was powered on. The first wiring followed this diagram:

from https://www.raspberrypi-spy.co.uk/2016/07/using-bme280-i2c-temperature-pressure-sensor-in-python/

I believe I wired the power in first then ground then the other 2 pins. Would doing this with the RPi power on have fried my sensor? If it is fried is there any way to test this? Is there some other way to debug any issue here?

Edit

jumpers attached to sensor jumpers to Pi

15
  • We need a clear photo showing the connections between the Pi and the sensor. – joan Jun 21 '20 at 20:40
  • @joan have added. Photos a bit poor sorry but surprisingly difficult to take! I think they should show everything. (Also to note if you are concerned by the connection to the sensor I checked the voltage with a multimeter between the 3x3 and the ground from the short end of the double male jumpers and there didnt seem to be any issue so I think connecting like that is stable) – iiz Jun 21 '20 at 21:18
  • Have you soldered the pins into the board or are they just pressed through (and not making a contact with the PCB traces)? – Dougie Jun 21 '20 at 22:11
  • Hi @iiz, welcome and nice to meet you. Ah, let me see. Your pictures seem to show three different versions of Rpi. I guess the fritzing pics are for reference only, and only your photo shows the exact wiring and Rpi version (Rpi3B+ v1.2 2014). Please also confirm if you are using buster, stretch, or jessie. – tlfong01 Jun 22 '20 at 2:16
  • On second thought, your Rpi Model B+ marked 2014 should be VERSION ONE. And anyway that should be good enough to play with sensors such as BME280, whether you are using old raspbian versions jessie or wheezy. In other words, I don't suggest you to upgrade any hardware or software. Let me search this and other forums to refresh my memory on BMP180 and BME280, before I am sure if I can give you some suggestions. See you later. Cheers. – tlfong01 Jun 22 '20 at 2:48
1

The reason your I2C sensor isn't detected is that you've not soldered the header pins into the breakout board. There won't be a connection between Vin, GND, SDA & SCL to your RPi.

The BME280 on your breakout board runs on 3.6V max, so don't connect Vin to either pin#2 or pin#4 use pin#1 or pin#17.

0

Answer

(1) The OP says he is playing with the eBay BME280 shown below.


bme280


(2) Now let us get to know BME280.

bme 280 2


(3) I googled for a schematic, and found there should be two types of BME280 modules, one with 6 or 7 pin header, for 5V I2C input, another with 4 pin header, for 3V3 I2C input.

bmp280 3v3

bmp280 5v

I would recommend the OP to check out if he indeed has a 5V input version, and replace it with a 3V3 input version which is more newbie friendly.


References

(1) Rpi3 BMP180 Barometer Sensor Interface Problem - SO Q&E, Asked 2020feb18, Viewed 268 times

(2) bme280pi 1.0.1 - pypi 2020jun24

(3) Using the BME280 I2C Temperature and Pressure Sensor in Python - Matt 2016jul21


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.