Orange Pi Zero 2

From Wiki-Orange Pi
Revision as of 16:47, 27 June 2022 by Admin (talk | contribs) (Method of Burning Linux Image to TF Card Based on Windows PC)
Jump to: navigation, search

Basic Features of Orange Pi Zero 2


What is Orange Pi Zero 2


Orange Pi is an open source single-board -computer, a new generation of arm64 development boards, which can run Android TV 10, Ubuntu and Debian . The Orange Pi Zero 2 uses the Allwinner H616 Rockchip and has 1GB DDR3 .

Purpose of Orange Pi Zero 2


We can use it to build:

  • A small Linux system computer
  • A small Linux web server
  • Install Klipper host computer to control 3D printer
  • Android TV box


Of course, there are other more functions, because the Orange Pi development board can install Linux systems such as Debian and Ubuntu, and Android TV system, which means that we can implement a variety of functions within the scope of the development board hardware and software support.


Who is Orange Pi Zero 2 designed for?


Orange Pi Zero2 is for anyone who wants to start creating with technology – not just consuming it. It's a simple, fun, useful tool that you can use to start taking control of the world around you.

Hardware Features of Orange Pi Zero 2


colspan=2
Hardware Introduction
CPU Allwinner H616 64-bit high-performance Quad-core Cortex-A53 processor
GPU

Mali G31 MP2
Supports OpenGL ES 1.0/2.0/3.2、OpenCL 2.0

Memory(SDRAM) 1GB DDR3 (Shared with GPU)
Onboard Storage TF card slot、2MB SPI Flash
Onboard Network Support 1000M/100M/10M Ethernet
WIFI+BT * AW859A Chip、Support IEEE 802.11 a/b/g/n/ac、BT5.0
Video Outputs
  • Micro HDMI 2.0a
  • TV CVBS output, Support PAL/NTSC(Via 13pin interface board)
Audio output
  • Micro HDMI
  • 3.5mm audio port (Via 13pin interface board)
Power Source USB Type C interface input
USB 2.0 Ports 3*USB 2.0 HOST(Two of them are via 13pin interface board)
26pin header With I2Cx1、SPIx1、UARTx1 and multiple GPIO ports
13pin header  With USB 2.0 HOSTx2、TV-OUT、LINE OUT、IR-RX、and 3*GPIO ports
Debug serial port UART-TX、UART-RX and GND
LED Power led & Status led
IR receiver Support IR remote control (via 13pin interface board)
Supported OS Android10 TV、Ubuntu、Debian and so on
colspan=2
Appearance specification
Dimension 85mm×56mm
Weight 30g
colspan=2
Orange-pi-small-logo.pngrange Pi™ is a trademark of the Shenzhen Xunlong Software Co.,Limited


The Top view and Bottom view of Orange Pi Zero 2


Top view:

Orange-pi-zero2-img1.png


Bottom view:

Orange-pi-zero2-img2.png


The Ports Detail of Orange Pi Zero 2


Orange-pi-zero2-img3.png


Orange-pi-zero2-img4.png


The diameter of the four positioning holes is 3.0mm

Introduction to the use of the development board


Prepare the necessary accessories


1)TF card, class10 or above high-speed SanDisk card with a minimum capacity of 8GB

Orange-pi-3-lts-sdcard.png


Use other brands of TF cards (not SanDisk TF cards), as shown in the picture below (including but not only to these cards), some friends have reported that there will be problems during the system startup process, such as the system being stuck halfway during startup, Or the reboot command cannot be used normally, and it was finally solved after change to using the SanDisk TF card. So if you are using a non-SanDisk TF card and find that problems during system startup or use, please replace the TF card to the SanDisk TF card and then test

Orange-pi-zero2-img6.pngOrange-pi-zero2-img7.pngOrange-pi-zero2-img8.pngOrange-pi-zero2-img9.png
some TF cards have system startup problems on Orange Pi Zero 2

In addition, the TF card that can be used normally on other types of development boards does not guarantee that the Orange Pi Zero 2 will also start normally by using this TF card. Please pay special attention to this point.
2)TF card reader, used to read and write TF card

Orange-pi-3-lts-tfcard.png


3)Micro HDMI to HDMI cable, used to connect the development board to an HDMI monitor or TV for display

Orange-pi-zero2-img11.png


Note, please do not use the wider Micro HDMI adapter shown in the figure below. Due to the small distance between the USB interface, Micro HDMI interface and Type-C power interface of the development board, the three may not be able to be used at the same time. Plug into the development board.

Orange-pi-zero2-img12.png

4)Power supply, if there is a 5V/2A or 5V/3A power supply head, you only need to prepare a data cable with the USB to Type C interface like as shown in the picture on the left below, and you can also use a cable similar to the picture shown on the right below. 5V/2A or 5V/3A high-quality USB Typc C interface power adapter supply

Orange-pi-r1-plus-lts-img5.png Orange-pi-zero2-img14.png

5)13pin interface board
 a.The actual interface board is shown below

Orange-pi-r1-plus-lts-img6.png


 b.The way to insert the expansion board into the development board is as follows, note: not to inserted in the wrong direction

Orange-pi-zero2-img16.png


 c.The 13pin pin header on the Orange Pi Zero 2 development board can be connected to the expansion board to expand the functions that are not available on the development board. The functions that the expansion board can use include:

1 Mic

No support, no support, no support! ! !

The 13pin expansion board is a general-purpose expansion board, suitable for various development boards of Orange Pi, but the 13pin interface of the Orange Pi Zero2 does not have the Mic function, so although there is a Mic on the 13pin expansion board, it is on the Orange Pi Zero 2. Can not be used, the 13pin expansion board is mainly used to expand other functions except Mic on the Orange Pi Zero 2.

If you need to use the MIC function, it can be extended through the USB interface,Chapter 3 of the manual describes how to use the USB MIC.

2 Analog audio and video output interface Support, it can be used to connect headphones to play music, or connect to TV through AV cable to output analog audio and video signals (Android only).
3 USB2.0 Host x 2 Supported, used to connect USB keyboard, mouse and USB storage device.
4 IR function Support, can control Android system through infrared remote control

 d.The schematic diagram about the 13pin pin header of the Orange Pi Zero 2 development board is as follows

Orange-pi-zero2-img17.png


6)USB interface mouse and keyboard, as long as it is a standard USB interface mouse and keyboard, the mouse and keyboard can be used to control the Orange Pi development board

7)Infrared remote control, mainly used to control the Android system

Orange-pi-pc-plus-img4.png


Note that the remote control of the air conditioner or the remote control of the TV cannot control the Orange Pi development board, only the Orange Pi remote control can support.

8)Fast or Gigabit Ethernet cable to connect the development board to the Internet

9)AV video cable, if you want to display video through the AV interface instead of the HDMI interface, then you need to connect the development board to the TV through the AV video cable

Orange-pi-pc-plus-img5.png


10)Heat sink, if you are worried that the temperature of the development board is too high, you can add a heat sink, and the heat sink can be attached to the H616 chip

Orange-pi-zero2-img18.pngOrange-pi-zero2-img19.png

11)5V cooling fan, as shown in the figure below, there are 5V and GND pins on the 26pin and 13pin interfaces of the development board that can be connected to the cooling fan. The distance between the 26pin and 13pin pin headers is 2.54mm, and the power interface of the cooling fan refers to this Specifications to buy

After the development board is plugged into the Type C power supply, the 5V pin can be used directly without other settings. Also, please note that the 5V pin cannot be controlled by software.

Orange-pi-zero2-img20.png


12)Matching shell, transparent shell and black shell are available

Orange-pi-zero2-img21.pngOrange-pi-zero2-img22.png

Note that the matching case of the Orange Pi Zero 2 cannot hold the 13pin expansion board.

13)USB to TTL module and DuPont cable, when using the serial port debugging function, USB to TTL module and DuPont cable are required to connect the development board and computer

Orange-pi-r1-plus-lts-img10.pngOrange-pi-lite-img10.png


Note that the TTL level used by the development board is 3.3v. Except for the USB to TTL module shown in the figure above, other similar 3.3v USB to TTL modules are generally available.

14)A PC with Ubuntu and Windows operating systems installed

1 Ubuntu14.04.6 PC Optional, used to compile Android source code
2 Ubuntu18.04 PC Optional, used to compile Linux source code
3 Windows PC For burning Android and Linux images


Download the image of the development board and related materials


1)The download URL of the English version of the material is:

 http://www.orangepi.org/html/hardWare/computerAndMicrocontrollers/service-and-support/Orange-Pi-Zero-2.html

Orange-pi-zero2-img23.png


2)The data mainly includes

a.Android source code:Save on Google network disk
b.Linux source code:Save on Github
c.User Manual and Schematics:Chip related data sheets will also be placed here
d.Official tool: Mainly includes the software that needs to be used in the use of the development board
e.Android Image:Save on Google network disk
f.Ubuntu Image:Save on Google network disk
g.Debian Image:Save on Google network disk


Method of Burning Linux Image to TF Card Based on Windows PC


Note that the Linux image mentioned here refers specifically to the image of a Linux distribution such as Debian or Ubuntu downloaded from the Orange Pi data download page.

The way to use balenaEtcher to burn a Linux image


1)First prepare a TF card with a capacity of 8GB or more. The transmission speed of the TF card must be class10 or above. It is recommended to use a TF card from a brand such as SanDisk
2)Then insert the TF card into the card reader and insert it into the computer

3)Download the compressed package of the Linux operating system image file you want to burn from the data download page of Orange Pi, and then use the decompression software to decompress it. In the decompressed file, the file ending with ".img" is the image file of the operating system. It is generally more than 1GB

4)Then download the burning software for the Linux image——balenaEtcher,the download address is

 https://www.balena.io/etcher/


5)After entering the balenaEtcher download page, click the green download button to download the installation package of balenaEtcher, or select the Portable version of balenaEtcher through the drop-down button. The Portable version does not need to be installed, just double-click to open it and use it

Orange-pi-4-lts-img28.png


6)If you download a version of balenaEtcher that needs to be installed, please install it before using it. If you download the Portable version of balenaEtcher, just double-click to open it. The opened balenaEtcher interface is shown in the figure below.

Orange-pi-4-lts-img29.png


7)The specific steps to use balenaEtcher to burn a Linux image are as follows
a.First select the path of the Linux image file to be burned
b.Then select the symbol of the TF card
c.Finally, click Flash to start burning the Linux image to the TF card

Orange-pi-4-lts-img30.png


8)The interface displayed in the process of balenaEtcher burning the Linux image is shown in the figure below. In addition, the progress bar shows purple to indicate that the Linux image is being burned to the TF card.

Orange-pi-4-lts-img31.png


9)After the Linux image is burned, balenaEtcher will also verify the image burned to the TF card by default to ensure that there is no problem in the burning process. As shown in the figure below, a green progress bar indicates that the image has been burned, and balenaEtcher is verifying the burned image.

Orange-pi-4-lts-img32.png


10)After the successful burning, the display interface of balenaEtcher is shown in the figure below. If the green indicator icon is displayed, it means that the image burning is successful. At this time, you can exit balenaEtcher, and then pull out the TF card and insert it into the TF card slot of the development board.

Orange-pi-4-lts-img33.png


The Way to use Win32Diskimager to burn Linux image


1)First prepare a TF card with a capacity of 8GB or more. The transmission speed of the TF card must be above class 10. It is recommended to use a TF card from a brand such as SanDisk

2)Then use the card reader to insert the TF card into the computer

3)Then format the TF card

a.The SD Card Formatter software can be used to format the TF card, and its download address is

 https://www.sdcard.org/downloads/formatter/eula_windows/SDCardFormatterv5_WinEN.zip


b.After downloading, unzip and install directly, and then open the software

c.If only the TF card is inserted into the computer, the “Select card” column will display the drive letter of the TF card. If multiple USB storage devices are inserted into the computer, you can select the drive letter corresponding to the TF card through the drop-down box.

Orange-pi-4-lts-img24.png

d.Then click "Format", a warning box will pop up before formatting, select "Yes (Y)" to start formatting

Orange-pi-4-lts-img25.png

e.After formatting the TF card, the information shown in the figure below will pop up, click OK.

Orange-pi-4-lts-img26.png

4)Download the compressed package of the Linux operating system image file you want to burn from the data download page of Orange Pi, and then use the decompression software to decompress it. In the decompressed file, the file ending with ".img" is the image file of the operating system. The size is generally more than 1GB

5)Use Win32Diskimager to burn the Linux image to the TF card
a.The download page of Win32Diskimager is

 http://sourceforge.net/projects/win32diskimager/files/Archive/

b.After downloading, install it directly. The Win32Diskimager interface is as follows

a) First select the path of the image file
b) Then confirm that the drive letter of the TF card is consistent with the one displayed in the "Device" column
c) Finally click "Write" to start burning

Orange-pi-4-lts-img27.png

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

Method of flashing Linux image or OpenWRT image to TF card based on Ubuntu PC


1)The method of flashing OpenWRT image based on Ubuntu PC is the same as that of flashing Linux image. The following is an example of flashing Linux image

2)First, prepare a TF card with 8GB or larger capacity. The transmission speed of the TF card must be above class10. It is recommended to use a TF card of SanDisk and other brands

3)Then use a card reader to insert the TF card into the computer

4)Download balenaEtcher software, the download address is

 https://www.balena.io/etcher/

5)After entering the balenaEtcher download page, please select the Linux version of the software through the drop-down box to download

Orange-pi-3lts-selectlinuxversion.png


6)After downloading, use unzip to decompress. The decompressed balenaEtcher-1.5.109-x64.AppImage is the software needed to burn Linux image

test@test:~$ unzip balena-etcher-electron-1.5.109-linux-x64.zip
Archive: balena-etcher-electron-1.5.109-linux-x64.zip
inflating: balenaEtcher-1.5.109-x64.AppImage
test@test:~$ ls
balenaEtcher-1.5.109-x64.AppImage balena-etcher-electron-1.5.109-linux-x64.zip


7)Download the Linux operating system image file compression package you want to burn from Orange Pi's data download page, and then use the decompression software to decompress it. In the decompressed file, the file ending with ".img" is the operating system image file. The size is generally above 1GB
a.The decompression command of the compressed package at the end of 7z is as follows

test@test:~$ 7z x Orangepir1plus-lts_2.1.4_ubuntu_bionic_server_linux5.10.44.7z
test@test:~$ ls Orangepir1plus-lts_2.1.4_ubuntu_bionic_server_linux5.10.44.*
Orangepir1plus-lts_2.1.4_ubuntu_bionic_server_linux5.10.44.7z
Orangepir1plus-lts_2.1.4_ubuntu_bionic_server_linux5.10.44.img.sha #Checksum file
Orangepir1plus-lts_2.1.4_ubuntu_bionic_server_linux5.10.44.img # image file


8)After decompressing the image, you can first use the sha256sum -c *.sha command to calculate whether the checksum is correct. If it is prompted that the downloaded image is correct, you can safely burn it to the TF card. If the checksum does not match, it indicates There is a problem with the downloaded image, please try to download again

test@test:~$ sha256sum -c *.sha
Orangepir1plus-lts_2.1.4_ubuntu_bionic_server_linux5.10.44.img: Success

9)Then double-click balenaEtcher-1.5.109-x64.AppImage on the graphical interface of Ubuntu PC to open balenaEtcher (no installation required), the opened interface is shown in the figure below

a. First select the path of the linux image file
b. Then select the device number of the TF card
c. Finally click Flash to start burning

Orange-pi-3lts-balenaetcher.png

10)The writing speed and remaining time will be prompted during the burning process

Orange-pi-3lts-balenaetcher1.png

11)After burning, the following interface will be displayed. At this time, you can unplug the TF card from the computer and insert it into the development board to start.

Orange-pi-3lts-balenaetcher2.png

Method of flashing Android firmware to TF card


Android image can only be burned to TF card using SDDiskTool software under Windows platform, and cannot be burned under Linux platform

1)First prepare a TF card with 8GB or larger capacity. The transmission speed of the TF card must be above class10. It is recommended to use a TF card of SanDisk and other brands

2)Then use a card reader to insert the TF card into the computer

3)Download Android 9.0 firmware and SDDiskTool burning tool from Orange Pi's data download page

4) Use the decompression software to decompress the downloaded Android firmware compressed package. In the decompressed file, the file ending with ".img" is the Android firmware

5) Use decompression software to decompress SDDiskTool_v1.59, this software does not need to be installed, find SD_Firmware_Tool in the decompressed folder and open it

Orange-pi-r1-plus-lts-img12.png


6)After opening SD_Firmware_Tool, if the TF card is recognized normally, the name and capacity of the TF card will be displayed when the removable disk device is selected. Please make sure that the displayed TF card device information is consistent with the device information of the TF card you want to burn. There is no display, you can try to unplug the TF card

Orange-pi-r1-plus-lts-img13.png

7)After confirming the device information, start writing the Android firmware to the TF card

a. First check "SD start" in the "Select function mode" column
b. Select the path of Android image in "Select Firmware Upgrade"
c. Then click the "Start Create" button

Orange-pi-r1-plus-lts-img14.png


d.After clicking "Start to create", a warning box will pop up, select "Yes (Y)" to start burning

Orange-pi-r1-plus-lts-img15.png


e.After starting to burn, the partition currently being burned will be displayed below

Orange-pi-r1-plus-lts-img16.png


8)After burning, the display of SD_Firmware_Tool is as shown in the figure below. At this time, click the OK button to close SD_Firmware_Tool, and then you can unplug the TF card from the computer and insert it into the development board to start

Orange-pi-r1-plus-lts-img17.png

Start the Orange Pi development board


1)Insert the burned TF card into the TF card slot of the Orange Pi development board
2) The development board has an Ethernet port, which can be plugged into a network cable for Internet access
3)Connect a 5V/2A (5V/3A is also available) high-quality power adapter

a.Remember not to plug in the 12V power adapter, if you plug in the 12V power adapter, it will burn the development board
b.Many unstable phenomena during system power-on and startup are basically caused by power supply problems, so a reliable power adapter is very important

4)If you want to view the output information of the system through the debug serial port, please use the USB to TTL module and DuPont cable to connect the development board to the computer. For the connection method of the serial port, please refer to the section on the use of the debug serial port
5)Then turn on the switch of the power adapter, if everything is normal, the serial terminal can see the output log of the system startup at this time

How to use the debug serial port

Debug serial port connection instructions

1)First, you need to prepare a USB to TTL module. This module can be bought in Orange Pi Store. If there are other similar USB to TTL modules, you can also insert the USB port of the USB to TTL module into the USB of the computer Interface

Orange-pi-one-img9.png

2)The corresponding relationship between the debug serial port GND, TX and RX pins of the development board is shown in the figure below

Orange-pi-r1-plus-lts-img18.png

3)The GND, TX and RX pins of the USB to TTL module need to be connected to the debug serial port of the development board through a Dupont cable

a. Connect the GND of the USB to TTL module to the GND of the development board
b. Connect the RX of the USB to TTL module to the TX of the development board
c. Connect the TX of the USB to TTL module to the RX of the development board


4)The schematic diagram of connecting the USB to TTL module to the computer and the Orange Pi development board is shown below

Orange-pi-3lts-ttlmodule2.png


5)If you are using a CP2102 USB to TTL module, under the condition of a baud rate of 1.500000, some systems may encounter garbled or unusable problems. The specific test situation is as follows

USB to TTL module model Host system Support situation
CH340 win7 ok
win10 ok
ubuntu14.04 ok
ubuntu18.04 ok
ubuntu20.04 ok
CP2102 win7 ok
win10 Not available
ubuntu14.04 ok
ubuntu18.04 Not available
ubuntu20.04 Not available


How to use the debugging serial port on Ubuntu platform

1)If the USB to TTL module is connected normally, you can see the corresponding device node name under /dev of the Ubuntu PC, remember this node name, it will be used when setting the serial port software later

test@test:~$ ls /dev/ttyUSB*
/dev/ttyUSB0


2)There are many serial debugging tools that can be used under linux, such as putty, minicom, etc. The following demonstrates how to use putty

3)First install putty on the Ubuntu PC

test@test:~$ sudo apt update
test@test:~$ sudo apt -y install putty


4)Then run putty, remember to add sudo permissions

test@test:~$ sudo putty


5)After executing the putty command, the following interface will pop up

Orange-pi-3lts-putty.png


6)First select the setting interface of the serial port

Orange-pi-3lts-putty1.png

7)Then set the parameters of the serial port

a. Set the Serial line to connect to to /dev/ttyUSB0 (modify to the corresponding node name, generally /dev/ttyUSB0)
b. Set Speed (baud) to 1500000 (baud rate of the serial port)
c. Set Flow control to None

Orange-pi-r1-plus-lts-img19.png

8)After setting the serial port setting interface, return to the Session interface

a. First select the Connection type as Serial

b. Then click the Open button to connect to the serial port
Orange-pi-r1-plus-lts-img21.png


9)After starting the development board, you can see the Log information output by the system from the opened serial port terminal

Orange-pi-3lts-putty4.png

How to use the debugging serial port on Windows platform


1)There are many serial debugging tools that can be used under Windows, such as SecureCRT, MobaXterm, etc. The following shows how to use MobaXterm. This software is free and can be used without purchasing a serial number.

2)Download MobaXterm

a.Download the MobaXterm URL as follows

 https://mobaxterm.mobatek.net/

b.After entering the MobaXterm download page, click GET XOBATERM NOW!

Orange-pi-3lts-mobaxterm.png


c.Then choose to download the Home version

Orange-pi-3lts-homeversion.png

d.Then select the Portable version, after downloading, you don’t need to install it, just open it and you can use it

Orange-pi-3lts-mobaxterm1.png

3)After downloading, use the decompression software to decompress the downloaded compressed package, you can get the executable software of MobaXterm, and then double-click to open it

Orange-pi-3lts-mobaxterm2.png

4)After opening the software, the steps to set up the serial port connection are as follows

a. Open the session setting interface
b. Select the serial port type
c. Select the port number of the serial port (choose the corresponding port number according to the actual situation), if you can't see the port number, please use the 360 driver master to scan and install the USB to TTL serial chip driver
d. Select the baud rate of the serial port to be 1500000
e. Finally click the "OK" button to complete the setting

Orange-pi-r1-plus-lts-img22.png

5)After clicking the "OK" button, you will enter the following interface, and you can see the output information of the serial port when you start the development board.

Orange-pi-r1-plus-lts-img20.png

For more information on using the Orange Pi R1 Plus LTS, please see the Orange Pi R1 Plus LTS User Manual. (Click to download)