Support Forum

Share your projects and post your questions

Register   or   Sign In
The Forum

error [121] remote I/O error.

1174 Views - Created 24/03/2020

24/03/2020

Posted by:
chahat

chahat Avatar

Hi, i am bulding a project of pan tilt.and to control the motors, i typed:

cd
git clone https://github.com/sparkfun/RPi_PanTilt_Camera_Kit.git
python RPi_PanTilt_Camera_Kit/Firmware/pantilt.py &


now,after typind 3 statement,i am getting an error:

Traceback (most recent call last):
File "RPi_PanTilt_Camera_Kit/Firmware/pantilt.py", line 13, in <module>
bus.write_byte_data(addr, 0, 0x20)
IOError: [Errno 121] Remote I/O error

how do i get rid of this?

i have checked my i2c also and its as follows:
i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- 15 -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --


i dont know what to do?please can anyone help me asap..

24/03/2020

Posted by:
andrew

andrew Avatar

Location:
United Kingdom

andrew Twitter  andrew Website  

Hello

According to the source code for the PanTilt firmware, it is looking for a PWM controller device on address 0x40. The only device on your I2C bus is on 0x15 which is why you are getting a remote I/O error.

Do you have a PWM controller like the SparkFun Raspberry Pi Zero W Camera Kit or our Servo Pi installed on your Raspberry Pi?

24/03/2020

Posted by:
chahat

chahat Avatar

sorry,to be honest..i really downt know about this PWM?what is it and what do i do to check if i have it installed or not?

24/03/2020

Posted by:
andrew

andrew Avatar

Location:
United Kingdom

andrew Twitter  andrew Website  

PWM is short for pulse width modulation which is the type of signal needed to control a servo motor.

You will need to have an expansion card installed that generates the PWM signal.

If you are using the SparkFun PanTilt camera kit you should have an expansion board that looks like this.

forum image

Our version of the board is the Servo Pi which looks like this

forum image

Without one of these boards installed you will not be able to use the PanTilt software from GitHub.

24/03/2020

Posted by:
chahat

chahat Avatar

oh..ohk..i dont have either of these..thanx alot..i will look into it..but the question is where to attach this..coz i have pi zero with pan tilt and they have been attached together...where does either of these things go that you listed?

24/03/2020

Posted by:
andrew

andrew Avatar

Location:
United Kingdom

andrew Twitter  andrew Website  

The expansion board plugs into the 40-pin GPIO header on top of the Raspberry Pi Zero. It should look like this when installed.

forum image

24/03/2020

Posted by:
chahat

chahat Avatar

great..thanks alot for help..really appreciate it..:)

Sign in to post your reply

Note: documents in Portable Document Format (PDF) require Adobe Acrobat Reader 5.0 or higher to view, download Adobe Acrobat Reader or other PDF reading software for your computer or mobile device.