1 1
redmaze

OrangePiZero+2 "r-i2c-pins" PL0/PL1

Recommended Posts

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

Share this post


Link to post
Share on other sites

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 ?

 

Share this post


Link to post
Share on other sites
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 ?

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
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 ...

Share this post


Link to post
Share on other sites

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

 

 

Share this post


Link to post
Share on other sites
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 ?

Share this post


Link to post
Share on other sites

The same, I use 2K in both SDA and SCK for PL0/PL1 and it does't work.

 

image.png.93750d22e0ad981e9f81e99d65ae6af1.png

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
1 1