Open main menu

Wiki-Orange Pi β

Changes

Orange Pi Zero 3

347 bytes added, 15:14, 11 July 2023
26pin I2C test
<ol style="list-style-type: lower-alpha;">
<li><p>First run '''orangepi-config''', normal users remember to add &gt; '''sudo''' permission</p>
{| class="wikitable" style="width:800px;" |-| <p>orangepi@orangepi:~$ '''sudo orangepi-config'''</p>|}</li>
<li><p>Then select '''System'''</p>
<p>[[File:media/image85.png|390x190px]]</p></li>
</li>
<li><p>After starting the linux system, first confirm that there is an i2c3 device node under /dev</p>
{| class="wikitable" style="width:800px;"
|-
|
<p>orangepi@orangepi:~$ '''ls /dev/i2c-3'''</p>
<p>'''/dev/i2c-3'''</p>|}</li>
<li><p>Then start testing i2c, first install i2c-tools</p>
{| class="wikitable" style="width:800px;"
|-
|
<p>orangepi@orangepi:~$ '''sudo apt-get update'''</p>
<p>orangepi@orangepi:~$ '''sudo apt-get install -y i2c-tools'''</p>|}</li>
<li><p>Then connect an i2c device to the i2c3 pin of the 26pin connector</p>
{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <p>'''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.'''</p></li></ol>|}
{| class="wikitable" style="width:800px;"
|-
| style="text-align: left;"| '''sda pin'''
| style="text-align: left;"| '''Corresponding to pin 6 in 26pin'''
|}
</li></ol>
<ol start="6" style="list-style-type: decimal;">
<li><p>Then use the '''i2cdetect -y 3''' command, if the address of the connected i2c device can be detected, it means that i2c can be used normally</p>
{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <big><p>'''Different i2c device addresses are different, the address 0x50 in the figure below is just an example. Please refer to what you actually see.'''</p></big>|}
<div class="figure">
<span id="pin-uart-test"></span>
 
=== 26pin UART test ===