Jump to content

Recommended Posts

Posted

Hi All

 

First post here.

Have been using Rpi Zero 2W for a couple of years in various installations and other then speed been happy with it.

 

So got an Orange Pi Zero 2 W in an attempt to use it as a plug in replacement for the Rpi.

Installed Armbian and other than a booting issue, it all works.

 

The first obstacle is the i2c, it is obvious that is nowhere near as easy as a Rpi to set up.

I have read many posts and get more confused as the days go on.

 

So, the question:

Is there a step by step instruction on how to enable I2C.

 

I am connecting 2 x ADS1115 A2D converters, one at &H48 and the 2nd at &H49.

When I use i2cdetect -l 

i2c-0     i2c     DesignWare HDMI

i2c-1     i2c     mv64xxx_i2c   Adapter

i2c-2     i2c              ditto

 

When I use i2cdetect -y 0

&h30 and &h50  show up

 

When I use i2cdetect -y 1

I get UU on &h36

 

In software, I can do a

fd = i2c_open("/dev/i2c-0")    or use i2c-1

rc = i2cselect (fd,&h48,0)

 

BUT, I cannot write or read to the device.(obviously because it does not exist according to i2cdetect )

My  armbianEnv.txt has

overlays=i2c3          changed from i2c0 after reading some posts.

dtparam i2c_arm=on

 

In armbian-config /system/kernel/booto001/ I have ticked i2c0-pi   and for 2 and 3 as well.

 

So after all that I have no idea how to proceed.

 

Regards

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