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

I/O error #31

Open
TheClergy opened this issue Apr 1, 2022 · 2 comments
Open

I/O error #31

TheClergy opened this issue Apr 1, 2022 · 2 comments

Comments

@TheClergy
Copy link

I am getting this error when trying to run this command I just set up the pi car and may have missed a step but can't seem to find out what it is

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/servo.py", line 34, in
pwm=Servo()
File "/home/pi/Freenove_4WD_Smart_Car_Kit_for_Raspberry_Pi/Code/Server/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/PCA9685.py", line 32, in init
self.write(self.__MODE1, 0x00)
File "/home/pi/Freenove_4WD_Smart_Car_Kit_for_Raspberry_Pi/Code/Server/PCA9685.py", line 36, in write
self.bus.write_byte_data(self.address, reg, value)
OSError: [Errno 121] Remote I/O error

@DenzelChen
Copy link
Contributor

Please make sure you have turned on switches of the car. And you can try to reconnect the connector.
Or please contact us via [email protected]

@janrutger
Copy link

I think an issue on I2C bus level.
Please check

lsmod | grep i2c

and

i2cdetect -y 1

As explained on page 43 of the manual
And make sure you turned the switches on

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

3 participants