0

Adafruit IO Environmental Monitor for Raspberry Pi
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Adafruit IO Environmental Monitor for Raspberry Pi

by bhallybu on Thu Nov 07, 2019 8:44 pm

I'm Trying to use Adafruit IO Environmental Monitor for Feather or Raspberry Pi by Brent Rubell.
when i run the the python program that he has written i keep getting these error's
File "/home/pi/environmental_monitor.py", line 81, in <module>
bme280 = adafruit_bme280.Adafruit_BME280_I2C(i2c)
File "/home/pi/adafruit_bme280.py", line 445, in __init__
super().__init__()
File "/home/pi/adafruit_bme280.py", line 120, in __init__
raise RuntimeError('Failed to find BME280! Chip ID 0x%x' % chip_id)
RuntimeError: Failed to find BME280! Chip ID 0x61

i dont know how to fix it, any help would be nice
thanks,
Brian
Attachments
environmental_monitor.py _.pdf
(71.82 KiB) Downloaded 3 times

bhallybu
 
Posts: 7
Joined: Thu Nov 07, 2019 7:37 pm

Re: Adafruit IO Environmental Monitor for Raspberry Pi

by millercommamatt on Thu Nov 07, 2019 9:05 pm

If you run this:
sudo i2cdetect -y 1
Do you see the I2C address for the BME280. I think it's 0x77

Have you tried the bme280_simpletest example?

millercommamatt
 
Posts: 507
Joined: Tue Jul 31, 2018 4:57 pm

Re: Adafruit IO Environmental Monitor for Raspberry Pi

by bhallybu on Thu Nov 07, 2019 9:10 pm

pi@raspberrypi:~ $ sudo i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- 38 39 -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- 58 -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- 77

bhallybu
 
Posts: 7
Joined: Thu Nov 07, 2019 7:37 pm

Re: Adafruit IO Environmental Monitor for Raspberry Pi

by millercommamatt on Fri Nov 08, 2019 10:21 am

Have you tried the bme280_simpletest example?

millercommamatt
 
Posts: 507
Joined: Tue Jul 31, 2018 4:57 pm

Re: Adafruit IO Environmental Monitor for Raspberry Pi

by bhallybu on Fri Nov 08, 2019 12:18 pm

if i'm doing it right, i get the same errors

bhallybu
 
Posts: 7
Joined: Thu Nov 07, 2019 7:37 pm

Re: Adafruit IO Environmental Monitor for Raspberry Pi

by bhallybu on Sat Nov 09, 2019 4:21 pm

Thank you for the help. i found out what the problem was, the code used bme280, i had bme680.

bhallybu
 
Posts: 7
Joined: Thu Nov 07, 2019 7:37 pm

Please be positive and constructive with your questions and comments.