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

BMP280 throws an error on bus types. #35

Open
BillRothVMware opened this issue Aug 14, 2018 · 4 comments
Open

BMP280 throws an error on bus types. #35

BillRothVMware opened this issue Aug 14, 2018 · 4 comments

Comments

@BillRothVMware
Copy link

Leaving a note as requested. I have a Pi Model 3 + 2017 version. I get an the following 280
Traceback (most recent call last):
File "31_bmp280.py", line 251, in
main()
File "31_bmp280.py", line 232, in main
bmp = BMP280()
File "31_bmp280.py", line 108, in init
self.bus_number = self._get_bus_number()
File "31_bmp280.py", line 134, 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: https://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_for_RaspberryPi/issues

@BillRothVMware BillRothVMware changed the title BMP280 trows an error on bus types. BMP280 throws an error on bus types. Aug 14, 2018
@martonz
Copy link

martonz commented Jan 20, 2019

I'm getting same error message, any solution?

@livelyn782295
Copy link

Traceback (most recent call last):
File "31_bmp280.py", line 251, in
main()
File "31_bmp280.py", line 232, in main
bmp = BMP280()
File "31_bmp280.py", line 109, in init
self.bus_number = self._get_bus_number()
File "31_bmp280.py", line 134, 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: https://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_for_RaspberryPi/issues
Email: [email protected]
SunFounder

@simpsus
Copy link

simpsus commented Jun 15, 2019

I am also a user who gets this error. From looking at the code, the GPIO.RPI_INFO command returns a type "unknown" which cannot be found in the list the script is looking for. There are only two possible modes, 0 and 1 and 0 is for pi model 1, so it is safe for me to replace the _get_bus_number function code with a return 1. Now this runs through.

There is still an error and I am puzzled that my kit contained a BMP180 (not a 280) hardware sensor, but that is beyond this issue ...

@sunfounder
Copy link
Collaborator

sunfounder commented Jun 17, 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

4 participants