0

I have a BMP280 which I am using with a Raspberry Pi Pico through an I2C connection. When I try to interact with it, it states no device found at address (0x77 or 0x76, both should work neither do). I am coding using circuitpython. My code is below:

import board


import busio


import adafruit_bmp280





i2c = busio.I2C(board.GP15, board.GP14)


#assigning bmp280 sensor


bmp280_sensor = adafruit_bmp280.Adafruit_BMP280_I2C(i2c,address=0x76)








#get temp


def read_temperature():


    return bmp280_sensor.temperature





#get pressure


def read_pressure():


    return bmp280_sensor.pressure





print(read_temperature())

I have been using GP14 and 15 for my I2C pins, but have tried the other I2C pins on my Pico. I am using 10k Ohm resistors for pullup. I have tried different wires and pins for both I2C pins and for ground, nothing seems to work. When I use an I2C scanner, no addresses are found. Any suggestions?

Matt
  • 1

0 Answers0