-
Notifications
You must be signed in to change notification settings - Fork 35
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
Error when launching webServer.py #16
Comments
Hello,
Your issue is due to I2C not being turned on. You can use the command 'i2cdetect - y 1' to detect it. If the following prompt appears, it means I2C is not turned on:
So we need to turn on I2C. The steps to turn it on are as follows:
Run the command sudo raspi-config
Select '3 Interface Options'
Select "P5 I2C" (I2C interface)
Select 'Yes' to turn on I2C
This should solve the problem of I2C not being turned on.
Best!
------------------------------------------
Adeept Tech Support Team
Adeept Technology Co., Ltd.
E-mail: ***@***.***
Web: www.adeept.com
…---- Replied Message ----
From ***@***.***> Date 12/1/2024 20:24 To ***@***.***> Cc ***@***.***> Subject [adeept/adeept_picar-b] Error when launching webServer.py (Issue #16)
Please help me to resolve this error :
Traceback (most recent call last):
File "/home/theprogramerj/robot/server/webServer.py", line 14, in
import RPIservo
File "/home/theprogramerj/robot/server/RPIservo.py", line 17, in
pwm = Adafruit_PCA9685.PCA9685()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/Adafruit_PCA9685/PCA9685.py", line 74, in init
self._device = i2c.get_i2c_device(address, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/Adafruit_GPIO/I2C.py", line 63, in get_i2c_device
busnum = get_default_bus()
^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/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.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Thanks you
Le lun. 2 déc. 2024, 02:35, Adeept ***@***.***> a écrit :
… Hello,
Your issue is due to I2C not being turned on. You can use the command
'i2cdetect - y 1' to detect it. If the following prompt appears, it means
I2C is not turned on:
So we need to turn on I2C. The steps to turn it on are as follows:
Run the command sudo raspi-config
Select '3 Interface Options'
Select "P5 I2C" (I2C interface)
Select 'Yes' to turn on I2C
This should solve the problem of I2C not being turned on.
Best!
------------------------------------------
Adeept Tech Support Team
Adeept Technology Co., Ltd.
E-mail: ***@***.***
Web: www.adeept.com
---- Replied Message ----
From ***@***.***> Date 12/1/2024 20:24 To ***@***.***> Cc ***@***.***>
Subject [adeept/adeept_picar-b] Error when launching webServer.py (Issue
#16)
Please help me to resolve this error :
Traceback (most recent call last):
File "/home/theprogramerj/robot/server/webServer.py", line 14, in
import RPIservo
File "/home/theprogramerj/robot/server/RPIservo.py", line 17, in
pwm = Adafruit_PCA9685.PCA9685()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/usr/local/lib/python3.11/dist-packages/Adafruit_PCA9685/PCA9685.py", line
74, in init
self._device = i2c.get_i2c_device(address, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/Adafruit_GPIO/I2C.py", line
63, in get_i2c_device
busnum = get_default_bus()
^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/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.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
—
Reply to this email directly, view it on GitHub
<#16 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A6X6SIIE5SXFEYKKHHUMGUT2DO2NVAVCNFSM6AAAAABSZT4B5SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMJQGM4DKMZRGQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please help me to resolve this error :
Traceback (most recent call last):
File "/home/theprogramerj/robot/server/webServer.py", line 14, in
import RPIservo
File "/home/theprogramerj/robot/server/RPIservo.py", line 17, in
pwm = Adafruit_PCA9685.PCA9685()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/Adafruit_PCA9685/PCA9685.py", line 74, in init
self._device = i2c.get_i2c_device(address, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/Adafruit_GPIO/I2C.py", line 63, in get_i2c_device
busnum = get_default_bus()
^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/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.
The text was updated successfully, but these errors were encountered: