About Us Knowledge Base Community Forum Electronics Toolbox FAQ Shipping & Delivery

Community Forum

Share your projects and post your questions

Search
Register or Sign In
Forum

error [121] remote I/O error.

270 Views - Created 24/03/2020

24/03/2020

Posted by:
chahat

Users 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

Users Avatar

Location:
United Kingdom

Users Twitter  Users 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?

AB Electronics UK Tech Support

24/03/2020

Posted by:
chahat

Users 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

Users Avatar

Location:
United Kingdom

Users Twitter  Users 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.

Post image

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

Post image

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

AB Electronics UK Tech Support

24/03/2020

Posted by:
chahat

Users 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

Users Avatar

Location:
United Kingdom

Users Twitter  Users 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.

Post image

AB Electronics UK Tech Support

24/03/2020

Posted by:
chahat

Users Avatar

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

 

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.