Beginner’s Guide: Quickly Getting Started with the Orange Pi AIpro Development Board

Beginner's Guide: Quickly Getting Started with the Orange Pi AIpro Development Board

Orange Pi AIpro development board adopts Ascend AI technology route, whether in appearance, performance, or technical service support, it is very excellent, providing 8/20TOPS powerful computing power, covering the mainstream application scenarios of ecological developers, allowing users to practice various innovative scenarios and providing supporting software and hardware. I believe many friends’ development boards have arrived, let’s quickly experience it together.

1: Hardware Preparation for Orange Pi AIpro

Orange Pi AIpro supports users to log in through remote login mode or local display mode to log in to the development board inference task. This time, we will introduce and demonstrate using local display mode as an example.

Remote login mode: Use an RJ45 network cable to connect the development board and PC. After starting the development board, users can remotely log in to the AIpro development board via SSH tools on the PC.

Local display mode: Connect the development board directly to the monitor, mouse, and keyboard. After starting the development board, users can directly use the keyboard and mouse to operate on the displayed graphical desktop.

The list of accessories required for local display mode is as follows:

Hardware Description Illustration
Orange Pi AIpro

After unpacking, the Orange Pi AIpro includes the main board and power supply (including power cable and power adapter).

The power cable and power adapter are separated from the factory and need to be connected for use.

Beginner's Guide: Quickly Getting Started with the Orange Pi AIpro Development Board

SD Card

The SD card is used to load the image to run the development board.

It is recommended to use a Micro SD card with a capacity of at least 64GB.

When burning the image, the SD card will be formatted, so it is recommended to prepare a dedicated SD card for the development board.

Beginner's Guide: Quickly Getting Started with the Orange Pi AIpro Development Board

Card Reader Need to use a card reader that supports Micro SD cards to insert the SD card for burning the image. The interface of the card reader can be selected according to the PC interface configuration, either USB or Type-C.
PC (Laptop or Desktop) Used to install card-making tools, burn images, and remotely connect to the development board.
Monitor Use HDMI interface to display the graphical desktop in the development board image.
HDMI Connection Cable Dual-head HDMI cable for connecting the monitor.

Beginner's Guide: Quickly Getting Started with the Orange Pi AIpro Development Board

Keyboard USB interface keyboard for input operations on the graphical desktop.

Beginner's Guide: Quickly Getting Started with the Orange Pi AIpro Development Board

Mouse USB interface mouse for clicking operations on the graphical desktop.

Beginner's Guide: Quickly Getting Started with the Orange Pi AIpro Development Board

USB Hub (Optional) If the user needs to connect a USB WiFi interface later, they need to purchase a USB multi-port hub, connect the mouse and keyboard to the hub, and connect the USB WiFi to the development board’s USB interface.

Beginner's Guide: Quickly Getting Started with the Orange Pi AIpro Development Board

2: Burning the Image to the SD Card

2.1 Download SD Burning Tools and Ubuntu Image

On the PC, go to the Orange Pi official website, hover the mouse over the “Service and Download” menu, click “Download” in the pop-up menu, find “Orange Pi AIpro” on the download page, then click “Orange Pi AIpro” to enter the download detail page, and download the “official tool” and “ubuntu image” shown in the following image.

Beginner's Guide: Quickly Getting Started with the Orange Pi AIpro Development Board

Beginner's Guide: Quickly Getting Started with the Orange Pi AIpro Development Board

The official tools and ubuntu images are on Baidu Netdisk, extract the files according to the page prompts, and save the files on the PC in the following directories:

  • Burning tool balenaEtcher:

    Official tool>Linux image burning tool-balenaEtcher>Windows_X64 version>balenaEtcher-Setup-1.18.4.exe

  • Ubuntu image: Ubuntu>opiaipro_ubuntu22.04_desktop_aarch64_*.img.xz

2.2 Install the Burning ToolbalenaEtcher

On the PC, double-clickbalenaEtcher-Setup-1.18.4.exe and follow the prompts to install.

2.3 Burn the Ubuntu Image to the SD Card

1. Insert the SD card into the card reader, then insert the card reader into the PC.

Beginner's Guide: Quickly Getting Started with the Orange Pi AIpro Development Board

2. Open the burning tool balenaEtcher, and follow the tool interface prompts to “burn from file” -> “select target disk” -> “start burning!”

(1) Burn from file, select the ubuntu image downloaded on the PC:

Beginner's Guide: Quickly Getting Started with the Orange Pi AIpro Development Board

(2) Select the target disk, choose the SD card plugged into the PC:

Beginner's Guide: Quickly Getting Started with the Orange Pi AIpro Development Board

Beginner's Guide: Quickly Getting Started with the Orange Pi AIpro Development Board

(3) Start burning

Beginner's Guide: Quickly Getting Started with the Orange Pi AIpro Development Board

Beginner's Guide: Quickly Getting Started with the Orange Pi AIpro Development Board

Beginner's Guide: Quickly Getting Started with the Orange Pi AIpro Development Board

Beginner's Guide: Quickly Getting Started with the Orange Pi AIpro Development Board

3: Starting the Orange Pi AIpro System
1. Insert the SD card into the SD slot of the development board, ensuring it is fully pushed into the slot.

Beginner's Guide: Quickly Getting Started with the Orange Pi AIpro Development Board

2. Connect the development board. The connection for local display mode is as follows:

Beginner's Guide: Quickly Getting Started with the Orange Pi AIpro Development Board

After powering on the development board, the green LED indicator light is always on, indicating normal startup.

Beginner's Guide: Quickly Getting Started with the Orange Pi AIpro Development Board

3. Log in to the development board. After plugging in the power supply for the development board, the login interface on the monitor is as follows:

Beginner's Guide: Quickly Getting Started with the Orange Pi AIpro Development Board

Enter the username HwHiAiUser and the password (default is Mind@123) to log in to the development board, and the main interface is as shown in the following figure. After logging in, please change the default password and keep the new password safe.

At the bottom of the interface, clickBeginner's Guide: Quickly Getting Started with the Orange Pi AIpro Development Board icon to open the terminal, as shown in the following figure:

Beginner's Guide: Quickly Getting Started with the Orange Pi AIpro Development Board

In the terminal, you can enter Linux commands, for example, enter the cd command:

Beginner's Guide: Quickly Getting Started with the Orange Pi AIpro Development Board

4: Running the First Inference Example: Image Classification

1. Example Introduction

In the terminal window, execute the following command to enter the example directory:

cd /opt/opi_test/ResnetPicture

This example is based on the PyTorch framework’s ResNet50 model for classifying *.jpg images and displaying the Top5 confidence classification ID and category name of the image in the terminal.

The logic of the example code is as follows:

(1) Data preprocessing (decoding + scaling), outputting YUV420SP format, 224*224 resolution images;

(2) Color space conversion and normalization, outputting RGB format, 224*224 resolution images;

(3) Model inference, outputting the confidence of each category the image belongs to;

(4) Data post-processing, the Top5 confidence classification ID and category name of the image.

2. Run the Example

(1) Switch to the root user, enter the password, the default password is Mind@123.

su rootpassword:

(2) Run the example.

In the /opt/opi_test/ResnetPicture example directory, execute the following command to run the example:

cd scriptsbash sample_run.sh

After successful execution, the key prompt information displayed on the screen is as follows. The top1-5 in the prompt information indicates the top 5 categories of image confidence, the index indicates the category identifier, and the value indicates the maximum confidence of that category, class indicates the category.

[INFO] top 1: index[162] value[0.905956] class[beagle][INFO] top 2: index[161] value[0.092549] class[bassetbasset hound][INFO] top 3: index[166] value[0.000758] class[Walker houndWalker foxhound][INFO] top 4: index[167] value[0.000559] class[English foxhound][INFO] top 5: index[163] value[0.000076] class[bloodhound sleuthhound]
5: More Introductions

By running the first example, we have roughly understood the overall process of software and hardware cooperation. If you need to learn more about the capabilities of the Ascend software stack, how to develop & tune inference applications based on the development board on Ascend, and how to obtain more application examples, you can scan the code to refer to the “Orange Pi AIpro Learning Resources One-stop Navigation” to learn more step by step.

Beginner's Guide: Quickly Getting Started with the Orange Pi AIpro Development Board

Beginner's Guide: Quickly Getting Started with the Orange Pi AIpro Development Board

Leave a Comment

×