I2C - OSError: [Errno110] ETIMEDOUT

Discussion related to "under the hood" OpenMV topics.
Julo7139
Posts: 6
Joined: Wed Jul 25, 2018 4:17 pm

I2C - OSError: [Errno110] ETIMEDOUT

Postby Julo7139 » Tue Feb 26, 2019 2:20 am

Hello,

I use google traduct.

I can not run I2C (OpenMV in master mode)

the error OSError: [Errno110] ETIMEDOUT occurs.

I put the resistors "PULLUP = 4,7K" and I also tried 10K but it does not work.

here is the simple program:

Code: Select all

from pyb import I2C


i2c = I2C(2, I2C.MASTER)             # create and init as a master
i2c.init(I2C.MASTER, baudrate=100000) # init as a master

while True:

        
        i2c.send(0x02, addr=0x02)  # keyword for address
thank you
User avatar
kwagyeman
Posts: 4107
Joined: Sun May 24, 2015 2:10 pm

Re: I2C - OSError: [Errno110] ETIMEDOUT

Postby kwagyeman » Tue Feb 26, 2019 3:12 am

Hi, can you do i2c.scan() and the print the result? Does it return anything?
Nyamekye,
Julo7139
Posts: 6
Joined: Wed Jul 25, 2018 4:17 pm

Re: I2C - OSError: [Errno110] ETIMEDOUT

Postby Julo7139 » Tue Feb 26, 2019 5:59 am

I think that the problem does not come from the CamM7 but from my PIC 18F4550 configured as a slave.
I tested with an arduino and everything works ...
rjn886
Posts: 1
Joined: Thu May 21, 2020 12:21 pm

Re: I2C - OSError: [Errno110] ETIMEDOUT

Postby rjn886 » Thu May 21, 2020 12:35 pm

I recently encountered the same problem when using the OLED screen module, You can double check if your interface is connected wrong , If not, you can see if there is Interface is occupied by other programs, try a few more interfaces

Return to “Technical Discussion”

Who is online

Users browsing this forum: No registered users and 6 guests