Due to high demand, expect some shipping delays at this time - orders may not ship for up to 2-3 business days.
0

I2C error with Adeept Picar-B Mars Rover
Moderators: adafruit_support_bill, adafruit

Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
Please be positive and constructive with your questions and comments.

I2C error with Adeept Picar-B Mars Rover

by CCM on Tue Jan 11, 2022 12:18 am

I have had this robot up and running already, but I am now getting this error:

Traceback (most recent call last):
File "/home/pi/adeept_picar-b/server/webServer.py", line 14, in <module>
import RPIservo
File "/home/pi/adeept_picar-b/server/RPIservo.py", line 17, in <module>
pwm = Adafruit_PCA9685.PCA9685()
File "/usr/local/lib/python3.9/dist-packages/Adafruit_PCA9685/PCA9685.py", line 74, in __init__
self._device = i2c.get_i2c_device(address, **kwargs)
File "/usr/local/lib/python3.9/dist-packages/Adafruit_GPIO/I2C.py", line 63, in get_i2c_device
busnum = get_default_bus()
File "/usr/local/lib/python3.9/dist-packages/Adafruit_GPIO/I2C.py", line 55, in get_default_bus
raise RuntimeError('Could not determine default I2C bus for platform.')
RuntimeError: Could not determine default I2C bus for platform.

I am not sure what to do. Any advice would be greatly appreciated.

CCM
 
Posts: 3
Joined: Mon Jan 10, 2022 9:45 pm

Re: I2C error with Adeept Picar-B Mars Rover

by adafruit_support_carter on Tue Jan 11, 2022 2:23 pm


adafruit_support_carter
 
Posts: 23548
Joined: Tue Nov 29, 2016 2:45 pm

Re: I2C error with Adeept Picar-B Mars Rover

by CCM on Sun Jan 16, 2022 1:08 am

Hi. So, I updated my CircuitPython using the shared link. I did the I2C test, and this was the result I got:

pi@pi:~ $ ls /dev/i2c* /dev/spi*
/dev/i2c-0 /dev/i2c-10 /dev/i2c-21 /dev/spidev0.0
/dev/i2c-1 /dev/i2c-20 /dev/i2c-22 /dev/spidev0.1

Does this mean I have 6 available and need to specify the default?

CCM
 
Posts: 3
Joined: Mon Jan 10, 2022 9:45 pm

Re: I2C error with Adeept Picar-B Mars Rover

by adafruit_support_carter on Mon Jan 17, 2022 11:44 am

The Adeept Picar-B Mars Rover maintainers need to update their software:
viewtopic.php?f=8&t=187015#p906357

adafruit_support_carter
 
Posts: 23548
Joined: Tue Nov 29, 2016 2:45 pm

Please be positive and constructive with your questions and comments.