In this guide, you’ll find the Orange Pi Zero 3 pinout diagram, its datasheet and schematic diagram, and every pin group explained with its default pins, the overlay that enables it. Without further ado, let’s get right into it!
The Orange Pi Zero 3 is a tiny 50 x 55mm Linux board built around the Allwinner H618 (4x Cortex-A53 at 1.5GHz) with 1GB, 1.5GB, 2GB, or 4GB of LPDDR4, Gigabit Ethernet, Wi-Fi 5, and Bluetooth 5.0. Its main header has 26 pins, not 40, with 17 GPIOs at 3.3v, and a few of them carry on-board pull-ups and boot straps that most pinout pages never mention.
Orange Pi Zero 3 Pinout Diagram
Here is a detailed Orange Pi Zero 3 Pinout Diagram with colored labels and legends to help you easily identify the functionalities that each pin can perform. Each GPIO shows its physical pin number, the Allwinner port name (PH5), the Linux GPIO number, the wiringOP (wPi) number, and every function the H618 can route to it.
Read it from the grey strip in the middle: odd pins (1, 3, 5…) are on the left, which is the outer row along the board edge, and even pins (2, 4, 6…) are on the right, the inner row. Pin 1 is the corner pin with the yellow housing next to the mounting hole. The plastic housing is colour-coded: yellow is 3.3v, red is 5v, black is GND, and blue is GPIO. The brown “ON BOARD” boxes mark the resistors and chips wired to a pin, and the numbered badges point to the notes at the bottom of the diagram.
Orange Pi Zero 3 26-Pin Header Pin Table
Click to expand the full pin table (26 pins)
| Pin | Name | Linux # | wPi | Functions |
|---|---|---|---|---|
| 1 | 3.3V | – | – | 3.3v power |
| 2 | 5V | – | – | 5v power |
| 3 | PH5 | 229 | 0 | TWI3_SDA, UART2_TX, SPI1_CS0, H_I2S3_MCLK |
| 4 | 5V | – | – | 5v power |
| 5 | PH4 | 228 | 1 | TWI3_SCK, SPDIF_OUT |
| 6 | GND | – | – | Ground |
| 7 | PC9 | 73 | 2 | GPIO, SDC2_D4, NAND_DQ6 |
| 8 | PH2 | 226 | 3 | UART5_TX, PWM2, TWI2_SCK, SPDIF_CLK |
| 9 | GND | – | – | Ground |
| 10 | PH3 | 227 | 4 | UART5_RX, PWM1, TWI2_SDA, SPDIF_IN |
| 11 | PC6 | 70 | 5 | GPIO, SDC2_CMD, NAND_RB0 (BOOT_SEL4 strap) |
| 12 | PC11 | 75 | 6 | GPIO, SDC2_D5, NAND_DQ4 |
| 13 | PC5 | 69 | 7 | GPIO, SDC2_CLK, NAND_RE (BOOT_SEL3 strap) |
| 14 | GND | – | – | Ground |
| 15 | PC8 | 72 | 8 | GPIO, SDC2_D3, NAND_DQ7 |
| 16 | PC15 | 79 | 9 | GPIO, SDC2_D2, NAND_DQ1, SPI0_WP |
| 17 | 3.3V | – | – | 3.3v power |
| 18 | PC14 | 78 | 10 | GPIO, SDC2_D6, NAND_DQ2 |
| 19 | PH7 | 231 | 11 | SPI1_MOSI, UART2_RTS, TWI4_SDA, H_I2S3_LRCK |
| 20 | GND | – | – | Ground |
| 21 | PH8 | 232 | 12 | SPI1_MISO, UART2_CTS, H_I2S3_DOUT0 |
| 22 | PC7 | 71 | 13 | GPIO, SPI0_CS1, NAND_RB1 |
| 23 | PH6 | 230 | 14 | SPI1_CLK, UART2_RX, TWI4_SCK, H_I2S3_BCLK |
| 24 | PH9 | 233 | 15 | SPI1_CS1, H_I2S3_DIN0 |
| 25 | GND | – | – | Ground |
| 26 | PC10 | 74 | 16 | GPIO, SDC2_D0, NAND_DQ5 |
Orange Pi Zero 3 13-Pin Header Pinout
The Orange Pi Zero 3 also has a single-row 13-pin function header next to the RJ45 jack. It carries two extra USB 2.0 host ports, the audio line out, TV-out (composite video), the IR receiver input, and four more GPIOs. Pin 1 (5v) is the end next to the Ethernet jack.
Click to expand the full pin table (13 pins)
| Pin | Name | Linux # | wPi | Other Functions | Notes |
|---|---|---|---|---|---|
| 1 | 5V | – | – | – | VCC-5V, the same rail as USB-C VBUS |
| 2 | GND | – | – | – | Ground |
| 3 | USB2-DM | – | – | – | USB 2.0 host port 2, data − |
| 4 | USB2-DP | – | – | – | USB 2.0 host port 2, data + |
| 5 | USB3-DM | – | – | – | USB 2.0 host port 3, data − |
| 6 | USB3-DP | – | – | – | USB 2.0 host port 3, data + |
| 7 | LINEOUTR | – | – | – | Audio line out, right channel |
| 8 | LINEOUTL | – | – | – | Audio line out, left channel |
| 9 | TV-OUT | – | – | – | Composite video (CVBS), PAL/NTSC |
| 10 | PC1 | 65 | 17 | SDC2_RST, NAND_ALE | Free GPIO |
| 11 | PI16 | 272 | 18 | EPHY_25M, UART4_CTS, CLK_FANOUT1 | GPIO; gpio readall shows it in ALT2 |
| 12 | PI6 | 262 | 19 | UART2_RX, TWI0_SDA, RMII_RXER | Free GPIO |
| 13 | PH10 | 234 | 20 | IR_RX, TCON_TRIG1 | IR receiver input of the expansion board |
There’s no microphone input on the Zero 3’s 13-pin header, and no VBUS switch for the two USB ports: power USB devices from pin 1 (5v) and pin 2 (GND). Orange Pi’s 13-pin expansion board turns these pins into two USB-A ports, a 3.5mm audio/TV jack, and an IR receiver, and with it fitted, pins 10–12 aren’t free any more.
Buy an Orange Pi Zero 3: If you don’t have one yet, you can get the official board from Amazon or AliExpress. Pick the RAM size that fits your project: 1GB is plenty for GPIO and sensor work, and 2GB or 4GB for a desktop, Docker, or a 3D-printer host.
Download Orange Pi Zero 3 Pinout Diagrams (Full Resolution)
Both Orange Pi Zero 3 pinout diagrams (26-pin GPIO header and 13-pin function header) in full resolution (5120 px), in one ZIP file.
Orange Pi Zero 3 Datasheet
The Orange Pi Zero 3 is built around the Allwinner H618 system-on-chip. Orange Pi doesn’t publish a separate board datasheet: the user manual is the datasheet, with the specs, both header tables, and the overlay list. Here are the official documents (Orange Pi hosts them on Google Drive, linked from its Orange Pi Zero 3 service and support page):
| Document | Version / Date | What You’ll Use It For | Link |
|---|---|---|---|
| Orange Pi Zero 3 User Manual (OrangePi_Zero3_H618_user manual) | v1.5, 10 Oct 2024 (362 pages) | Specs, the 13-pin (3.15) and 26-pin (3.16) tables, gpio readall (3.17), I2C/SPI/UART tests (3.18), hardware PWM (3.19), powering from the 5v pins (2.9) | |
| Orange Pi Zero 3 Schematic (OrangePi-Schematic of ZERO3) | Rev 1.2, 13 Jul 2023 (7 sheets) | H618 ball names with every pin function (sheet 1), power (sheet 4), headers, LEDs, debug UART, USB (sheet 5) | |
| Orange Pi Zero 3 Mechanical Drawing (ZERO3 PCBA) | – | Board outline (50 x 55mm), mounting holes, and connector positions for cases | RAR |
| Orange Pi Zero 3 Product Page | Live | Current hardware specifications and RAM options | Web |
| Orange Pi Zero 3 Wiki | Orange Pi wiki | An HTML copy of an older manual, handy for searching the text | Web |
| wiringOP | GitHub (live) | Orange Pi’s GPIO library and the gpio readall command | GitHub |
| Linux H616/H618 pin controller (pinctrl-sun50i-h616.c) | kernel.org (live) | The mainline kernel’s table of every H618 pin function | Source |
Which document do I need? The user manual for the pin tables, the overlay names and the Linux device nodes; the schematic for the power path, the on-board resistors and the boot straps; and the mechanical drawing for a case or a mount.
Note: Allwinner doesn’t publish an H618 datasheet or user manual, so there’s no official chip datasheet to link. The alternate functions in this guide come from the H618 ball names printed on Orange Pi’s schematic (sheet 1), cross-checked with the mainline Linux pin controller. The electrical limits further down are from Allwinner’s datasheet for the H616, the H618’s sibling chip with the same GPIO design, and they’re labelled as H616 values.
Orange Pi Zero 3 Schematic
Orange Pi publishes the full Orange Pi Zero 3 schematic (Rev 1.2, 7 sheets). The carousel below shows the three sheets that matter when you wire the headers: the headers, USB, debug UART and LEDs sheet, the power sheet with the USB-C input and the AXP313A PMU, and the H618 sheet with every GPIO ball and its functions. Click a page to view it full screen.
Official source: the Orange Pi Zero 3 schematic (PDF), OrangePi-Schematic of ZERO3, Rev 1.2, 13 July 2023. The watermark across the sheets is on Orange Pi’s own file. Here’s what to look at:
- 5v pins (sheets 4 and 5): the USB-C connector’s VBUS pins go straight to the VCC-5V net, and header pins 2, 4 and 13-pin pin 1 sit on that same net. There’s no fuse, no reverse-polarity diode and no switch in between. Two 5.1kΩ resistors on CC1/CC2 make the board a plain 5v USB-C sink, so any charger gives it 5v and there’s no Power Delivery.
- 3.3v pins (sheets 4 and 5): pins 1 and 17 are VCC3V3-EXT, one branch of the board’s 3.3v rail group. The same group also feeds the GPIO banks (VCC-IO, VCC-PC), the microSD card, the Ethernet PHY and the Wi-Fi module, and Orange Pi doesn’t state its current rating.
- Pull-ups on the 26-pin header (sheet 5): R31/R30 (2kΩ) pull pins 3 and 5 (I2C3) up to 3.3v, and R28/R29 (2kΩ) pull pins 16 and 18 up to 3.3v on nets named GPIO-SDA and GPIO-SCK. All four pins idle high.
- Boot straps (sheet 1): PC6 and PC5 are the H618’s BOOT_SEL4 and BOOT_SEL3 straps, with a 10kΩ pull-up (R20) and a 10kΩ pull-down (R19). They come out on header pins 11 and 13.
- PMU interrupt (sheets 1 and 4): the AXP313A’s IRQ output (PMU_IRQ) is tied to PC9, header pin 7, through R42 (0Ω).
- USB-A port (sheet 5): its VBUS goes through an SY6280 power switch, enabled by PC16 (USB1-DRVVBUS) with a 6.8kΩ current-limit resistor. The two USB ports on the 13-pin header have no such switch.
- LEDs and debug UART (sheet 5): the red LED is on PC12 (1kΩ) and the green LED on PC13 (470Ω), both active high. The 3-pin debug header is GND, RX, TX (pins 1, 2, 3), wired to UART0 (PH1/PH0) through 100Ω resistors.
Orange Pi Zero 3 Specs
Here are the Orange Pi Zero 3 specifications, with the board-level details that matter when you wire it:

Get an Orange Pi Zero 3: the official Orange Pi board is the one I recommend. Grab it from Amazon or AliExpress.
| Feature | Orange Pi Zero 3 |
|---|---|
| SoC | Allwinner H618, 4x Cortex-A53 @ 1.5GHz, 1MB L2 cache |
| GPU | Arm Mali-G31 MP2 (OpenGL ES 1.0/2.0/3.2, OpenCL 2.0) |
| Power management IC | X-Powers AXP313A |
| RAM | 1GB, 1.5GB, 2GB or 4GB LPDDR4 (shared with the GPU) |
| Storage | microSD slot, 16MB SPI NOR flash |
| Ethernet | Gigabit Ethernet (Motorcomm YT8531C PHY) |
| Wireless | Wi-Fi 5 (802.11a/b/g/n/ac) + Bluetooth 5.0, external antenna |
| USB | 1x USB 2.0 Type-A host, 2x USB 2.0 host on the 13-pin header, USB-C for power |
| Video / audio | Micro-HDMI 2.0a (up to 4K); line out and TV-out (CVBS) on the 13-pin header |
| GPIO header | 26-pin (2×13, 2.54mm), 17 GPIOs, 3.3v logic, not 5v tolerant |
| Other headers | 13-pin function header (4 more GPIOs), 3-pin debug UART (115200 baud) |
| Keys / LEDs | No buttons; red LED (PC12) and green LED (PC13), both software-controlled |
| Power input | 5v / 2A or 3A through USB-C (or 5v into header pins 2/4) |
| Size / weight | 50 x 55mm, 30g |
Orange Pi Zero 3 Specifications Summary
- The Orange Pi Zero 3 has a 26-pin header (not 40 pins), so Raspberry Pi HATs don’t fit it.
- It has 17 GPIOs on the 26-pin header and 4 more on the 13-pin header, all 3.3v and not 5v tolerant.
- Current limit (H616 datasheet values): 6mA max per pin, 4mA by default.
- Pins 3, 5, 16 and 18 have 2kΩ pull-ups on the board and always idle high.
- Pins 11 and 13 are the H618’s boot straps (10kΩ pull-up / pull-down).
- Power pins: 5v on pins 2 and 4 (USB-C VBUS, no fuse), 3.3v on pins 1 and 17, and 5 GND pins (6, 9, 14, 20, 25).
- There are no analog inputs: add an external I2C ADC.
- I2C: I2C3 on pin 3 (SDA) and pin 5 (SCL), /dev/i2c-3 on Orange Pi OS.
- UART: UART5 on pin 8 (TX) and pin 10 (RX), /dev/ttyS5 on Orange Pi OS.
- SPI: SPI1 on pins 19, 21 and 23, with CS1 on pin 24 → /dev/spidev1.1.
- PWM: PWM1 (pin 10) and PWM2 (pin 8); PWM3 and PWM4 are on the debug UART pins.
- Debug console: a separate 3-pin UART header at 115200 baud.
Orange Pi Zero 3 H618 Peripherals vs the Headers
| Peripheral | On the Headers | Overlay (Orange Pi OS) | Linux Device / Notes |
|---|---|---|---|
| GPIO | 17 (26-pin) + 4 (13-pin) | Always available | /dev/gpiochip0 (libgpiod), wiringOP |
| UART | UART5 (pins 8/10); UART2 as an alternate | ph-uart5 | /dev/ttyS5 (/dev/ttyAS5 on Linux 5.4); no RTS/CTS with UART5 |
| I2C | I2C3 (pins 3/5); I2C2 and I2C4 as alternates | ph-i2c3 | /dev/i2c-3 |
| SPI | SPI1 (CS0 pin 3, CS1 pin 24) | spi1-cs1-spidev | /dev/spidev1.1 |
| PWM | PWM1, PWM2 (26-pin); PWM3, PWM4 (debug UART) | ph-pwm12, ph-pwm34 | /sys/class/pwm/pwmchip0, or wiringOP |
| USB | 2x USB 2.0 host (13-pin) | – | Plus the USB-A port |
| Audio / video | Line out L/R, TV-out (13-pin) | – | Through the H618 audio codec and TV encoder |
| IR | IR_RX (13-pin pin 13) | – | For the expansion board’s IR receiver |
| ADC | None | – | No analog inputs on the H618 header pins |
| CAN | None | – | Use an SPI CAN controller (MCP2515) |
Orange Pi Zero 3 Quick Pin Selection Guide
| Use Case | Recommended Pins | Why |
|---|---|---|
| Serial port / UART | Pin 8 (UART5 TX), pin 10 (UART5 RX) | The UART Orange Pi enables; leaves the debug console alone |
| I2C sensors and displays | Pins 3 (SDA) / 5 (SCL), I2C3 | Pull-ups already on the board |
| A second I2C bus | Pins 16 (SDA) / 18 (SCL), software I2C | 2kΩ pull-ups already on the board |
| SPI device | Pins 19, 21, 23 + CS1 pin 24 | /dev/spidev1.1, leaves I2C3 free |
| Hardware PWM | Pin 10 (PWM1) or pin 8 (PWM2) | The only PWM pins on the 26-pin header |
| Plain GPIO (outputs, LEDs) | Pins 12, 15, 22, 26 | Nothing else attached |
| Push buttons | Pins 16 or 18 (to GND) | The 2kΩ pull-up makes them active-low inputs |
| IR remote | 13-pin pin 13 (PH10) | IR_RX function |
| Relays, motors, fans | Any GPIO through a transistor or driver board | GPIOs only switch logic levels |
| Analog input | None on the board | Add an ADS1115 on I2C3 |
Orange Pi Zero 3 Pins to Use With Caution
| Pin | Reason | What to Do |
|---|---|---|
| Pins 11, 13 (PC6, PC5) | H618 boot straps with 10kΩ pull-up / pull-down | Don’t hold them the other way at power-up |
| Pin 7 (PC9) | Tied to the AXP313A PMU IRQ through R42 (0Ω) | Use it as an input, or check that R42 isn’t fitted before driving it |
| Pins 3, 5, 16, 18 | 2kΩ pull-ups to 3.3v; they idle high | Use them active-low, or for I2C |
| Pin 3 (PH5) | I2C3 SDA and SPI1 CS0 share the pin | Use SPI1 CS1 (pin 24) with I2C3 |
| Pins 8, 10 | UART5, PWM1/PWM2, and I2C2 share them | Enable only one of ph-uart5 or ph-pwm12 |
| 13-pin pin 11 (PI16) | gpio readall shows it in ALT2 (EPHY_25M) | Set it to IN or OUT before using it |
| Pins 2, 4 (5v) | USB-C VBUS, no fuse or protection | Never feed them while USB-C is plugged in |
| Pins 1, 17 (3.3v) | No current rating published | Light loads only |
| Any GPIO | Not 5v tolerant, 6mA max (H616) | Level-shift 5v signals; buffer loads |
Orange Pi Zero 3 Pins Functions
Only 17 of the 26 pins of the Orange Pi Zero 3 header are GPIO pins; the rest are power and ground. The pins are divided into the following groups based on the hardware functionality they’re used for.
- Power Pins (2x 5v, 2x 3.3v, 5x GND)
- 17x GPIO Pins (+4 on the 13-pin header, with 4 numbering systems)
- Boot Strap Pins (pins 11 and 13)
- Analog Input Pins (none on the headers)
- UART Pins (UART5)
- I2C Pins (I2C3)
- SPI Pins (SPI1)
- 2x PWM Pins (+2 on the debug UART)
- Debug UART Pins (separate 3-pin header)
Every bus is off by default, and each one is turned on with an overlay. Pick your overlays first, so no two of them claim the same pin. We’ll discuss each pin group in the following sections one by one in more detail.
Orange Pi Zero 3 Power Pins
The Orange Pi Zero 3 26-pin header has two 5v pins (2 and 4), two 3.3v pins (1 and 17) and five GND pins (6, 9, 14, 20 and 25), plus 5v and GND on pins 1 and 2 of the 13-pin header. They’re highlighted in red and black in the pinout diagram, and in the header’s own red, yellow and black plastic.

| Pin | Name | Function | Notes |
|---|---|---|---|
| 1, 17 | 3.3V | 3.3v output | VCC3V3-EXT, a branch of the board’s 3.3v rail; no current rating published |
| 2, 4 (+ 13-pin pin 1) | 5V | 5v output or input | VCC-5V, the USB-C VBUS line itself, with no fuse |
| 6, 9, 14, 20, 25 (+ 13-pin pin 2) | GND | Ground | Common ground for everything you connect |
5V pins: when you power the Orange Pi Zero 3 over USB-C, these pins give you that same 5v, so you can power modules and the 13-pin USB ports from them. They work the other way too: the user manual (section 2.9) allows powering the board through a 5v pin and GND, as long as the supply and the wires can deliver the current. The schematic shows nothing between these pins and the USB-C connector: no fuse, no reverse-polarity diode, no back-feed protection.
3.3V pins: a 3.3v output for sensors and logic chips. The same 3.3v rail group also feeds the GPIO banks, the microSD card, the Ethernet PHY and the Wi-Fi module, and Orange Pi doesn’t publish a current limit for it. Keep the load small (sensors and modules), and give anything heavier its own 3.3v regulator powered from 5v.
Power supply: the Orange Pi Zero 3 wants a good 5v / 2A or 5v / 3A supply into its USB-C port. The port has plain 5.1kΩ CC resistors and no Power Delivery, so a USB-C PD charger simply gives it 5v. The manual blames most continuous restarts during boot on the power supply or the USB-C cable, so try a better supply and a short, thick cable first.
Note: Never connect a supply to the 5v pins while the USB-C power cable is plugged in. They’re the same net, so the two supplies fight each other with nothing in between. Use one or the other, and if you power the board from the header, use a regulated 5v supply rated for at least 2A, with short, thick wires.
Never forget to connect the ground of every circuit to the Orange Pi Zero 3’s GND (common ground). External sensors and modules need the same ground line as the board to communicate with it properly.
Orange Pi Zero 3 GPIO Pins
The Orange Pi Zero 3 has 17 GPIO pins on its 26-pin header and 4 more (PC1, PI16, PI6, PH10) on the 13-pin header, and every one of them is a 3.3v pin that is not 5v tolerant. Each one can be an input or an output, or be switched to an alternate function (UART, I2C, SPI or PWM) with an overlay.

| Parameter | Orange Pi Zero 3 GPIO (H616 datasheet values) |
|---|---|
| Logic level | 3.3v (VCC-IO for the PH pins, VCC-PC for the PC pins) |
| 5v tolerant | No; the input high voltage is VCC + 0.3v max (about 3.6v) |
| Input thresholds | High ≥ 0.7 x VCC (about 2.31v), low ≤ 0.3 x VCC (about 0.99v) |
| Drive current | 6mA max per pin; 4mA default drive strength |
| Internal pull-up / pull-down | 100kΩ on most pins; 15kΩ on PC5, PC6 and PC7 (pins 13, 11, 22) |
| On-board pull resistors | 2kΩ pull-ups on pins 3, 5, 16, 18; 10kΩ pull-up on pin 11, 10kΩ pull-down on pin 13 |
| Interrupts | Every header GPIO has an external interrupt (PC_EINTx, PH_EINTx, PI_EINTx): edge events in libgpiod, wiringPiISR() in wiringOP |
These limits are from Allwinner’s H616 datasheet (Revision 1.0), because Allwinner publishes no H618 datasheet. The H616 gives no total or per-bank current, so treat the pins as signal outputs: an LED with a 1kΩ resistor is fine, but anything that draws real current (relays, motors, LED strips, buzzers) needs a transistor or a driver board.
Orange Pi Zero 3 Pull-Up Resistors on Pins 3, 5, 16 and 18
Four pins of the Orange Pi Zero 3 header have strong 2kΩ pull-up resistors to 3.3v on the board: pins 3 and 5 (I2C3, R31/R30), and pins 16 and 18 (PC15/PC14, R28/R29). The manual lists pins 16 and 18 as plain GPIOs, but the schematic names their nets GPIO-SDA and GPIO-SCK. So:
- These four pins always idle high. The H618’s internal 100kΩ pull-down can’t win against 2kΩ, so a pull-down setting does nothing on them.
- They’re ideal active-low inputs. Wire a push button from pin 16 or 18 to GND, and it reads 1 when released and 0 when pressed, with no extra resistor.
- Pins 16 and 18 make a ready-made software I2C pair (there’s no hardware I2C on PC14/PC15). Linux’s i2c-gpio driver can turn them into a second I2C bus.
- As outputs they still work, but while one is low it sinks about 1.65mA through the pull-up, on top of your load.
Orange Pi Zero 3 GPIO Numbering: Physical vs Allwinner vs Linux vs wiringOP
Every GPIO on the Orange Pi Zero 3 has four names, and each tool wants a different one. The Raspberry Pi’s BCM numbers don’t apply here at all. Take physical pin 3 as an example:
| Numbering | Pin 3 Is | Used By |
|---|---|---|
| Physical | 3 | Counting pins on the header (1–26), and the “Physical” column of gpio readall |
| Allwinner port name | PH5 | The schematic, the manual, the device tree (port H, pin 5) |
| Linux GPIO number | 229 | sysfs (/sys/class/gpio), and the line offset in libgpiod on gpiochip0 |
| wiringOP (wPi) | 0 | wiringOP C/Python functions and gpio mode/read/write |
The Linux number is built from the port name: port × 32 + pin, where PA = 0, PB = 1, PC = 2 … PH = 7 and PI = 8. PH5 is 7 × 32 + 5 = 229, PC11 (pin 12) is 2 × 32 + 11 = 75, and PI16 (13-pin pin 11) is 8 × 32 + 16 = 272. All the header GPIOs live on the H618’s main pin controller, which libgpiod sees as one chip, gpiochip0, so the line offset there is the same number.
wiringOP only knows the wPi numbers, and gpio readall prints them next to the physical pins. One oddity: it lists the four 13-pin GPIOs as “physical” pins 27, 29, 31 and 33 (wPi 17 to 20), and the newest wiringOP adds 28 and 30 for PWM3/PWM4 on the debug UART pins.
|
1 2 3 |
gpio readall # wiringOP: physical, wPi, GPIO name and mode of every pin gpioinfo gpiochip0 # libgpiod: list the lines of the main pin controller gpioset gpiochip0 75=1 # libgpiod v1 tools: drive PC11 (pin 12) high |
Orange Pi Zero 3 GPIO Code Example (C/C++ and Python)
Here’s the same job in both languages: blink an LED on pin 12 (PC11), a free GPIO with nothing else attached. Wire the LED’s anode to pin 12 through a 1kΩ resistor (about 1mA, well under the pin’s limit), and its cathode to GND on pin 14. Both use the libgpiod v2 API (gpiochip0, line 75): install libgpiod-dev on a release that packages v2 (Debian 13, Ubuntu 24.04) or build it from source, and pip install gpiod for the Python bindings. Images that ship libgpiod v1.6 need the older API.
C/C++ (libgpiod v2)
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
// Blink an LED on pin 12 (PC11) with libgpiod v2 // Build: gcc blink.c -o blink -lgpiod #include <gpiod.h> #include <unistd.h> int main(void) { unsigned int line = 75; /* PC11 = 2 x 32 + 11 */ struct gpiod_chip *chip = gpiod_chip_open("/dev/gpiochip0"); struct gpiod_line_settings *st = gpiod_line_settings_new(); gpiod_line_settings_set_direction(st, GPIOD_LINE_DIRECTION_OUTPUT); struct gpiod_line_config *cfg = gpiod_line_config_new(); gpiod_line_config_add_line_settings(cfg, &line, 1, st); struct gpiod_line_request *led = gpiod_chip_request_lines(chip, NULL, cfg); for (int i = 0; i < 10; i++) { gpiod_line_request_set_value(led, line, (i % 2) ? GPIOD_LINE_VALUE_INACTIVE : GPIOD_LINE_VALUE_ACTIVE); usleep(500000); } gpiod_line_request_release(led); gpiod_chip_close(chip); return 0; } |
Python (gpiod v2)
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
# Blink an LED on pin 12 (PC11) with the gpiod v2 bindings # Run: sudo python3 blink.py import time import gpiod from gpiod.line import Direction, Value LINE = 75 # PC11 = 2 x 32 + 11, on gpiochip0 with gpiod.request_lines( "/dev/gpiochip0", consumer="blink", config={LINE: gpiod.LineSettings(direction=Direction.OUTPUT)}) as req: for _ in range(5): req.set_value(LINE, Value.ACTIVE) time.sleep(0.5) req.set_value(LINE, Value.INACTIVE) time.sleep(0.5) |
With wiringOP (preinstalled on Orange Pi OS) the same LED is gpio mode 6 out and gpio write 6 1 in the terminal, because pin 12 is wPi 6. In C, that’s pinMode(6, OUTPUT) and digitalWrite(6, HIGH) after wiringPiSetup(). Its official GitHub repository has the source and the Python version.
Note: The Orange Pi Zero 3’s GPIOs are not 5v tolerant: the H616 datasheet allows no more than VCC + 0.3v (about 3.6v) on a pin. 5v on a header pin can damage the H618. To connect 5v logic (an Arduino’s TX pin, a 5v sensor output), use a level shifter or a resistor divider.
Orange Pi Zero 3 Boot Strap Pins and Pin 7
Pins 11 (PC6) and 13 (PC5) of the Orange Pi Zero 3 are the H618’s BOOT_SEL4 and BOOT_SEL3 boot-select straps. The board holds pin 11 high with a 10kΩ pull-up and pin 13 low with a 10kΩ pull-down, and the H618 reads them at power-up to decide where to boot from.

| Pin | GPIO | Strap | On-Board Resistor | Default Level |
|---|---|---|---|---|
| 11 | PC6 (wPi 5) | BOOT_SEL4 | 10kΩ pull-up (R20) | High |
| 13 | PC5 (wPi 7) | BOOT_SEL3 | 10kΩ pull-down (R19) | Low |
Once Linux is running, both are normal GPIOs. The catch is at power-up: if something you’ve wired holds pin 11 low or pin 13 high while the board starts, it may not boot from the SPI flash and microSD card as usual. Keep whatever drives these pins high-impedance at power-up (a sensor output that only switches later is fine), or use the other free GPIOs (12, 15, 22, 26) first.
Pin 7 (PC9) is the manual’s GPIO test pin, but the schematic also ties it to the AXP313A PMU’s IRQ output through R42 (0Ω). Orange Pi doesn’t say whether R42 is fitted on production boards. Treat pin 7 as an input, or check that R42 isn’t fitted before you drive it, so your output never fights the PMU.
Orange Pi Zero 3 Analog Input Pins (ADC)
The Orange Pi Zero 3 has no analog input pins on either header: none of the H618 pins brought out to the headers has an ADC function. To read a potentiometer or an analog sensor, add an external ADC such as an ADS1115 (16-bit, 4 channels, I2C) on I2C3 (pins 3 and 5), or an MCP3008 (10-bit, SPI) on SPI1. Power the ADC from 3.3v, so its digital lines stay at the board’s logic level.
Orange Pi Zero 3 UART Pins
The Orange Pi Zero 3’s main UART on the 26-pin header is UART5, on pin 8 (TX) and pin 10 (RX). It’s off by default: enable ph-uart5 on Orange Pi OS and it appears as /dev/ttyS5 ( /dev/ttyAS5 on Linux 5.4 images).
Orange Pi Zero 3 Default UART Pins: PH2 (UART5 TX, pin 8) and PH3 (UART5 RX, pin 10).

| UART | TX | RX | Orange Pi OS | Armbian / Mainline |
|---|---|---|---|---|
| UART5 | Pin 8 (PH2) | Pin 10 (PH3) | ph-uart5 → /dev/ttyS5 | uart5 → /dev/ttyS1 |
| UART2 (alternate) | Pin 3 (PH5) | Pin 23 (PH6) | Not in orangepi-config | Shares pins with I2C3 and SPI1 |
| UART0 (debug) | Debug header TX | Debug header RX | Linux console | Linux console |
UART2 also has RTS/CTS on pins 19 and 21, but it sits on the I2C3 and SPI1 pins, so UART5 is the one to use. Cross the lines to your device (board TX to device RX), connect GND, and keep the device at 3.3v levels. Test it with a jumper from pin 8 to pin 10 and the manual’s gpio serial /dev/ttyS5 loopback.
|
1 2 3 4 5 |
# Orange Pi OS: sudo orangepi-config → System → Hardware → ph-uart5, or in /boot/orangepiEnv.txt: overlays=ph-uart5 # after a reboot: ls /dev/ttyS5 |
Note: Hardware PWM1 and PWM2 use the same pins as UART5 (pins 10 and 8). Enable either ph-uart5 or ph-pwm12, never both. And once an overlay owns a pin, it isn’t a free GPIO any more.
There are so many modules that we can interface with the Orange Pi Zero 3 using the UART, which include: GPS receivers, 3D-printer controller boards (Klipper), RS-485 transceivers (Modbus), LoRa and cellular modems, fingerprint sensors, microcontroller boards, and much more.
Orange Pi Zero 3 I2C Pins
The Orange Pi Zero 3’s main I2C bus is I2C3 (Allwinner calls it TWI3), on pin 3 (SDA) and pin 5 (SCL), the same position as the main I2C bus on a Raspberry Pi. Both pins already have 2kΩ pull-ups on the board. Enable ph-i2c3 on Orange Pi OS and it appears as /dev/i2c-3.
Orange Pi Zero 3 Default I2C Pins: PH5 (I2C3 SDA, pin 3) and PH4 (I2C3 SCL, pin 5).

| I2C Bus | SDA | SCL | Orange Pi OS | Armbian / Mainline |
|---|---|---|---|---|
| I2C3 (TWI3) | Pin 3 (PH5) | Pin 5 (PH4) | ph-i2c3 → /dev/i2c-3 | i2c3-ph → /dev/i2c-2 |
| I2C2 (alternate) | Pin 10 (PH3) | Pin 8 (PH2) | – | Shares pins with UART5 |
| I2C4 (alternate) | Pin 19 (PH7) | Pin 23 (PH6) | – | Shares pins with SPI1 |
| Software I2C | Pin 16 (PC15) | Pin 18 (PC14) | i2c-gpio overlay | 2kΩ pull-ups on the board |
The bus number is the usual surprise: Orange Pi OS calls the bus /dev/i2c-3, but Armbian and other mainline-kernel images number it /dev/i2c-2, so a sensor library hard-coded for bus 3 finds nothing. Run ls /dev/i2c-* and sudo i2cdetect -y <bus> to see which number your image uses. Most sensor modules carry their own pull-ups too; that’s fine, they just sit in parallel with the board’s 2kΩ.
|
1 2 3 4 5 |
# Orange Pi OS: sudo orangepi-config → System → Hardware → ph-i2c3, or in /boot/orangepiEnv.txt: overlays=ph-i2c3 # after a reboot: sudo i2cdetect -y 3 |
Note: Many I2C modules sold for Arduino pull SDA and SCL up to 5v. That puts 5v on the header pins, which the H618 isn’t built for. Power such a module from 3.3v if it supports it, remove its 5v pull-ups, or put a bidirectional I2C level shifter between them.
There are so many modules and sensors that we can interface with the Orange Pi Zero 3 using the I2C bus, which include: RTC clocks (DS3231), OLED displays (SSD1306), temperature and humidity sensors (BME280, SHT31), IMUs (MPU6050), ADCs (ADS1115) for analog inputs, GPIO expanders (MCP23017), PWM drivers (PCA9685), and much more.
Orange Pi Zero 3 SPI Pins
The Orange Pi Zero 3 has 1 SPI bus on its header: SPI1 on pins 19 (MOSI), 21 (MISO) and 23 (CLK), with chip select 1 on pin 24. Enable spi1-cs1-spidev and it appears as /dev/spidev1.1.
Orange Pi Zero 3 Default SPI1 Pins: PH7 (MOSI, pin 19), PH8 (MISO, pin 21), PH6 (CLK, pin 23) and PH9 (CS1, pin 24).

| Signal | Pin | GPIO | Linux # | wPi |
|---|---|---|---|---|
| SPI1_MOSI | 19 | PH7 | 231 | 11 |
| SPI1_MISO | 21 | PH8 | 232 | 12 |
| SPI1_CLK | 23 | PH6 | 230 | 14 |
| SPI1_CS1 | 24 | PH9 | 233 | 15 |
| SPI1_CS0 | 3 | PH5 | 229 | 0 |
The manual’s pin table calls pin 24 “SPI1_CS”, but the schematic’s ball name is SPI1_CS1, and Orange Pi’s own overlay ( spi1-cs1-spidev) agrees, which is why the node is spidev1.1. Chip select 0 exists too, but it’s on pin 3, shared with I2C3 SDA, so you can’t use I2C3 and SPI1 CS0 at the same time. For a second SPI device, use any free GPIO as a chip select. Test the bus with a jumper from pin 19 to pin 21 and sudo spidev_test -v -D /dev/spidev1.1.
Pin 22 (PC7) shows SPI0_CS1 in the diagram, but SPI0 is the bus of the on-board 16MB flash, and its other pins aren’t on the header. Use pin 22 as a GPIO.
There are so many modules that we can interface with the Orange Pi Zero 3 using the SPI bus, which include: TFT and e-paper displays, MCP3008 ADCs, MCP2515 CAN controllers, LoRa radios (SX127x), RFID readers (RC522), accelerometers for 3D-printer input shaping (ADXL345), and much more.
Orange Pi Zero 3 PWM Pins
The Orange Pi Zero 3 has 2 hardware PWM pins on its 26-pin header: PWM1 on pin 10 (PH3) and PWM2 on pin 8 (PH2). Two more, PWM3 and PWM4, sit on the debug UART’s TX and RX pins, and you only get them if you give up the serial console.

| Channel | Pin | GPIO | wPi | Overlay (Orange Pi OS) | Shares With |
|---|---|---|---|---|---|
| PWM1 | 26-pin pin 10 | PH3 | 4 | ph-pwm12 | UART5 RX |
| PWM2 | 26-pin pin 8 | PH2 | 3 | ph-pwm12 | UART5 TX |
| PWM3 | Debug UART TX | PH0 | 21 | ph-pwm34 + disable-uart0 | Linux console |
| PWM4 | Debug UART RX | PH1 | 22 | ph-pwm34 + disable-uart0 | Linux console |
With ph-pwm12 enabled (and ph-uart5 off), the manual drives PWM1 through sysfs on pwmchip0. This gives a 50Hz signal with a 1ms pulse on pin 10, the signal a servo wants:
|
1 2 3 4 |
echo 1 > /sys/class/pwm/pwmchip0/export echo 20000000 > /sys/class/pwm/pwmchip0/pwm1/period # 20ms = 50Hz echo 1000000 > /sys/class/pwm/pwmchip0/pwm1/duty_cycle # 1ms echo 1 > /sys/class/pwm/pwmchip0/pwm1/enable |
With wiringOP, gpio mode 4 pwm (PWM1) or gpio mode 3 pwm (PWM2) starts a 23475Hz, 50% square wave, and gpio pwm, gpio pwmr, gpio pwmc and gpio pwmTone change the duty cycle and frequency. The catch: the wiringOP that came preinstalled on the early images (v1.0.2) can’t do hardware PWM. Build the latest wiringOP from Orange Pi’s GitHub first (the next branch).
Note: Never power a fan, a motor, or a buzzer straight from a PWM pin. A GPIO can only switch a logic signal (6mA max on the H616). Drive the load through a MOSFET or a motor driver, and power it from the 5v pins.
There are so many things that we can control with the Orange Pi Zero 3 PWM pins, which include: LED dimming (through a transistor), DC motor speed (through a driver), servo motors, fan speed on a 4-pin PWM fan, buzzers and tone generation, and much more.
Orange Pi Zero 3 Debug UART Pins
The Orange Pi Zero 3’s Linux console is on a separate 3-pin debug UART header at the board edge, next to the 26-pin header. It’s the H618’s UART0 (PH0/PH1) at 3.3v levels, and it runs at 115200 baud, 8N1.
| Debug Pin | Signal | SoC Pin | Connect To |
|---|---|---|---|
| 1 (corner) | GND | – | Adapter GND |
| 2 | RX (board input) | PH1, UART0_RX | Adapter TX |
| 3 | TX (board output) | PH0, UART0_TX | Adapter RX |
You need a 3.3v USB-to-TTL adapter (CP2102, CH340, FT232R): there’s no USB serial on the board. Open it with picocom -b 115200 /dev/ttyUSB0 on Linux, or PuTTY at 115200 on Windows. It shows the bootloader and kernel messages, which is the fastest way to see why an overlay failed or why the board won’t boot. It’s the kernel console, so it isn’t meant for talking to a 3D printer’s controller board or another microcontroller: use UART5 on pins 8 and 10 for that.
Orange Pi Zero 3 On-Board Features
Besides its two headers, the Orange Pi Zero 3 has a few on-board features you’ll meet when you wire and debug it. There are no buttons at all: no reset, no power, and no boot key, so you power-cycle the board to reset it.
| Feature | Where / GPIO | What It Does |
|---|---|---|
| Red LED (PWR) | PC12 (Linux 76), active high | On during u-boot, off once Linux runs; software-controlled (/sys/class/leds/). |
| Green LED (STATUS) | PC13 (Linux 77), active high | Flashes a heartbeat in Linux; software-controlled. |
| 16MB SPI NOR flash | SPI0 (PC0, PC2–PC4), not on the header | Holds a small factory Linux that blinks both LEDs when there’s no microSD card; can also hold a bootloader. |
| Debug UART | 3 pins at the board edge | Linux console at 115200 baud (see above). |
| USB-C | USB0 (OTG) | Power input; its data lines go to the H618’s USB0 (OTG) port, the port Allwinner’s USB boot (FEL) mode uses. |
| USB-A | USB1, SY6280 power switch | USB 2.0 host port with switched, current-limited VBUS. |
| Micro-HDMI | Next to USB-C | Up to 4K. A wide micro-HDMI adapter can block the USB-C plug next to it, so use a slim cable. |
| Wi-Fi / Bluetooth | AW859A module + “ANT” connector | Wi-Fi 5 and Bluetooth 5.0; fit the antenna before you use them. |
Power a new board with no microSD card and both LEDs light up: that’s the factory mini Linux in the SPI flash, a quick way to check the board works before you flash a card. To turn the green LED into an “I’m alive” light for your own program, set its trigger to none in /sys/class/leds/ and write 1 or 0 to its brightness.
Getting Started With Orange Pi Zero 3 GPIO
Getting the Orange Pi Zero 3’s pins working takes three steps: install an OS, enable the overlays you need, and pick a GPIO library.
- Install an OS: flash Orange Pi OS (Debian or Ubuntu based), Armbian, DietPi, or another image to a microSD card. Orange Pi’s own images ship wiringOP and the overlay names used in this guide, so they’re the easiest start for GPIO work.
- Enable the interfaces: on Orange Pi OS, run sudo orangepi-config → System → Hardware, tick the overlays, then save and reboot. It writes them to the overlays= line of /boot/orangepiEnv.txt. On Armbian, use armbian-config or the overlays= line of /boot/armbianEnv.txt.
- Pick a library: libgpiod for C/C++ and Python (gpiochip0 + Linux number), wiringOP for Arduino-style C code and gpio readall, or wiringOP-Python. Use the Linux device nodes ( /dev/ttyS*, /dev/i2c-*, /dev/spidev1.1, /sys/class/pwm) for the buses.
| Interface | Orange Pi OS Overlay | Orange Pi OS Device | Armbian / Mainline |
|---|---|---|---|
| GPIO | – (always on) | /dev/gpiochip0, gpio readall | /dev/gpiochip0 |
| I2C3 (pins 3/5) | ph-i2c3 | /dev/i2c-3 | i2c3-ph → /dev/i2c-2 |
| UART5 (pins 8/10) | ph-uart5 | /dev/ttyS5 (ttyAS5 on Linux 5.4) | uart5 → /dev/ttyS1 |
| SPI1 (CS1 pin 24) | spi1-cs1-spidev | /dev/spidev1.1 | SPI1 overlay with a spidev on CS1 → /dev/spidev1.1 |
| PWM1/PWM2 (pins 10/8) | ph-pwm12 | /sys/class/pwm/pwmchip0 | No PWM overlay enabled by default |
| PWM3/PWM4 (debug pins) | ph-pwm34 + disable-uart0 | /sys/class/pwm/pwmchip0 | – |
On Armbian: the overlay names have changed between releases, so a name copied from an old guide (an -ph style name that no longer exists, for example) can fail without a clear message. Users report this most often with the UART overlays. List the names your image really ships with ls /boot/dtb/allwinner/overlay/, and check the boot log on the debug UART if a device node doesn’t appear.
Note: Some overlays share pins, and only one of each pair can work: ph-uart5 vs ph-pwm12 (pins 8/10, also I2C2), I2C3 vs SPI1 CS0 and UART2 (pin 3), and SPI1 vs I2C4 and UART2 (pins 19/21/23). After an overlay claims its pins, don’t use them as plain GPIOs.
Orange Pi Zero 3 Common Problems & Fixes
Why is there no /dev/i2c-3 on Armbian? Armbian and other mainline-kernel images number the 26-pin I2C3 bus /dev/i2c-2 (overlay i2c3-ph), and UART5 /dev/ttyS1. Orange Pi OS uses /dev/i2c-3 and /dev/ttyS5. Check ls /dev/i2c-* /dev/ttyS* and use the number your image gives you.
Why doesn’t hardware PWM work? Three usual causes: the wiringOP preinstalled on early images (v1.0.2) can’t do hardware PWM, so build the latest one from Orange Pi’s GitHub; ph-uart5 is still enabled and owns pins 8/10, so turn it off and enable ph-pwm12; or, on Armbian, no PWM overlay is enabled, so /sys/class/pwm is empty.
Why do pins 16 and 18 (or 3 and 5) always read 1? They have 2kΩ pull-ups on the board, so they idle high and a pull-down setting can’t change that. Use them as active-low inputs (a button to GND), or pick pins 12, 15, 22, or 26 when you need a pin that can be pulled down.
Can I connect my 3D printer’s controller board to the debug UART? No. The 3-pin header is the Linux console, and kernel messages would land on your printer’s serial line. Enable ph-uart5 and use pins 8 (TX) and 10 (RX) instead.
The board keeps restarting during boot, or gets stuck on startup. Why? Orange Pi’s manual blames most of these on the power supply: use a 5v / 2A or 3A supply and a short, good USB-C cable. A worn or slow microSD card is the next suspect. The debug UART shows exactly where the boot stops.
My overlay doesn’t show up in /dev. What’s wrong? Check the spelling on the single overlays= line, that two overlays don’t claim the same pin (UART5 and PWM1/PWM2, for example), that you used the overlay name of your OS (Orange Pi OS and Armbian differ), and reboot.
Will a 5v sensor or relay module work on the GPIOs? Not directly. The pins are 3.3v only and aren’t 5v tolerant. Use a level shifter for 5v signals, and a transistor or a relay module with its own driver for loads.
Orange Pi Zero 3 vs Orange Pi Zero 2W, Orange Pi Zero and Raspberry Pi Zero 2 W
The Orange Pi Zero 3 and the Orange Pi Zero 2W share the same H618 chip, but the Zero 2W swaps the 26-pin header and Ethernet for a Raspberry Pi Zero-shaped board with a full 40-pin header. The original Orange Pi Zero has the same 26-pin + 13-pin layout as the Zero 3 with a much older chip. Don’t confuse any of them with the new Orange Pi Zero 3W, a different board built around the Allwinner A733.
| Feature | Orange Pi Zero 3 | Orange Pi Zero 2W | Orange Pi Zero | Raspberry Pi Zero 2 W |
|---|---|---|---|---|
| SoC / CPU | Allwinner H618, 4x A53 @ 1.5GHz | Allwinner H618, 4x A53 @ 1.5GHz | Allwinner H2+ (or H3), 4x A7 | RP3A0 (BCM2710A1), 4x A53 @ 1GHz |
| RAM | 1/1.5/2/4GB LPDDR4 | 1/1.5/2/4GB LPDDR4 | 256MB / 512MB DDR3 | 512MB LPDDR2 |
| GPIO header | 26-pin (17 GPIOs) + 13-pin | 40-pin + 24-pin FPC | 26-pin + 13-pin | 40-pin (28 GPIOs) |
| Ethernet | Gigabit | None (100M on the FPC expansion board) | 100M | None |
| Wireless | Wi-Fi 5 + Bluetooth 5.0 | Wi-Fi 5 + Bluetooth 5.0 | Wi-Fi 4 (XR819) | Wi-Fi 4 (2.4GHz) + Bluetooth 4.2 |
| Video | Micro-HDMI (4K) | Mini-HDMI (4K) | None (TV-out on the 13-pin) | Mini-HDMI |
| Power / USB | USB-C power + 1x USB-A | 2x USB-C | Micro-USB power + 1x USB-A | Micro-USB power + micro-USB OTG |
| Size | 50 x 55mm | 65 x 30mm | 48 x 46mm | 65 x 30mm |
Pick the Orange Pi Zero 3 when you want Gigabit Ethernet and up to 4GB of RAM in a tiny board for a server, a 3D-printer host, or a network gadget, and 17 GPIOs are enough. Pick the Orange Pi Zero 2W when you need a 40-pin header and the Pi Zero shape, and the Raspberry Pi Zero 2 W for the best software support and HAT ecosystem. The original Orange Pi Zero only makes sense if you already have one.
Orange Pi Zero 3 Pin Details
Here is every pin of the Orange Pi Zero 3 26-pin header in physical order, with its Allwinner name, Linux GPIO number, wiringOP number, functions, Orange Pi OS overlay, and the circuit the board wires to it. Pin 1 is the corner next to the mounting hole; odd pins are on the outer row along the board edge, and even pins are on the inner row.
Click to expand the full pin table (26 pins)
| Pin | Name | Linux # | wPi | Functions | Overlay | On-Board Circuit | Description |
|---|---|---|---|---|---|---|---|
| 1 | 3.3V | – | – | 3.3v power | – | VCC3V3-EXT | 3.3v output from the board’s 3.3v rail; keep the load small (sensors, modules). |
| 2 | 5V | – | – | 5v power | – | VCC-5V = USB-C VBUS | The USB-C input’s 5v, with no fuse: a 5v output, or a 5v input to power the board. |
| 3 | PH5 | 229 | 0 | TWI3_SDA, UART2_TX, SPI1_CS0, H_I2S3_MCLK | ph-i2c3 | 2kΩ pull-up (R31) | I2C3 data (the main I2C pin); idles high because of its 2kΩ pull-up. |
| 4 | 5V | – | – | 5v power | – | VCC-5V = USB-C VBUS | Second 5v pin, the same net as pin 2. |
| 5 | PH4 | 228 | 1 | TWI3_SCK, SPDIF_OUT | ph-i2c3 | 2kΩ pull-up (R30) | I2C3 clock; idles high because of its 2kΩ pull-up. |
| 6 | GND | – | – | Ground | – | GND | Ground. |
| 7 | PC9 | 73 | 2 | GPIO, SDC2_D4, NAND_DQ6 | – | PMU IRQ via R42 (0Ω) | General-purpose pin that the schematic also ties to the AXP313A IRQ output; safest as an input. |
| 8 | PH2 | 226 | 3 | UART5_TX, PWM2, TWI2_SCK, SPDIF_CLK | ph-uart5 / ph-pwm12 | – | UART5 transmit or hardware PWM2. |
| 9 | GND | – | – | Ground | – | GND | Ground. |
| 10 | PH3 | 227 | 4 | UART5_RX, PWM1, TWI2_SDA, SPDIF_IN | ph-uart5 / ph-pwm12 | – | UART5 receive or hardware PWM1. |
| 11 | PC6 | 70 | 5 | GPIO, SDC2_CMD, NAND_RB0 (BOOT_SEL4 strap) | – | 10kΩ pull-up (R20) | General-purpose pin that is also a boot-select strap; it idles high, so don’t pull it low at power-up. |
| 12 | PC11 | 75 | 6 | GPIO, SDC2_D5, NAND_DQ4 | – | – | Plain general-purpose pin with nothing else attached; a good free GPIO. |
| 13 | PC5 | 69 | 7 | GPIO, SDC2_CLK, NAND_RE (BOOT_SEL3 strap) | – | 10kΩ pull-down (R19) | General-purpose pin that is also a boot-select strap; it idles low, so don’t pull it high at power-up. |
| 14 | GND | – | – | Ground | – | GND | Ground. |
| 15 | PC8 | 72 | 8 | GPIO, SDC2_D3, NAND_DQ7 | – | – | Plain general-purpose pin; a good free GPIO. |
| 16 | PC15 | 79 | 9 | GPIO, SDC2_D2, NAND_DQ1, SPI0_WP | – | 2kΩ pull-up (R28), net GPIO-SDA | General-purpose pin with a 2kΩ pull-up, so it idles high; with pin 18 it makes a software I2C pair. |
| 17 | 3.3V | – | – | 3.3v power | – | VCC3V3-EXT | Second 3.3v output, the same rail as pin 1. |
| 18 | PC14 | 78 | 10 | GPIO, SDC2_D6, NAND_DQ2 | – | 2kΩ pull-up (R29), net GPIO-SCK | General-purpose pin with a 2kΩ pull-up, so it idles high; the clock of the software I2C pair. |
| 19 | PH7 | 231 | 11 | SPI1_MOSI, UART2_RTS, TWI4_SDA, H_I2S3_LRCK | spi1-cs1-spidev | – | SPI1 MOSI (data out of the board). |
| 20 | GND | – | – | Ground | – | GND | Ground. |
| 21 | PH8 | 232 | 12 | SPI1_MISO, UART2_CTS, H_I2S3_DOUT0 | spi1-cs1-spidev | – | SPI1 MISO (data into the board). |
| 22 | PC7 | 71 | 13 | GPIO, SPI0_CS1, NAND_RB1 | – | – | General-purpose pin; SPI0_CS1 belongs to the on-board flash bus, so use it as a GPIO. |
| 23 | PH6 | 230 | 14 | SPI1_CLK, UART2_RX, TWI4_SCK, H_I2S3_BCLK | spi1-cs1-spidev | – | SPI1 clock. |
| 24 | PH9 | 233 | 15 | SPI1_CS1, H_I2S3_DIN0 | spi1-cs1-spidev | – | SPI1 chip select 1 (/dev/spidev1.1), the chip select Orange Pi’s overlay uses. |
| 25 | GND | – | – | Ground | – | GND | Ground. |
| 26 | PC10 | 74 | 16 | GPIO, SDC2_D0, NAND_DQ5 | – | – | Plain general-purpose pin; a good free GPIO. |
Wrap Up
To conclude this guide article, the Orange Pi Zero 3 is a very solid little single-board computer when you need Gigabit Ethernet, Wi-Fi 5, and up to 4GB of RAM in a 50 x 55mm board, with a compact 26-pin header for your hardware: 17 GPIOs, I2C3, UART5, SPI1, and two hardware PWM pins, plus four more GPIOs on the 13-pin header. Just remember the gotchas: every pin is 3.3v only, pins 3, 5, 16, and 18 idle high because of their 2kΩ pull-ups, pins 11 and 13 are boot straps, and the I2C and UART device names change between Orange Pi OS and Armbian.
I hope you’ve found this guide helpful for your Orange Pi Zero 3 project. For more boards, check out the Pinouts, Datasheets & Schematic Diagrams Library.