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

Please help, I'm stuck at this point. #61

Open
andreyccmd opened this issue Nov 16, 2024 · 2 comments
Open

Please help, I'm stuck at this point. #61

andreyccmd opened this issue Nov 16, 2024 · 2 comments

Comments

@andreyccmd
Copy link

pi@4wd:~ $ cd /Freenove_4WD_Smart_Car_Kit_for_Raspberry_Pi/Code/Server-pi5
pi@4wd:
/Freenove_4WD_Smart_Car_Kit_for_Raspberry_Pi/Code/Server-pi5 $ sudo python servo.py
Now servos will rotate to 90°.
If they have already been at 90°, nothing will be observed.
Please keep the program running when installing the servos.
After that, you can press ctrl-C to end the program.
Traceback (most recent call last):
File "/home/pi/Freenove_4WD_Smart_Car_Kit_for_Raspberry_Pi/Code/Server-pi5/servo.py", line 34, in
pwm=Servo()
^^^^^^^
File "/home/pi/Freenove_4WD_Smart_Car_Kit_for_Raspberry_Pi/Code/Server-pi5/servo.py", line 5, in init
self.PwmServo = PCA9685(0x40, debug=True)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/pi/Freenove_4WD_Smart_Car_Kit_for_Raspberry_Pi/Code/Server-pi5/PCA9685.py", line 32, in init
self.write(self.__MODE1, 0x00)
File "/home/pi/Freenove_4WD_Smart_Car_Kit_for_Raspberry_Pi/Code/Server-pi5/PCA9685.py", line 36, in write
self.bus.write_byte_data(self.address, reg, value)
TimeoutError: [Errno 110] Connection timed out

@andreyccmd
Copy link
Author

pi@4wd:~ $ 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: -- -- -- -- -- -- -- --
pi@4wd:~ $

@Shaynee-MO
Copy link
Member

Please check the following:

  1. Whether the connector is plugged all the way in.
    image

  2. Whether both two switches on the car board are pressed.
    Whether the power and battery indicators are ON.
    image

  3. Whether the wiring of all components is correct.

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