EasyManua.ls Logo

ORANGE Pi 3B - Page 218

ORANGE Pi 3B
366 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
range Pi User Manual Copyright reserved by Shenzhen Xunlong Software Co., Ltd
210
3) After starting the Linux system, first confirm that there is an i2c device node under
/dev
orangepi@orangepi:~# ls /dev/i2c-*
/dev/i2c-0 /dev/i2c-2 /dev/i2c-3 /dev/i2c-4 /dev/i2c-6
4) Then connect a I2C device on the I2C pin of the 40PIN connector. Here is an example
of the DS1307 RTC module.
i2c2-m1
i2c3-m0
i2c4-m0
Sda Pin
Corresponding
to No. 3 pin
Corresponding
to No. 27 pin
Corresponding
to No. 19 pin
Sck Pin
Corresponding
to No. 5 pin
Corresponding
to No. 28 pin
Corresponding
to No. 23 pin
Vcc Pin
Corresponding
to No. 1 pin
Corresponding
to No. 1 pin
Corresponding
to No. 1 pin
Gnd Pin
Corresponding
to No. 6 pin
Corresponding
to No. 6 pin
Corresponding
to No. 6 pin
5) Then use the i2cdetect -y command If the address of the connected I2C device can be
detected, it means that the I2C can be used normally
orangepi@orangepi:~$ sudo i2cdetect -y 2 #i2c2 command
orangepi@orangepi:~$ sudo i2cdetect -y 3 #i2c3 command
orangepi@orangepi:~$ sudo i2cdetect -y 4 #i2c4 command

Table of Contents