View: 9564|Reply: 2

I2C in the Orange Pi One

[Copy link]

1

threads

2

posts

15

credits

Novice

Rank: 1

credits
15
Published in 2017-8-3 05:15:36 | Show all floors |Read mode
Hello,

I am running a program that uses the wiringPi library on the Orange Pi One when I came across this error:

Unable to select I2C device: Device or resource busy

The device in question is the PCF8591 A/D Converter. When I ran the same program on the Raspberry Pi 3, it works perfectly fine. I am trying to make the program compatible with the Orange Pi One.

Is there a way to enable I2C on the Orange Pi One? Or is the wiringPi library completely incompatible with the Orange Pi One?

Thanks in advance.

10

threads

218

posts

2040

credits

Gold member

Rank: 6Rank: 6

credits
2040
Published in 2017-8-3 06:20:55 | Show all floors

1

threads

2

posts

15

credits

Novice

Rank: 1

credits
15
 Author| Published in 2017-8-3 07:18:55 | Show all floors
Could you please explain these outputs?

pi@orange:~# i2cdetect -y 0
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- UU -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --                        

pi@orange:~# cat /proc/modules
mali_drm 2732 3 - Live 0x00000000
drm 178255 4 mali_drm, Live 0x00000000
mali 123208 0 - Live 0x00000000
ump 29379 3 mali, Live 0x00000000
bmp085 3487 0 - Live 0x00000000
pcf8591 3363 0 - Live 0x00000000
8189es 1076034 0 - Live 0x00000000

What does the line: pcf8591 3363 0 - Live 0x00000000 mean?
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list