User Manual Orange Pi Zero 3

  Features   |  Use   |    Linux     |  Linux SDK   |  Android   |  Android SRC   |

RU          EN  

Chapt 3. Instructions for use of Debian/Ubuntu Server and Xfce desktop system
Страница:   25    26    27    28    29    30    31    32    33    34    35    36    37    38    39    40    41    42    43    44    45    46    47    48    49    50    51    52    53    54    55    56    57    58    59    60    61    62    63    64    65    66    67    68    69    70    71    72    73    74    75    76    77    78    79    80    81    82    83    84    85    86    87    88    89    90    91    92    93    94    95    96    97    98    99    100    101    102    103    104    105    106    107    108    109    110    111    112    113    114    115    116    117    118    119    120    121    122  


3.18.4. 26pin I2C test

  • 1) According to the schematic diagram of 26pin, the available i2c is i2c3



    Img 3.120

  • 2) i2c3 is disabled by default in the Linux system, and it needs to be manually enabled before it can be used.The steps to open are as follows:

    a. First run orangepi-config, normal users remember to add sudo permission

    orangepi@orangepi:~$ sudo orangepi-config

    b. Then select System



    Img 3.121

    c. Then select Hardware



    Img 3.122

    d. Then use the arrow keys on the keyboard to navigate to the position shown in the figure below, and then use the space to select ph-i2c3



    Img 3.123

    e. Then select 'Save' to save



    Img 3.124

    f. Then select 'Back'



    Img 3.125

    g. Then select 'Reboot' to restart the system to make the configuration take effect



    Img 3.126

  • 3) After starting the linux system, first confirm that there is an i2c3 device node under /dev

    orangepi@orangepi:~$ ls /dev/i2c-3
    /dev/i2c-3

  • 4) Then start testing i2c, first install i2c-tools

    orangepi@orangepi:~$ sudo apt-get update
    orangepi@orangepi:~$ sudo apt-get install -y i2c-tools

  • 5) Then connect an i2c device to the i2c3 pin of the 26pin connector

    Please select the 5V and 3.3V pins according to the specific i2c device, and the voltage value required by different i2c devices may be different.

    sda pin Corresponding to pin 3 in 26pin sck pin Corresponding to pin 5 in 26pin

  • 5v pin Corresponding to pin 2 in 26pin

  • 3.3v pin Corresponding to pin 1 in 26pin gnd pin Corresponding to pin 6 in 26pin

  • 6) Then use the i2cdetect-y3 command, if the address of the connected i2c device can be detected, it means that i2c can be used normally

    Different i2c device addresses are different, the address 0x50 in the figure below is just an example. Please refer to what you actually see.



    Img 3.127

     <         > 


  • Страница:   25    26    27    28    29    30    31    32    33    34    35    36    37    38    39    40    41    42    43    44    45    46    47    48    49    50    51    52    53    54    55    56    57    58    59    60    61    62    63    64    65    66    67    68    69    70    71    72    73    74    75    76    77    78    79    80    81    82    83    84    85    86    87    88    89    90    91    92    93    94    95    96    97    98    99    100    101    102    103    104    105    106    107    108    109    110    111    112    113    114    115    116    117    118    119    120    121    122