Using PiicoDev BME280 on the Pi 5

Has someone tested end 2 running of BME280 sensor on Rashberry Pi 5 8 GB I tried without any luck. The error I am getting is “PiicoDev could not communicate with module at address 0x77, check wiring. Now PI5 board is different from PI4 in terms of layout.

Can someone guide me here.

Hi @Ashish199071 - welcome to the forums :slight_smile:

First off, can you tell us if the Pi detects the connected device. Execute the following in the terminal:

sudo i2cdetect -y 1

which prints out a table of the detected I2C devices.

Have you also made sure the I2C peripheral is enabled?
Execute:
sudo raspi-config

And select:
Interfaces > I2C > Enable

Hello Michael,

Thanks for warm welcome and the information. unfortunately I have given a go at what all you have mentioned, without much luck,

Just to reiterate I am using Raspberry Pi 5 8 GB, with
PIICODEV ATMOS SENSOR BME280,
PIICODEV ADAPTER RASHBERRY PI,
PIICODEV CABLE 200MM

I have also attached all the photos for your reference mate,


I’m not newbie for sensors and all but not new to coding. Thanks for help in advance.

Thanks @Ashish199071 - from your I2C scan there is definitely no device connected

This could be the culprit:

It looks like the PiicoDev Adapter fouls on the new Pi 5 active cooler. Perhaps the adapter cannot slide down far enough to make reliable contact with the GPIO header.

It may be that for a Pi 5 with an active cooler, we need to start recommending GPIO extenders, eg:

Do you have any jumper wires you can use to extend the 4x connections for now? 3v3, GND, SDA and SCL.

I’ll capture a warning for this product so nobody else gets caught out by this.

1 Like

Awesome mate, thanks for the quick turnaround, I will see if I can club few more things and ask for shipping, I am in Perth

Michael, just in the interest of time, I got extender locally, but still same drama, Sensor is not detected, please find the screenshots, not sure if on Rashberry PI 5, has someone tried and got BME280 working

Michael, just in the interest of time, I got extender locally, but still same drama, Sensor is not detected, please find the screenshots, not sure if on Rashberry PI 5, has someone tried and got BME280 working


Cheers,
Ashish Singh

Shoot us a reply to your order confirmation email, referencing this forum topic and we’ll get it sorted out :slight_smile:

Michael for your indulgence I am more than happy to buy entire set of sensors and kits again, it seems some of the equipment I have bought are from other authorised supplier, but few things are bought from Core Electronics as well but moving forward only Core Electronics :+1:

Todays order hopefully this will keep us engaged, just as a appreciation of your help and support that you have extended to me

Best of luck with your PiicoDev projects @Ashish199071 :slight_smile: Looking forward to seeing what you come up with!

FYI - this issue has prompted us to include a stackable header into all future PiicoDev Adapters for Raspberry Pi. We’ve just completed adding them to all our current shelf-stock.
I figure it’s the safest option moving forward so the user does not need to decide, or become confused about what ddapter option they need.

Michael, today I have replaced BME280 sensors with a new one but still the result is same, I am keen to know if in your lab test if you can check if piicodev BME280 Sensors even work with Rashberry PI 5.

Thanks in advance mate.

Bummer, @Ashish199071

While we replicate this error, it seems that there was an I2C timing bug in the linux build for Pi 5

This pull request from February details an I2C timing bug with the OS. It references this forum topic where it was documented.

It may be a very simple fix, by running sudo rpi-update to install the patch.

The patch was released as a test-build at the time of writing (31 Jan) in that forum topic, so one would expect it’s in the main release now.

Michael,

I have tried both initially update and once it has not worked pull specific checkin, still the result is same, not sure what is next that needs to be done to detect the BME280 sensor, not quite sure as to how other sensors are working with Rashberry PI5.

Thanks @Ashish199071 - I’ll look into this today and see what I can find out

Hi again @Ashish199071

I can confirm that the BME280 works on a Pi 5

Steps to reproduce

Raspberry Pi imager

  • insert a SD card into computer
  • select board: Raspberry Pi 5
  • select OS: Raspberry Pi OS 64-bit
  • write image

Boot the Pi

Raspberry Pi

  • enable I2C interface (now the unit should be detectable with sudo i2cdetect -y 1
  • open thonny
  • create a new virtual environment
  • install piicodev using the package manager
  • run the example from the guide

here’s the result from my sudo i2cdetect -y 1 command. The device is found at 0x77
image

and for completeness, here’s a photo of my setup - since we always ask for photos from other users :slight_smile:

So what’s the difference?

We should be working with the same hardware now, but these are the countable differences between our builds

  • OS version - a fresh install can fix that
  • Sensor
  • adaptor
  • extending header
  • raspberry pi hardware
  • piicodev cable

We may be down to the point of split testing out each hardware unit to isolate the fault

1 Like

Thanks Michael, looks i need my secondary set of sensors and kit to arrive so that i can replace and play.

But greatly appreciated for ruling out the possibility that PI 5 won’t work with BME280 sensor.

Cheers mate.

1 Like

Thanks Michael for all your help, it was faulty wire that caused all the grief, today i have received the parcel and did managed to test with the new wires.

Thanks for all the help that you have extended to me.

cheers mate

3 Likes

Hi @Ashish199071

It’s always relieving when its a simple fix. Hope your project goes smoother from here!

1 Like

Hello Michael,

Referring to the guide

https://core-electronics.com.au/guides/piicodev-connection-guide/#UDWHN0C

i find difference as the Raspberry PI W layout dont looks same,

i am trying to setup BME280 sensor but this time with Raspberry PI Zero, few things i can see

there is no light blinking in BME280 and also its not detected on terminal once i run sudo i2cdetect -y 1

i have already enabled I2C on setup,

Can you please vet my connections and let me know what is wrong here or if anything else needs to be checked,

Thanks
Ashish

1 Like