Open main menu

Wiki-Orange Pi β

Changes

Orange Pi 5 Plus

178 bytes added, 17:58, 6 June 2023
PWM test method
<li><p>The corresponding pins of PWM in 40pin are shown in the table below. Only one of PWM0_M0 and PWM0_M2, PWM1_M0 and PWM1_M2, PWM14_M0 and PWM14_M2 can be used at the same time, and they cannot be used at the same time. They are all the same PWM, but they are connected to different pins. Please don’t think that they are two different PWM bus.</p></li></ol>
{| class="wikitable" style="width:800px;"
|-
| style="text-align: left;"| '''PWM总线'''
<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/image234.png|416x192px]]</p></li>
</li>
<li><p>After opening a pwm, there will be an extra pwmchipX in '''/sys/class/pwm/''' (X is a specific number), for example, after opening pwm14, check the pwmchipX under '''/sys/class/pwm/''' two became three</p>
{| class="wikitable" style="width:800px;"
|-
|
<p>orangepi@orangepi:~$ '''ls /sys/class/pwm/'''</p>
<p>pwmchip0 pwmchip1 pwmchip2</p>|}</li>
<li><p>Which pwmchip above corresponds to pwm14? Let’s check the output of the ls /sys/class/pwm/ -l command first, as shown below:</p>
<div class="figure">
<li><p>Then use the following command to make pwm14 output a 50Hz square wave (please switch to the root user first, and then execute the following command)</p></li></ol>
{| class="wikitable" style="width:800px;"
|-
|
root@orangepi:~# '''echo 0 &gt; /sys/class/pwm/pwmchip2/export'''
[[File:media/image319.png|575x346px]]
|}
<ol start="8" style="list-style-type: decimal;">
<span id="can-test-method"></span>
 
=== CAN test method ===