Jump to content

I2C not working on Orange Pi Zero2


Go to solution Solved by TRay,

Recommended Posts

Posted

Hi Yordan,

 

Are you sure you have correctly enabled the i2c overlay on your board? what is the output of cat /boot/armbianEnv.txt? If something is showing up even with nothing apparently connected they your are likely targeting a different bus. It is possible what you are seeing is the address of the internal pmic although this normal shows up as UU.

 

Best of luck

 

Ryzer

Posted

I've added trough the armbian-config the current, but no joy. Tried a few from ChatGPT - no joy as well.
I am not into this, since it's my first ( so far only ESP32 ), and honestly I had no idea that this requires this much stuff just to run a basic feature😐

Any help is greatly accepted.

 

This is the /boot/armbianEnv.txt :

 

verbosity=1
bootlogo=true
console=both
disp_mode=1920x1080p60
rootdev=UUID=f5d36c6f-cd6a-4f3b-a0a8-b0e85ac089e5
rootfstype=ext4
overlay_prefix=sun50i-h616
overlays=sun50i-h616-i2c0-pi sun50i-h616-i2c1-pi
usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u
 

Posted

oh right, then maybe there is a few things you can help me with in future as I still getting to grips with my esp32. Don't worry it look difficult at first but gets easier. Now I believe I know what the problem, on the overlays line modify it to i2c0-pi and i2c1-pi. This appears to be a common problem with armbian-config overlay functional. My own A10 and A20 systems also has this problem as well.

Posted (edited)

My mistake I was suggesting based on prior comments found on the Orange Pi Zero3 thread but after reviewing again it looks like the port part of the overlay is no longer necessary either so as Kris777 suggested just the interface name should hopefully now suffice. According to wiki, the main i2c interface should be i2c3: https://linux-sunxi.org/Xunlong_Orange_Pi_Zero2

Edited by Ryzer
Posted
1 hour ago, Yordan Yanakiev said:

i2c3-ph is actually i2c-1

 

Yes in overlays i2c3-ph is on system is i2c-1 on OZPI v2/3 boards on pins 3 and 5

 

image.png.77cb548efba5b76efbee08a9d2a8d1ef.png

 

So you can check connected devices on pins 3 and 5 

i2cdetect -y 1

 

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...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines