Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

I2C not working on Orange Pi Zero2

Featured Replies

Hello.

I'm trying to communicate with i2c ( i've connected ADS1115 on it if this maters ), but even without anything connected on it - it shows 0x30 on it, and I am not sure how to make it works.
Please help ! 😐 

1.jpg

Solved by TRay

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

  • Author

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
 

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.

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

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...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.