Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raspberry Pi3 B+ Problem with BMP280 #6

Open
GK8591 opened this issue Feb 13, 2019 · 2 comments
Open

Raspberry Pi3 B+ Problem with BMP280 #6

GK8591 opened this issue Feb 13, 2019 · 2 comments

Comments

@GK8591
Copy link

GK8591 commented Feb 13, 2019

Hi, I've a problem with the connection of my Pi3 B+ with SunFounder Module BMP280
Thx for your help. Here is the error message:

pi@raspberrypi:~/SunFounder_SensorKit_for_RPi2/Python $ sudo python 31_bmp280.py
Traceback (most recent call last):
File "31_bmp280.py", line 250, in
main()
File "31_bmp280.py", line 231, in main
bmp = BMP280()
File "31_bmp280.py", line 108, in init
self.bus_number = self._get_bus_number()
File "31_bmp280.py", line 133, in _get_bus_number
raise ValueError('Reading Pi type error, Your Pi "{0}"" is not in the list.\ n Please post an Issus at our Github Page or contract us\n Github page: http s://github.com/sunfounder/Sunfounder_Smart_Video_Car_Kit_for_RaspberryPi/issues\ n Email: [email protected]\n SunFounder'.format(pi_type))
ValueError: Reading Pi type error, Your Pi "Unknown"" is not in the list.
Please post an Issus at our Github Page or contract us
Github page: https://github.com/sunfounder/Sunfounder_Smart_Video_Car_Kit_fo r_RaspberryPi/issues
Email: [email protected]
SunFounder

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

@martonz
Copy link

martonz commented Feb 14, 2019

Had the same issue before, try to add 'Unknown' in _BUS_1_TYPES list.

@GK8591
Copy link
Author

GK8591 commented Feb 15, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants