Jump to content

Recommended Posts

Posted

Hello,

 

I have a OrangePi Zero+2 board and I am using i2c ports for connect several devices. Some i2c works OK. But I requiere  r-i2c port.

But the port does not work I have spend several days trying to make it works.

 

Please, Can somebody help me?. This is turning into a headache. Thanks in advance.

 

image.png.d55750b66a6423fa5f8fb53cfe5a7938.png

image.png.5d8dadd162edd6ac376468c06dabf4b8.png

Posted

What "cat /proc/device-tree/soc/i2c@1f02400/status" is reporting ? "okay" or "disabled" ?

 

Did you tried to change ' pins = "PL0\0PL1"; ' to ' pins = "PL0", "PL1"; ' instead ?

 

Posted
11 minutes ago, redmaze said:

it says "okay"

So, it should work ... Also, "i2cdetect -l" should reveal its presence ...

Maybe it is the attached devices that doesn't respond ...

Do you have PullUps on those ?

Posted

I attach an accelerometer in i2c address "0x1D"

 

using PA18/19 the answer is OK.

 

image.png.006f765e1190fb41cb1802084784ec6a.png

 

But using PL0/1 the i2c keep searching and nothing is obtained

 

image.png.b8546c0acc607c8ca015e30c7a45b0a0.png

Posted
4 minutes ago, redmaze said:

But using PL0/1 the i2c keep searching and nothing is obtained

This is usually symptom of missing pullups !

According to schematic, the TWI0 and TWI1 has pullups provided by the OPiZ+2, but none are provided for S-TWI, you need to add them yourself ...

Posted

I test in 3 boards... I put a 1KOhm pullup resistor and the port keeps searching and nothing is detected.

 

 

Posted
2 hours ago, redmaze said:

I test in 3 boards... I put a 1KOhm pullup resistor and the port keeps searching and nothing is detected.

Normally, other TWI ports are using 2K pullups, but on both SDA and SCK.

Did you tried with both pullups ?

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines