8,367
edits
Changes
→26pin's SPI test
== '''How to use Win32Diskimager to burn Linux image ''' ==
1) First prepare a TF card with a capacity of 16GB or more. The transmission speed of the TF card must be class 10 or above. It is recommended to use a TF card of SanDiskand other brands<br><br>
2) Then use the card reader to insert the TF card into the computer<br><br>
c. After the image writing is completed, click the "Exit" button to exit, and then you can pull out the TF card and insert it into the development board to start<br><br>
== '''Linux system instructions ''' ==
=== Supported Linux image types and kernel versions ===
{| class="wikitable" style="width:800px;"
LMP Version: 5.1 (0xa) Subversion: 0x1111 Manufacturer: Broadcom Corporation (15)
|}
5) For the wifi connection and test method, please refer to <span style="color:#0066CC;">[[Orange Pi 5 detail#WIFI connection test | the section of WIFI connection test]]</span>, which will not be repeated here<br><br>
6) For the test method of Bluetooth, please refer to the section on Bluetooth usage, so I won’t go into details here<br><br>
|orangepi@orangepi:~$ '''dmesg'''
|}
4) Then you can see the device node of RTL8723BU WIFI through the '''sudo ifconfig''' command. For the connection and test method of WIFI, please refer to '''<span style="color:#0066CC;">[[Orange Pi 5 detail#WIFI connection test | the section of WIFI connection test''']]</span>, which will not be repeated here<br>
{| class="wikitable" style="width:800px;"
|-
3) There are a total of 17 GPIO ports in the 26pin interface, and the voltage of all GPIO ports is '''<span style="color:#FF0000">3.3v</span>'''<br><br>
== '''Instructions for the use of the android 12 system ''' ==
=== How to use the use of wireless network card ===
1) At present, the USB wireless network card model that is adapted to the image is shown below:<br>
1) First click the Wiringop icon to open the Wiringop App<br><br>
[[Image:Pi-5-details2-pic32.png]]<br><br>
2) The main interface of the Wiringop app is displayed as shown in the figure below, and then click the '''GPIO_TEST ''' button to open the GPIO test interface<br><br>
[[Image:Pi-5-details2-pic33.png]]<br><br>
3) The GPIO test interface is shown in the figure below. The two rows of the '''CheckBox ''' button on the left and the 26PIN pin are one -to -one relationship. When checking the '''CheckBox ''' button, the corresponding pin will be set to '''OUT ''' mode, the pin level settings will be set. For high levels, when the check -up is canceled, the pin level is set to a low level; when clicking the '''GPIO READALL ''' button on the right, you can get the WPI, GPIO mode, pin level information, etc.<br><br>
[[Image:Pi-5-details2-pic34.png]]<br><br>
4) Then click the '''GPIO READALL ''' button, and the output information is shown in the figure below<br><br>
[[Image:Pi-5-details2-pic35.png]]<br><br>
5) Taking the high and low level of the '''GPIO2_D4 ''' as an example, click the '''CheckBox ''' button in the figure below. When the button is selected, the '''GPIO2_D4 ''' is set to a high level. After setting, you can use the value of the voltage of the pins by the multimeter. If it is '''3.3v''', Explain that setting high -electricity is successful<br><br>
[[Image:Pi-5-details2-pic36.png]]<br><br>
6) Then click the '''GPIO READALL ''' button to see that the pins mode of the current '''GPIO2_D4 ''' is '''OUT''', and the pin level is high level<br><br>
[[Image:Pi-5-details2-pic37.png]]<br><br>
7) Click the '''CheckBox ''' button in the figure below to cancel the check status. The '''GPIO2_D4 ''' pin is set to a low level. After setting, you can use the value of the voltage of the multimeter to measure the pins.If it is '''0v''', the low -power flat is set.<br><br>
[[Image:Pi-5-details2-pic38.png]]<br><br>
8) Then click the '''GPIO READALL ''' button to see that the pins mode of the current GPIO2_D4 is OUT, and the pin level is low<br><br>
[[Image:Pi-5-details2-pic39.png]]<br><br>
=== 26pin 的 UART 测试 test ===1) In Android 中默认只打开了 default, the UART0 一个串口,UART0 在 serial port is only opened. The position of UART0 at 26pin 的位置如下图所示, 对应的设备节点是'''is shown in the figure below. The corresponding device node is/dev/ttyS0'''ttys0<br><br>
[[Image:Pi-5-details2-pic40.png]]<br><br>
2) 首先点击 wiringOP 图标打开 wiringOP APPFirst click the WiringOP icon to open the Wiringop App<br><br>
[[Image:Pi-5-details2-pic41.png]]<br><br>
3) wiringOP The main interface of the WiringOP APP 的主界面显示如下图所示,然后点击 is displayed as shown in the figure below, and then click the '''UART_TEST''' 按钮打开UART测试界面button to open the UART test interface<br><br>
[[Image:Pi-5-details2-pic42.png]]<br><br>
4) The serial test interface of the APP 的串口测试界面如下图所示is shown in the figure below<br><br>
[[Image:Pi-5-details2-pic43.png]]<br><br>
5) 接着在编辑框中输入想要设置的波特率,然后点击 Then enter the baud rate you want to set in the editing box, and then click the '''OPEN''' 按钮打开button to open the '''/dev/ttyS0''' 节点,打开成功后,node. After successful, the '''OPEN''' 按钮变为不可选中状态,button becomes an optional state.The '''CLOSE''' 按钮和 button and the '''SEND''' 按钮变为可选中状态button become an optional state<br><br>
[[Image:Pi-5-details2-pic44.png]]<br><br>
6) 然后使用杜邦线短接 uart0 的 Then use the DuPont line to shorte the RXD 和 and TXD 引脚pin of uart0<br><br>
[[Image:Pi-5-details2-pic45.png]]<br><br>
7) 然后可以在下面的发送编辑框中输入一段字符,点击 Then you can enter a section of characters in the editing box below, click the '''SEND''' 按钮开始发送button to start sending<br><br>
[[Image:Pi-5-details2-pic46.png]]<br><br>
8) 如果一切正常,接收框内会显示已接收到的字符串If everything is normal, the receiving string will be displayed in the receiving box<br><br>
[[Image:Pi-5-details2-pic47.png]]<br><br>
=== 26pin 的 SPI 测试 's PWM test ===1) 由 26pin 接口的原理图可知,Orange Pi 5B 可用的 spi 为 spi4Android only opened '''PWM15''' by default. The corresponding pins are at the position of 26Pin.<br><br>
[[Image:Pi-5-details2-pic48.png]]<br><br>
2) 这里通过 w25q64 模块来测试 SPI 接口,首先在 SPI4 接口接入 w25q64 设备First click theWiringOP icon to open the Wiringop App<br><br>
[[Image:Pi-5-details2-pic49.png]]<br><br>
3) 然后点击 wiringOP 图标打开 wiringOP APPThen click the '''PWM_TEST''' button to enter the PWM test interface at the main interface of WiringOP<br><br>
[[Image:Pi-5-details2-pic50.png]]<br><br>
4) wiringOP APP 的主界面显示如下图所示,点击 SPI_TEST 按钮打开 SPI 的测试界面The corresponding address corresponding to the PWM15 is '''febf0030'''. The right side of PWMCHIP0 is exactly the '''febf0030.pwm'''. If the displayed base address is wrong, please click the drop -down option to select other PWMCHIP until the '''febf0030''' is displayed on the right.<br><br>
[[Image:Pi-5-details2-pic51.png]]<br><br>
5) 然后点击 Then confirm the PWM cycle. The default configuration is '''OPEN50000ns''', and the PWM frequency is '''20KHz'''. You can modify it by yourself.Click on the button to export '''PWM15''' 按钮初始化 SPI<br><br>
[[Image:Pi-5-details2-pic52.png]]<br><br>
6) 然后填充需要发送的字节,比如读取 w25q64 的 ID 信息,在 data[0]中填入地址0x9f,然后点击 '''TRANSFER''' 按钮Then drag the drag below to change the PWM duty ratio, and then check the enable to output PWM<br><br>
[[Image:Pi-5-details2-pic53.png]]<br><br>
[[Image:Pi-5-details2-pic54.png]]<br><br>
[[Image:Pi-5-details2-pic55.png]]<br><br>
[[Image:Pi-5-details2-pic56.png]]<br><br>
[[Image:Pi-5-details2-pic57.png]]<br><br>
[[Image:Pi-5-details2-pic58.png]]<br><br>
[[Image:Pi-5-details2-pic59.png]]<br><br>
[[Image:Pi-5-details2-pic60.png]]<br><br>
[[Image:Pi-5-details2-pic61.png]]<br><br>
[[Image:Pi-5-details2-pic62.png]]<br><br>