Hi all,
I have a pyboard and a esp8266 module with firmware mycropython. I want to connect the esp8266 module with 3 devices through I2C but my esp8266 only scan 2 devices. The device work well because when I scan with the pyboar, it detect the 3 devices.
The esp8266 and the 3 devices are in a small pcb so there should be no problems with the I2C connection.
I do not understand what is happening.
I hope you can help me. Thanks
Regards
I2C issue
Re: I2C issue
How many pull-up resistors are on your bus? Maybe the pyboard is more tolerant in this regard?
Re: I2C issue
I would also help if you told us what the devices are.
Re: I2C issue
I have a 2k2 pull-up resistor in scl y sda as said the datasheet of my esp8266.
The devices are 3 sc16is752, you can see the devices in the following link
http://www.nxp.com/products/interface-a ... _SC16IS762
Thanks for the help. And sorry for my bad English.
The devices are 3 sc16is752, you can see the devices in the following link
http://www.nxp.com/products/interface-a ... _SC16IS762
Thanks for the help. And sorry for my bad English.
Re: I2C issue
Can you link to that datasheet that claims you have 2k2 pullups?
Re: I2C issue
Sorry, I can not find the data sheet now. Do you think the problem is the pull-up?
Re: I2C issue
It is a common cause, and I've never heard about a board that has 2k2 pullups built-in. But of course it's hard to say for sure. I would recommend testing with additional external pull-ups.
Re: I2C issue
If that matters, you can measure the value of the pull-up, either directly as the value of the resistor, or better determine the current to GND., by setting the respective port to input, high impedance and then take the current when that port is connected to GND via the Ampere-meter. With 2k2 as a pull-up, the current reading should be about 1.1 mA. The pull-up value is about 3.3/I, where I is the current seen (R = U/I), ignoring the voltage drop at the instrument here (note to nitpickers).
Wouldn't these be parallel to the internal pull-up and even lower the pull-up impedance?I would recommend testing with additional external pull-ups.
Re: I2C issue
Yes, if they are there. I'm betting on a case where they are missing. Worth a try, in my opinion.Roberthh wrote:Wouldn't these be parallel to the internal pull-up and even lower the pull-up impedance?I would recommend testing with additional external pull-ups.