In this guide, you’ll find the Orange Pi One pinout diagram (the 40-pin GPIO header, with physical, Linux GPIO, and wiringOP numbers), its datasheet and schematic diagram, and every pin group explained with its default pins, the overlay that enables it, and the gotchas. Without further ado, let’s get right into it!
The Orange Pi One (often written Orange Pi 1) is a small (69 x 48mm) Linux board built around the Allwinner H3: a quad-core Cortex-A7 with 512MB or 1GB of DDR3, 10/100 Ethernet, HDMI, and no Wi-Fi. Its 40-pin header follows the Raspberry Pi layout, but the pins behind it are Allwinner pins, it’s 3.3v only, and it sits rotated 180° compared with a Pi. Don’t confuse it with the Orange Pi One Plus, which is a different board (Allwinner H6, Gigabit Ethernet) with a 26-pin header.
Orange Pi One Pinout Diagram
Here is a detailed Orange Pi One Pinout Diagram with colored labels and legends to help you easily identify the functionalities that each pin can perform. Each pin of the 40-pin GPIO header shows its physical pin number, the Allwinner H3 port name (PA12 style), the Linux GPIO number, the wiringOP (wPi) number, the UART, I2C, and SPI functions you can turn on with overlays, and the resistors fitted on the board. This Orange Pi One H3 GPIO pinout is the same on the 512MB and 1GB boards.
Read it from the grey strip in the middle: odd pins (1, 3, 5…) are the left column, which is the row along the board edge, and even pins (2, 4, 6…) are the right column, the inner row. On the board, pin 1 is at the end of the header next to the DC jack and the microSD slot, marked with a small ▲ on the silkscreen, and pins 39/40 are at the USB-A end. The small square next to a port name means the pin is 3.3v only, the brown “ON BOARD” boxes are the I2C pull-up resistors, and the numbered badges point to the notes at the bottom of the diagram.
Orange Pi One 40-Pin Header Pin Table
Click to expand the full pin table (40 pins)
| Pin | Name | Linux # | wPi | Functions |
|---|---|---|---|---|
| 1 | 3.3V | – | – | 3.3v power |
| 2 | 5V | – | – | 5v power |
| 3 | PA12 | 12 | 0 | I2C0_SDA, DI_RX |
| 4 | 5V | – | – | 5v power |
| 5 | PA11 | 11 | 1 | I2C0_SCL, DI_TX |
| 6 | GND | – | – | Ground |
| 7 | PA6 | 6 | 2 | GPIO (SIM_PWREN); no PWM on the H3 |
| 8 | PA13 | 13 | 3 | UART3_TX, SPI1_CS |
| 9 | GND | – | – | Ground |
| 10 | PA14 | 14 | 4 | UART3_RX, SPI1_CLK |
| 11 | PA1 | 1 | 5 | UART2_RX, JTAG_CK |
| 12 | PD14 | 110 | 6 | GPIO (1-Wire default pin) |
| 13 | PA0 | 0 | 7 | UART2_TX, JTAG_MS |
| 14 | GND | – | – | Ground |
| 15 | PA3 | 3 | 8 | UART2_CTS, JTAG_DI |
| 16 | PC4 | 68 | 9 | GPIO (NAND_CE0) |
| 17 | 3.3V | – | – | 3.3v power |
| 18 | PC7 | 71 | 10 | GPIO (NAND_RB1) |
| 19 | PC0 | 64 | 11 | SPI0_MOSI, NAND_WE |
| 20 | GND | – | – | Ground |
| 21 | PC1 | 65 | 12 | SPI0_MISO, NAND_ALE |
| 22 | PA2 | 2 | 13 | UART2_RTS, JTAG_DO |
| 23 | PC2 | 66 | 14 | SPI0_CLK, NAND_CLE |
| 24 | PC3 | 67 | 15 | SPI0_CS0, NAND_CE1 |
| 25 | GND | – | – | Ground |
| 26 | PA21 | 21 | 16 | GPIO (PCM0_DIN, SIM_VPPPP) |
| 27 | PA19 | 19 | 17 | I2C1_SDA, PCM0_CLK |
| 28 | PA18 | 18 | 18 | I2C1_SCL, PCM0_SYNC |
| 29 | PA7 | 7 | 19 | GPIO (SIM_CLK) |
| 30 | GND | – | – | Ground |
| 31 | PA8 | 8 | 20 | GPIO (SIM_DATA) |
| 32 | PG8 | 200 | 21 | UART1_RTS |
| 33 | PA9 | 9 | 22 | GPIO (SIM_RST) |
| 34 | GND | – | – | Ground |
| 35 | PA10 | 10 | 23 | GPIO (SIM_DET) |
| 36 | PG9 | 201 | 24 | UART1_CTS |
| 37 | PA20 | 20 | 25 | GPIO (PCM0_DOUT, SIM_VPPEN) |
| 38 | PG6 | 198 | 26 | UART1_TX |
| 39 | GND | – | – | Ground |
| 40 | PG7 | 199 | 27 | UART1_RX |
Orange Pi One vs Raspberry Pi GPIO Header (Rotated 180°)
The Orange Pi One’s 40 pins carry the same power and ground pins as a Raspberry Pi header, and the I2C (pins 3/5), UART (pins 8/10), and SPI (pins 19/21/23/24) buses sit in the same places. But the header is turned 180°: on a Raspberry Pi (and on the Orange Pi PC), the odd pins are the inner row, while on the Orange Pi One they’re on the board edge. Pin numbers still match pin for pin, so jumper wires counted by pin number work, but a Pi HAT or a keyed ribbon cable plugged in the right way round points away from the board instead of over it. Count from the ▲ on the silkscreen, never from the board corner you’re used to on a Pi.
Note: The Raspberry Pi’s BCM GPIO numbers don’t apply to the Orange Pi One. “GPIO17” in a Pi tutorial means physical pin 11, which is PA1 (Linux 1, wPi 5) here. Translate by physical pin number with the table above.
Buy an Orange Pi One: If you don’t have one yet, you can get the board from Amazon or from Orange Pi’s official store on AliExpress. Add a 5v / 2A power supply with the 4.0 x 1.7mm DC plug, because the micro-USB port can’t power this board.
Download Orange Pi One Pinout Diagram (Full Resolution)
The Orange Pi One 40-pin GPIO header pinout diagram (physical, Linux GPIO, and wiringOP numbers) in full resolution (5120 px), in one ZIP file.
Orange Pi One Datasheet
The Orange Pi One is built around the Allwinner H3 system-on-chip. Orange Pi doesn’t publish a separate board datasheet: the user manual holds the specs and the 40-pin tables, and the H3 datasheet holds the pin functions and electrical limits. Here are the official documents, which Orange Pi hosts on Google Drive and links from its Orange Pi One service and support page:
| Document | Version / Date | What You’ll Use It For | Link |
|---|---|---|---|
| Allwinner H3 Datasheet | Revision 1.2, 23 Apr 2015 (614 pages) | Pin multiplexing (Table 3-2: every function of every port and the reset pull states), absolute maximum ratings (Table 9-1), operating conditions | |
| Orange Pi One Schematic (ORANGE_PI-ONE-V1_1) | v1.1, Dec 2015 / Feb 2016 (15 sheets) | The 40-pin header, I2C pull-ups, LEDs, SW4 and the debug UART (sheet 15), the power circuits (sheet 7), the CPU pins (sheet 6) | |
| Orange Pi One User Manual | 2021 edition (127 pages) | Specs, the 40-pin table (3.19), gpio readall and wiringOP (3.20), the I2C, SPI, and UART overlays (3.21), LEDs (3.5), the debug UART (2.7), and the power button (3.26) | |
| Orange Pi One Product Page | Live | Hardware specification and Orange Pi’s pin picture | Web |
| wiringOP | GitHub (live) | Orange Pi’s GPIO library, the wPi pin map, and gpio readall | GitHub |
Which document do I need? The H3 datasheet for what each pin can do and its electrical limits, the schematic for what the board wires to each pin, and the user manual for the overlay lines and the device names. The manual’s spec table still says 512MB, while the product page and Orange Pi’s store now list a 1GB version too; the board, the header, and the pinout are the same on both.
Orange Pi One Schematic
Orange Pi publishes the full Orange Pi One schematic (v1.1, 15 sheets). The carousel below shows the three sheets that matter when you wire the board: the CPU sheet with every GPIO ball, the power sheet, and the “Ext Port” sheet with the 40-pin header, the LEDs, the button, and the debug port. Click a page to view it full screen.
Official source: the Orange Pi One schematic (PDF), ORANGE_PI-ONE-V1_1, from Orange Pi’s support page. Here’s what to look at:
- Power input (sheet 7): the 5v barrel jack J1 feeds the DCIN-5V net, and that net goes straight to header pins 2 and 4, with no fuse. The TVS diode footprint next to the jack (ESD1) is marked NC (not fitted), so there’s no reverse-polarity or over-voltage protection either. A 1N5819 Schottky diode (D36) then makes VCC-5V for the USB port, HDMI, and the smaller regulators. The micro-USB OTG port isn’t wired into this path at all, which is why it can’t power the board.
- No PMIC, just discrete regulators (sheet 7): an AMS1117-3.3 linear regulator makes the main 3.3v rail (VCC-IO, labelled 3.3v / 1A), switched on through the Q1 P-MOSFET. Header pins 1 and 17 (VCC3V3-EXT) hang off this rail, together with the SoC I/O, the Ethernet PHY, and the SD card. Two SY8008B bucks make the DRAM voltage and the 3.3v analog/RTC rail, and an SY8089A makes the 1.2v system rail.
- GPIO-switched CPU core voltage (sheet 7): a SY8113B buck, fed straight from DCIN-5V, powers the CPU cores. Its feedback divider is switched by the CPUX-VSET line from PL6 through the BSN20 MOSFET Q5, so the core runs at 1.1v or 1.3v. Linux picks the higher voltage for the faster clock steps. It’s a two-step regulator, not a real PMIC, which is part of why the H3 boards run warm.
- 40-pin header CON3 (sheet 15): every GPIO goes straight to the H3, with no level shifter and no series resistor. The only parts on the header lines are four 2kΩ pull-ups to VCC3V3-EXT: R151/R152 on TWI0 (pins 3/5) and R153/R154 on TWI1 (pins 27/28). The sheet labels pin 7 “PWM1”, but the H3 datasheet gives PA6 no PWM function.
- LEDs (sheet 15): PWR-LED (PL10) drives D7 and STATUS-LED (PA15) drives D8, both active high through 2kΩ resistors. The net labels call D7 “LED-R” and D8 “LED-G”, but Orange Pi’s manual and the mainline Linux device tree both say PL10 is the green LED and PA15 is the red one, and that’s what the board shows.
- Key (sheet 15): the side button SW4 sits on PL3 (the RECOVERY net) with a 47kΩ pull-up, active low. The UBOOT key drawn next to it isn’t fitted.
- Debug UART J3 (sheet 15): a 3-pin header with pin 1 = GND (square pad), pin 2 = RX (PA5, UART0 RX, through a BSS138 MOSFET level shifter with a 10kΩ pull-up), and pin 3 = TX (PA4, through a 0Ω resistor). It’s UART0, the Linux console, at 3.3v.
Note: Skip sheet 3 (POWER TREE) and sheet 4 (GPIO ASSIGNMENT) of the PDF: they still list regulators and pin uses from an earlier Orange Pi design (an RT9050, a SY8106A, a Wi-Fi supply) that the Orange Pi One doesn’t have. The POWER sheet (7) and the Ext Port sheet (15) show what’s really on the board.
Orange Pi One Specs
Here are the Orange Pi One specifications, with the board-level details that matter when you wire it:

Get an Orange Pi One: the official Orange Pi board is the one I recommend. Grab it from Amazon or AliExpress.
| Feature | Orange Pi One |
|---|---|
| SoC | Allwinner H3, 4x Cortex-A7, rated up to 1.2GHz (mainline Linux tops out at 1.008GHz unless you add a higher CPU clock overlay) |
| GPU | Mali-400 MP2 |
| RAM | 512MB or 1GB DDR3 (shared with the GPU) |
| Storage | microSD slot only (Orange Pi lists up to 32GB), no eMMC, no SPI flash |
| Ethernet | 10/100Mbps RJ45 (the H3’s internal PHY) |
| Wireless | None (no Wi-Fi, no Bluetooth) |
| USB | 1x USB 2.0 Type-A host, 1x micro-USB OTG (data only, not a power input) |
| Video | HDMI out; CSI camera connector on the bottom side |
| GPIO header | 40-pin (2×20, 2.54mm, fitted), 28 GPIOs, 3.3v logic, not 5v tolerant |
| Other headers | 3-pin debug UART J3 (UART0, 115200 baud) |
| Keys / LEDs | SW4 power key (PL3); green LED (PL10), red LED (PA15) |
| Power input | 5v / 2A through the DC barrel jack (4.0 x 1.7mm), or 5v into header pins 2/4 |
| 3.3v regulator | AMS1117-3.3 linear regulator (3.3v / 1A on the schematic), shared with the whole board |
| Boot | microSD only |
| Size / weight | 69 x 48mm, 27g |
Orange Pi One Specifications Summary
- The Orange Pi One has a 40-pin GPIO header in the Raspberry Pi layout, rotated 180° (odd pins on the board edge), plus a separate 3-pin debug UART.
- It has 28 GPIOs on the header, all 3.3v and not 5v tolerant, wired straight to the H3. The H3’s absolute maximum is ±40mA per pin, and Allwinner publishes no total budget, so keep each pin to a few mA.
- Pins 3, 5, 27, and 28 have 2kΩ pull-ups to 3.3v (I2C0 and I2C1), so they idle high.
- Power pins: 5v on pins 2 and 4 (straight from the DC jack), 3.3v on pins 1 and 17, and 8 GND pins (6, 9, 14, 20, 25, 30, 34, 39).
- There are no analog inputs: add an external I2C or SPI ADC.
- UART: 3 on the header. UART3 is on pin 8 (TX) and pin 10 (RX), UART2 on 13/11, and UART1 on 38/40.
- I2C: 2 buses, I2C0 (pins 3/5) and I2C1 (pins 27/28).
- SPI: SPI0 on pins 19, 21, 23, and 24 (CS0) → /dev/spidev0.0.
- PWM: no hardware PWM on the 40-pin header. The H3’s only PWM output (PA5) is the debug UART’s RX pin.
- Orange Pi’s Linux 5.4 images ship with I2C, SPI, and UART off: add them to overlays= and reboot.
- Power: 5v / 2A through the DC jack only. The micro-USB port can’t power the board.
- It boots from microSD only.
Orange Pi One H3 Peripherals vs the 40-Pin Header
| Peripheral | On the Header | Overlay | Linux Device / Notes |
|---|---|---|---|
| GPIO | 28 pins | Always available | /dev/gpiochip0 (PA, PC, PD, PG); edge interrupts on PA and PG pins only |
| UART | 3: UART1, UART2, UART3 | uart1, uart2, uart3 | /dev/ttyS1, ttyS2, ttyS3; RTS/CTS on UART1 and UART2 only |
| I2C | 2: I2C0, I2C1 | i2c0, i2c1 | /dev/i2c-0, /dev/i2c-1 (2kΩ pull-ups on the board) |
| SPI | 1: SPI0 (CS0) | spi-spidev + param_spidev_spi_bus=0 | /dev/spidev0.0; SPI1 can’t be used (PA15 is the red LED) |
| PWM | None on the header | pwm (PA5 only) | PWM0 is the debug UART’s RX pin, so you lose the console |
| 1-Wire | Pin 12 (PD14) by default | w1-gpio | /sys/bus/w1/devices; move it with param_w1_pin |
| I2S / PCM | Partial (PCM0 pins 26, 27, 28, 37) | – | Pins 27/28 are I2C1 with pull-ups, so I2S isn’t practical |
| ADC | None | – | The H3 has no general-purpose ADC |
| Debug UART (UART0) | 3-pin J3 header | Always on | /dev/ttyS0, the Linux console |
Orange Pi One Quick Pin Selection Guide
| Use Case | Recommended Pins | Why |
|---|---|---|
| Serial port / UART | Pins 8 (TX) / 10 (RX), UART3 | The Raspberry Pi’s UART position, /dev/ttyS3 |
| UART with RTS/CTS | Pins 38 / 40 + 32 / 36, UART1 | /dev/ttyS1, the only full UART on the header that leaves the JTAG pins alone |
| I2C sensors and displays | Pins 3 (SDA) / 5 (SCL), I2C0 | 2kΩ pull-ups on the board, /dev/i2c-0 |
| A second I2C bus | Pins 27 (SDA) / 28 (SCL), I2C1 | Pull-ups on the board too, /dev/i2c-1 |
| SPI device | Pins 19, 21, 23 + CS0 pin 24 | SPI0, the only usable SPI bus |
| 1-Wire (DS18B20) | Pin 12 (PD14), or pin 7 with param_w1_pin=PA6 | The w1-gpio overlay default; add a 4.7kΩ pull-up |
| LED or relay | Pin 7 (PA6), 29, 31, 33, 35, or 37 | Free PA pins with no pull-up and no bus function |
| Button with an interrupt | Pin 7, 11, 13, 15, 22, 26, 29, 31, 33, 35, or 37 | Only ports PA and PG have edge interrupts |
| Hardware PWM | PA5 on the debug header (middle pin) | The only PWM pin; costs you the serial console |
| Analog input | None on the board | Add an I2C or SPI ADC |
Orange Pi One Pins to Use With Caution
| Pin | Reason | What to Do |
|---|---|---|
| Pins 3, 5, 27, 28 | 2kΩ pull-ups to 3.3v on the board | They idle high as GPIOs; use them for active-low signals or leave them for I2C |
| Pin 7 (PA6) | Labelled PWM1, but the H3 has no PWM on PA6 | Use it as a plain GPIO |
| Pins 16, 18, 24 (PC4, PC7, PC3) | Internal pull-up on at reset, no interrupts on port C | Expect them to read high until your code sets them |
| Pin 12 (PD14) | Default pin of the w1-gpio overlay, no interrupts on port D | Fine as an output; pick a PA pin for interrupt inputs |
| Pins 11, 13, 15, 22 | Also the H3’s JTAG pins (and UART2) | Fine as GPIO or UART2 in Linux |
| Pins 2, 4 (5v) | DC-jack 5v, no fuse and no reverse protection | Never feed them and the DC jack at the same time; check polarity twice |
| Pins 1, 17 (3.3v) | Shared with the board’s AMS1117 3.3v rail | Light loads only |
| Any GPIO | Not 5v tolerant | Level-shift 5v signals |
Orange Pi One Pins Functions
Only 28 of the 40 pins of the Orange Pi One GPIO 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, 8x GND)
- 28x GPIO Pins (with 3 numbering systems)
- Analog Input Pins (none)
- 3x UART
- 2x I2C Buses
- 1x SPI Bus (SPI0)
- PWM Pins (only PA5, on the debug header)
- 1-Wire Pin (pin 12 by default)
- JTAG and Other Functions
- Debug UART Pins (separate 3-pin header)
Most pins can do two jobs, and each job is turned on with its own overlay in the boot environment file: /boot/orangepiEnv.txt on Orange Pi’s own images and /boot/armbianEnv.txt on Armbian. Both use the same overlay names on this board (Orange Pi’s Linux 5.4 images are built on Armbian). Pick the 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 One Power Pins
The Orange Pi One 40-pin header has two 5v pins (2 and 4), two 3.3v pins (1 and 17), and eight GND pins (6, 9, 14, 20, 25, 30, 34, and 39). They’re highlighted in red and black in the pinout diagram.

| Pin | Name | Function | Notes |
|---|---|---|---|
| 1, 17 | 3.3V | 3.3v output | VCC3V3-EXT, from the board’s AMS1117 3.3v rail (shared with the SoC I/O, Ethernet PHY, and SD card) |
| 2, 4 | 5V | 5v output or input | DCIN-5V, wired straight to the DC jack: no fuse, no diode, no reverse protection |
| 6, 9, 14, 20, 25, 30, 34, 39 | GND | Ground | Common ground for everything you connect |
Powering the Orange Pi One: the board takes 5v / 2A through its DC barrel jack (4.0 x 1.7mm, centre positive). The micro-USB OTG port can’t power it: it isn’t connected to the power input at all, which Orange Pi’s manual says plainly and which catches out everyone who tries a phone charger first. A USB-to-DC barrel cable from a good 5v / 2A USB supply is the easy fix.
5V pins: pins 2 and 4 are the DC jack’s 5v net itself, so they give you whatever your supply delivers, before the board’s 1N5819 diode. You can power 5v modules from them. They also work the other way: a regulated 5v supply on pin 2 or 4 (and GND on pin 6) runs the board without the barrel jack. Orange Pi doesn’t document that, and there’s nothing on this net to protect the board, so a reversed connector or a supply above 5.5v goes straight into the CPU regulator.
3.3V pins: a 3.3v output for sensors and logic chips. The AMS1117 behind it is a linear regulator rated around 1A, and it already powers the SoC’s I/O, the Ethernet PHY, and the SD card, so keep the header load to a few hundred mA at most and give motors, LED strips, and other heavy loads their own supply.
Note: Weak power is the number one cause of “random reboots”, SD card corruption, and boards that won’t boot on the H3 Orange Pis. Use a real 5v / 2A supply with a short, thick cable, add a heatsink on the H3, and never feed the 5v pins while the DC jack is plugged in. If you power the Orange Pi One from pins 2/4, double-check the polarity before you switch on.
Never forget to connect the ground of every circuit to the Orange Pi One’s GND (common ground). External sensors and modules need the same ground line as the board to communicate with it properly.
Orange Pi One GPIO Pins
The Orange Pi One has 28 GPIO pins on its 40-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, or SPI) with an overlay.

| Parameter | Orange Pi One GPIO |
|---|---|
| Logic level | 3.3v (H3 VCC-IO, 3.0v to 3.6v) |
| 5v tolerant | No, on every pin |
| Absolute max current | ±40mA per pin (H3 datasheet Table 9-1), no published total; keep it to a few mA |
| Wiring | Directly to the H3 (no level shifters, no series resistors) |
| On-board pull-ups | 2kΩ to 3.3v on pins 3, 5, 27, and 28 |
| Reset state | Floating, except PC3, PC4, and PC7 (pins 24, 16, 18), which start with the internal pull-up on |
| Internal pull-up / pull-down | Yes, on every GPIO, set from software |
| Interrupts | Edge events on the PA and PG pins only (not on PC0–PC7 or PD14) |
| Free pins (no bus function) | Pins 7, 12, 16, 18, 26, 29, 31, 33, 35, 37 |
Because nothing sits between the header and the SoC, the Orange Pi One GPIOs behave like a microcontroller’s pins: the internal pull resistors work, and so do outputs that drive an LED through a 330Ω–1kΩ resistor. The exceptions are the four I2C pins (3, 5, 27, 28): their 2kΩ pull-ups win against any internal pull-down, so they read high when nothing drives them. And if you need an interrupt (a button, a coin counter, an encoder), use a pin on port PA or PG, because ports PC and PD have no external interrupt lines on the H3.
Orange Pi One GPIO Numbering: Physical vs Linux GPIO vs wiringOP
Every GPIO on the Orange Pi One has four names, and each tool wants a different one. Take physical pin 7 as an example:
| Numbering | Pin 7 Is | Used By |
|---|---|---|
| Physical | 7 | Counting pins on the header (1–40) |
| Allwinner port name | PA6 | The schematic, the H3 datasheet, the device tree, overlay parameters (param_w1_pin=PA6) |
| Linux GPIO number | 6 | sysfs (/sys/class/gpio) and libgpiod, where it’s gpiochip0, line 6 |
| wiringOP (wPi) | 2 | wiringOP C functions and the gpio command |
The Linux number comes from the port name: bank × 32 + pin, where A = 0, B = 1, C = 2, D = 3, and so on. PA6 is 0 × 32 + 6 = 6, PC4 (pin 16) is 2 × 32 + 4 = 68, PD14 (pin 12) is 3 × 32 + 14 = 110, and PG9 (pin 36) is 6 × 32 + 9 = 201. The L port counts as bank 11, so the green LED’s PL10 is 362. In libgpiod, ports PA to PG are gpiochip0 and the line offset is the same Linux number; the PL port is its own controller ( gpiochip1), and no header pin uses it. Run gpiodetect once to confirm the chip names on your image.
Install wiringOP from Orange Pi’s GitHub (Orange Pi’s manual builds it the same way), then gpio readall prints every pin with its physical, wPi, and port numbers. The table header says OrangePiH3, which is normal: wiringOP uses one H3 map for the One, the PC, and their siblings.
|
1 2 3 4 5 |
git clone https://github.com/orangepi-xunlong/wiringOP cd wiringOP && sudo ./build clean && sudo ./build gpio readall # physical, wPi, port name and mode of every pin gpio mode 2 out # pin 7 (wPi 2) as an output gpio write 2 1 # pin 7 high |
Orange Pi One GPIO Code Example (C/C++ and Python)
Here’s the same job in both languages: blink an LED on pin 7 (PA6), a free pin with no pull-up. Wire the LED’s anode to pin 7 through a 330Ω resistor, and its cathode to GND on pin 9. Both use the libgpiod v2 API (gpiochip0, line 6): install libgpiod-dev on a release that packages v2 (a current Armbian, Debian 13, or Ubuntu 24.04) and pip install gpiod for the Python bindings.
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 7 (PA6) with libgpiod v2 // Build: gcc blink.c -o blink -lgpiod #include <gpiod.h> #include <unistd.h> int main(void) { unsigned int line = 6; /* PA6 = bank A (0) x 32 + 6 */ 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 7 (PA6) with the gpiod v2 bindings # Run: sudo python3 blink.py import time import gpiod from gpiod.line import Direction, Value LINE = 6 # PA6 = gpiochip0, line 6 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) |
Note: libgpiod v2 needs a Linux 5.10 or newer kernel. Orange Pi’s own Orange Pi One images run Linux 5.4 (and the older 3.4), so on those use the libgpiod v1 tools and API, or wiringOP: in C that’s wiringPiSetup(), pinMode(2, OUTPUT), and digitalWrite(2, HIGH) for pin 7. A current Armbian image runs the code above as it is.
Note: The Orange Pi One’s GPIOs are not 5v tolerant, and there’s nothing between the header and the SoC to protect them. 5v on a header pin can damage the H3 for good. To connect 5v logic (an Arduino’s TX pin, a 5v sensor output, a coin acceptor’s signal), use a level shifter, a resistor divider, or an optocoupler.
Orange Pi One Analog Input Pins (ADC)
The Orange Pi One has no analog input pins. The H3 has no general-purpose ADC on the header (its only analog inputs are the audio codec and the key-ADC, and neither reaches the 40 pins). To read a potentiometer or an analog sensor, add an external ADC such as an ADS1115 (16-bit, I2C) on pins 3/5, or an MCP3008 (10-bit, SPI) on SPI0. Power the ADC from 3.3v, so its digital lines stay at the board’s logic level.
Orange Pi One UART Pins
The Orange Pi One has 3 UARTs on its 40-pin header: UART3 on pin 8 (TX) and pin 10 (RX), UART2 on pin 13 (TX) and pin 11 (RX), and UART1 on pin 38 (TX) and pin 40 (RX). Each one is off by default and is turned on with its overlay.
Orange Pi One Default UART Pins: PA13 (UART3 TX, pin 8) and PA14 (UART3 RX, pin 10), the same position as the Raspberry Pi’s serial port.

| UART | TX | RX | RTS / CTS | Overlay | Linux Device |
|---|---|---|---|---|---|
| UART1 | Pin 38 (PG6) | Pin 40 (PG7) | Pin 32 (PG8) / pin 36 (PG9) | uart1 | /dev/ttyS1 |
| UART2 | Pin 13 (PA0) | Pin 11 (PA1) | Pin 22 (PA2) / pin 15 (PA3) | uart2 | /dev/ttyS2 |
| UART3 | Pin 8 (PA13) | Pin 10 (PA14) | Not available (PA15/PA16 are used on the board) | uart3 | /dev/ttyS3 |
UART3 sits where the Raspberry Pi has its serial port, so it’s the natural first choice for wiring that came from a Pi project. UART1 is the only one with usable flow control and no shared function, and UART2 shares its pins with JTAG. RTS/CTS stay off unless you add param_uart1_rtscts=1 or param_uart2_rtscts=1. Armbian’s UART3 flow-control option would use PA15 and PA16, but on the Orange Pi One PA15 drives the red LED and PA16 is the audio mute line, so UART3 is TX/RX only. The Linux console (UART0) is on the separate 3-pin debug header, covered below.
|
1 2 3 4 5 |
# /boot/orangepiEnv.txt (Armbian: /boot/armbianEnv.txt), one overlays= line, space-separated overlays=uart1 uart3 # after a reboot: ls /dev/ttyS* |
Note: The UART naming: on the One, pins 8/10 are UART3 (/dev/ttyS3), not UART1 as on many other boards. Users regularly enable uart1, wire to pins 8/10, and see nothing. Match the overlay to the pins, cross the lines to your device (board TX to device RX), connect GND, and keep the device at 3.3v levels.
There are so many modules that we can interface with the Orange Pi One using the UART, which include: GPS receivers, USB-to-serial adapters, RS-485 transceivers (Modbus), LoRa and cellular modems, fingerprint sensors, microcontroller boards, and much more.
Orange Pi One I2C Pins
The Orange Pi One has 2 I2C buses on its header: I2C0 on pin 3 (SDA) and pin 5 (SCL), and I2C1 on pin 27 (SDA) and pin 28 (SCL). Both have 2kΩ pull-ups to 3.3v on the board, and each appears as /dev/i2c-N once its overlay is on.
Orange Pi One Default I2C Pins: PA12 (I2C0 SDA, pin 3) and PA11 (I2C0 SCL, pin 5), the same position as the main I2C bus on a Raspberry Pi.

| I2C Bus | SDA | SCL | Pull-Ups | Overlay | Linux Device |
|---|---|---|---|---|---|
| I2C0 | Pin 3 (PA12) | Pin 5 (PA11) | R151 / R152, 2kΩ | i2c0 | /dev/i2c-0 |
| I2C1 | Pin 27 (PA19) | Pin 28 (PA18) | R153 / R154, 2kΩ | i2c1 | /dev/i2c-1 |
Allwinner calls its I2C controllers TWI (Two-Wire Interface), which is why the schematic says TWI0-SDA. The board’s 2kΩ pull-ups are fairly strong, so you don’t need extra ones; a module with its own 10kΩ pull-ups works fine alongside them. Orange Pi’s manual maps the buses exactly this way (i2c0 → /dev/i2c-0, i2c1 → /dev/i2c-1), even though ls /dev/i2c* may list a few more nodes (HDMI and internal buses).
|
1 2 3 4 5 6 |
# /boot/orangepiEnv.txt (Armbian: /boot/armbianEnv.txt) overlays=i2c0 i2c1 # after a reboot: sudo apt install i2c-tools sudo i2cdetect -y 0 # I2C0, pins 3/5 (-y 1 for I2C1, pins 27/28) |
Note: Many I2C modules sold for Arduino pull SDA and SCL up to 5v. That puts 5v on header pins with no protection behind them. 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 One using the I2C bus, which include: RTC clocks (DS3231), OLED displays (SSD1306), character LCDs with a PCF8574 backpack, temperature and humidity sensors (BME280, SHT31), IMUs (MPU6050), ADCs (ADS1115), GPIO expanders (MCP23017), PWM drivers (PCA9685), and much more.
Orange Pi One SPI Pins
The Orange Pi One has 1 usable SPI bus on its header: SPI0 on pins 19 (MOSI), 21 (MISO), and 23 (CLK), with chip select CS0 on pin 24. Turn it on with the spi-spidev overlay and param_spidev_spi_bus=0, and it appears as /dev/spidev0.0.
Orange Pi One Default SPI0 Pins: PC0 (MOSI, pin 19), PC1 (MISO, pin 21), PC2 (CLK, pin 23), and PC3 (CS0, pin 24).

| Signal | Pin | Port | Linux # | wPi |
|---|---|---|---|---|
| SPI0_MOSI | 19 | PC0 | 64 | 11 |
| SPI0_MISO | 21 | PC1 | 65 | 12 |
| SPI0_CLK | 23 | PC2 | 66 | 14 |
| SPI0_CS0 | 24 | PC3 | 67 | 15 |
Unlike the Orange Pi Zero, the Orange Pi One has no SPI flash, so SPI0 is free for the header. SPI1 isn’t usable on this board: its MOSI and MISO (PA15, PA16) drive the red LED and the audio mute line, and only its CS and CLK reach pins 8 and 10 (where they share the pins with UART3). Pin 26 isn’t a second chip select like on a Raspberry Pi (it’s a plain GPIO, PA21), so for a second SPI device, toggle any free GPIO as its chip select. Test the bus with a jumper from pin 19 to pin 21 and spidev_test -v -D /dev/spidev0.0 (it’s in wiringOP’s examples folder).
|
1 2 3 4 5 6 |
# /boot/orangepiEnv.txt (Armbian: /boot/armbianEnv.txt) overlays=spi-spidev param_spidev_spi_bus=0 # after a reboot: ls /dev/spidev* # /dev/spidev0.0 |
There are so many modules that we can interface with the Orange Pi One using the SPI bus, which include: TFT and e-paper displays (the 3.5-inch SPI LCDs too), MCP3008 ADCs, MCP2515 CAN controllers, LoRa radios (SX127x), RFID readers (RC522), W5500 Ethernet modules, and much more.
Orange Pi One PWM Pins
The Orange Pi One has no hardware PWM on its 40-pin header. The H3’s only PWM output, PWM0 on PA5, is the RX pin of the debug UART (the middle pin of the 3-pin J3 header), so using it costs you the serial console.
Note: Pin 7 is a GPIO, not PWM1: the schematic labels pin 7 (PA6) “PWM1”, but the Allwinner H3 datasheet (Table 3-2) gives PA6 no PWM function, and neither does the Linux pin driver. Users who tried it report no signal on the pin. Treat pin 7 as a plain GPIO.
| Channel | Pin | Port | Overlay | Cost |
|---|---|---|---|---|
| PWM0 | Debug header J3, middle pin (RX) | PA5 | pwm | Disables UART0 and the serial console on ttyS0 |
To use it, add the pwm overlay. The console moves off UART0, so log in over SSH instead. The channel shows up as /sys/class/pwm/pwmchip0/pwm0. If you measure only a few hundred mV on PA5, the pin isn’t muxed to PWM yet: check that the overlay loaded in the boot log. A 50Hz signal with a 1.5ms pulse for a servo is:
|
1 2 3 4 5 |
# /boot/orangepiEnv.txt (Armbian: /boot/armbianEnv.txt): overlays=pwm (then reboot) echo 0 > /sys/class/pwm/pwmchip0/export echo 20000000 > /sys/class/pwm/pwmchip0/pwm0/period # 20ms = 50Hz echo 1500000 > /sys/class/pwm/pwmchip0/pwm0/duty_cycle # 1.5ms echo 1 > /sys/class/pwm/pwmchip0/pwm0/enable |
Tip: For more PWM channels, or to keep the console, use a PCA9685 16-channel PWM driver on I2C0 (pins 3/5). For slow jobs like dimming an LED, software PWM on any GPIO (wiringOP’s softPwm) is fine, but it jitters too much for servos.
There are so many things that we can control with the Orange Pi One PWM output, which include: LED dimming (through a transistor), DC motor speed (through a driver), a servo motor, a buzzer, and much more.
Orange Pi One 1-Wire Pin (DS18B20)
The Orange Pi One’s 1-Wire bus is software-driven by the w1-gpio overlay, and its default pin is pin 12 (PD14), not pin 7 as on a Raspberry Pi. To use the Pi’s pin instead, add param_w1_pin=PA6. Either way, fit a 4.7kΩ pull-up from the data line to 3.3v (pin 1 or 17).
|
1 2 3 4 5 6 |
# /boot/orangepiEnv.txt (Armbian: /boot/armbianEnv.txt) overlays=w1-gpio param_w1_pin=PA6 # optional: pin 7 instead of the default PD14 (pin 12) # after a reboot, with a DS18B20 on the bus: cat /sys/bus/w1/devices/28-*/temperature |
param_w1_pin_int_pullup=1 turns on the pin’s weak internal pull-up, which can work for one sensor on a short cable, but the external 4.7kΩ resistor is the reliable choice. If /sys/bus/w1/devices/ shows only the master and no 28-… sensor, check which pin the overlay used: wiring the sensor to pin 7 without the param_w1_pin line is the classic mistake.
Orange Pi One JTAG and Other Pin Functions
A few Orange Pi One pins carry extra H3 functions that you’ll see in the diagram’s OTHER column. None of them is needed for normal Linux work, but they explain the odd names in the datasheet and the schematic.

| Function | Pins | Notes |
|---|---|---|
| JTAG (CK, MS, DI, DO) | 11 (PA1), 13 (PA0), 15 (PA3), 22 (PA2) | The same four pins as UART2 with RTS/CTS; JTAG is for SoC bring-up, not for Linux users |
| NAND flash signals | 16, 18, 19, 21, 23, 24 (PC0–PC4, PC7) | The H3’s NAND controller pins; the board has no NAND, so they’re GPIOs and SPI0 |
| PCM0 / I2S | 26 (DIN), 27 (CLK), 28 (SYNC), 37 (DOUT) | All four lines reach the header, but CLK and SYNC carry the I2C1 pull-ups, so I2S isn’t practical |
| SIM card interface | 7, 29, 31, 33, 35 (PA6–PA10) | Smart-card signals of the H3; use these pins as plain GPIOs |
Orange Pi One Debug UART Pins
The Orange Pi One’s Linux console is on a separate 3-pin debug UART header (J3), not on the 40-pin header. It’s the H3’s UART0 at 3.3v, running at 115200 baud, 8N1.
| Debug Pin | Signal | SoC Pin | Connect To |
|---|---|---|---|
| 1 (square pad) | GND | – | Adapter GND |
| 2 (middle) | UART0 RX (board input, through a BSS138 level shifter) | PA5 | Adapter TX |
| 3 | UART0 TX (board output) | PA4 | Adapter RX |
Any 3.3v USB-UART adapter (CP2102, CH340, FT232R) works. Open it with picocom -b 115200 /dev/ttyUSB0 on Linux, or PuTTY at 115200 on Windows. It shows the U-Boot and kernel messages, which is the fastest way to see why an overlay failed or why the board won’t boot, and it gives you a login prompt on a headless board with no network yet. Leave the adapter’s VCC pin unconnected, and remember that the pwm overlay takes the RX pin away.
Orange Pi One On-Board Features
Besides the 40-pin header, the Orange Pi One has a few on-board features you’ll meet when you wire and debug it. The LEDs and the button are tied to GPIOs on the PL and PA ports, and none of them is on a header pin.
| Feature | Where / GPIO | What It Does |
|---|---|---|
| Green LED (D7) | PL10 (Linux 362), active high | Off during U-Boot, on once Linux runs (the power LED). Mainline Linux calls it orangepi:green:pwr. |
| Red LED (D8) | PA15 (Linux 15), active high | On during U-Boot, then off or flashing in Linux (the status LED). Mainline Linux calls it orangepi:red:status. |
| SW4 button | Side of the board by the DC jack, PL3 (Linux 355), active low, 47kΩ pull-up | Orange Pi calls it the power switch. On Orange Pi’s Linux 5.4 images a short press shuts the system down; to start again, unplug and replug the power. On Armbian it sends BTN_0 and does nothing by default. |
| Debug UART J3 | 3-pin header (GND, RX, TX) | Linux console at 115200 baud (see above). |
| Reset / boot buttons | None fitted | Power-cycle the board to reset it. There’s no FEL button either. |
| CSI connector | Bottom side, 24-pin FPC | Camera input for Orange Pi’s 2MP camera module, mainly supported on the old Linux 3.4 images. |
| micro-USB | USB OTG port | Data only: a USB device (gadget) or host port in Linux, never a power input. |
To use an LED as an “I’m alive” light for your own program, set its trigger to none and write 1 or 0 to its brightness file. Orange Pi’s Linux 3.4 images name them green_led and red_led instead, so run ls /sys/class/leds/ first.
|
1 2 |
echo none > /sys/class/leds/orangepi:red:status/trigger # the red LED on PA15 echo 1 > /sys/class/leds/orangepi:red:status/brightness |
Note: LED colours: the schematic’s net labels say the opposite (“LED-R” on PL10, “LED-G” on PA15), but Orange Pi’s manual, the mainline device tree, and the board itself agree: PL10 is green and PA15 is red. SW4 on Armbian: a tiny device tree overlay that sets linux,code = <116> (KEY_POWER) on the sw4 key node makes it a working power button there too.
Getting Started With Orange Pi One GPIO
Getting the Orange Pi One’s pins working takes three steps: install an OS, enable the overlays you need, and pick a GPIO library.
- Install an OS: flash an image to a microSD card (the board boots from microSD only). Orange Pi’s own Ubuntu and Debian images (Linux 5.4) follow the user manual step by step, while a current Armbian (or DietPi) image has a newer kernel that runs libgpiod v2. Log in over SSH or through the debug UART.
- Enable the interfaces: add the overlay names to the single overlays= line of the boot environment file (separated by spaces), plus any param_… lines they need, then reboot and check the /dev node. orangepi-config or armbian-config does the same from a menu.
- Pick a library: libgpiod for C/C++ and Python (gpiochip0 + Linux number), or wiringOP for Arduino-style C code and gpio readall. Use the Linux device nodes ( /dev/ttyS*, /dev/i2c-*, /dev/spidev0.0) for the buses.
| Interface | Overlay (orangepiEnv.txt / armbianEnv.txt) | Linux Device / Tool |
|---|---|---|
| GPIO | – (always on) | /dev/gpiochip0 (libgpiod), gpio readall (wiringOP) |
| UART1 (pins 38/40) | uart1 (param_uart1_rtscts=1 for pins 32/36) | /dev/ttyS1 |
| UART2 (pins 13/11) | uart2 (param_uart2_rtscts=1 for pins 22/15) | /dev/ttyS2 |
| UART3 (pins 8/10) | uart3 | /dev/ttyS3 (TX/RX only) |
| I2C0 (pins 3/5) | i2c0 | /dev/i2c-0 (i2cdetect -y 0) |
| I2C1 (pins 27/28) | i2c1 | /dev/i2c-1 (i2cdetect -y 1) |
| SPI0 (pins 19/21/23/24) | spi-spidev + param_spidev_spi_bus=0 | /dev/spidev0.0 |
| 1-Wire (pin 12) | w1-gpio (param_w1_pin=PA6 for pin 7) | /sys/bus/w1/devices |
| PWM0 (PA5, debug RX) | pwm | /sys/class/pwm/pwmchip0 (console off) |
|
1 2 3 4 |
# /boot/orangepiEnv.txt (Orange Pi images) or /boot/armbianEnv.txt (Armbian) # example: UART3, I2C0 and SPI0 overlays=uart3 i2c0 spi-spidev param_spidev_spi_bus=0 |
Armbian’s file also has an overlay_prefix=sun8i-h3 line: leave it as it is, because the overlays for the Orange Pi One are the generic H3 ones. If a bus still doesn’t show up after a reboot, watch the debug UART while it boots: U-Boot prints an “Applying kernel provided DT overlay sun8i-h3-…” line for every overlay it loads, and an error right after it if the name is wrong.
Orange Pi One for Piso WiFi: Coin Slot Wiring
The Orange Pi One is one of the most common boards inside Piso WiFi coin-operated hotspot machines, because it’s cheap, has Ethernet for the access point, and has plenty of GPIOs for the coin slot. A typical build uses a 12v supply for the coin acceptor, a 12v-to-5v buck converter (3A) into the Orange Pi One’s DC jack, and three GPIOs: the coin pulse input, a relay or MOSFET that switches the coin slot on and off, and an LED or lamp output.
| Signal | Good Pin Choice | How to Wire It |
|---|---|---|
| Coin pulse (COIN / SET) | Pin 7 (PA6) or another PA/PG pin | Through an optocoupler (PC817) or a transistor, never straight from the 12v acceptor; use a PA/PG pin so the software can count pulses on interrupts |
| Coin slot power (relay / MOSFET) | Pin 29, 31, 33, 35, or 37 | Drive a relay module or a logic-level MOSFET module; the GPIO only gives 3.3v at a few mA |
| LED / lamp | Any free PA pin | Through a transistor or MOSFET module for 12v lamps |
| Avoid | Pins 3, 5, 27, 28 (pull-ups), the bus pins you use, pins 2/4 | The I2C pull-ups make inputs read high, and the 5v pins are only for power |
Each Piso WiFi software lets you set the coin, relay, and LED pins in its settings, some by physical pin number and some by Linux GPIO number (PA6 = 6), so match its numbering to the pin table above. The usual problems are a coin acceptor wired straight to a GPIO (12v destroys the H3 pin) and a buck converter set above 5.1v, which reaches the board through the DC jack with nothing to stop it.
Orange Pi One Common Problems & Fixes
Why doesn’t /dev/i2c-0, /dev/spidev0.0, or /dev/ttyS3 exist? On Orange Pi’s Linux 5.4 images (and on Armbian), the 40-pin I2C, SPI, and UART controllers are off by default. Add i2c0, spi-spidev (with param_spidev_spi_bus=0), or uart3 to the overlays= line, reboot, and check /dev again. The old Linux 3.4 images had them on by default.
I enabled uart1, but nothing comes out of pins 8/10. Why? Pins 8/10 are UART3 on the One. UART1 is on pins 38 (TX) and 40 (RX). Either move your wires or enable uart3.
Why is there no signal on pin 7 (PWM1)? Because PA6 has no PWM function on the H3, whatever the schematic label says. The only hardware PWM is PA5 on the debug header (overlay pwm, which turns off the console), or use a PCA9685 on I2C.
Why do pins 3, 5, 27, and 28 always read high? They have 2kΩ pull-ups to 3.3v on the board, for I2C. Use them for active-low signals, or pick pin 7, 29, 31, 33, 35, or 37 for an input that needs a pull-down.
My HAT or ribbon cable doesn’t line up. Why? The One’s header is rotated 180° compared with a Raspberry Pi: pin 1 (the ▲ on the silkscreen) is at the DC jack end, on the board edge row. Plug by pin 1, not by the board outline, and expect a Pi HAT to hang off the side of the board.
Can I power the Orange Pi One from micro-USB? No. The micro-USB OTG port isn’t connected to the power input. Use the DC barrel jack (5v / 2A, 4.0 x 1.7mm), or a regulated 5v supply on header pins 2/4.
My board reboots randomly or won’t boot. What can I do? Start with the power: a real 5v / 2A supply and a short, thick cable, measured at the board under load. Then add a heatsink, and try a fresh, good-quality microSD card (the board boots from nothing else).
The side button does nothing on Armbian. Why? Mainline Linux maps SW4 (PL3) to BTN_0, not to the power key. Orange Pi’s images shut down on a short press; on Armbian, an overlay that sets the key code to 116 (KEY_POWER) makes it work the same way.
Can I use Raspberry Pi tutorials and libraries? The power, I2C, UART, and SPI pins are in the same places, so the wiring often carries over (count by pin number), but the GPIO numbers don’t. RPi.GPIO and gpiozero won’t run; use libgpiod, wiringOP, or the Linux device nodes, and translate the Pi’s BCM numbers by physical pin.
Orange Pi One vs Orange Pi Zero, Orange Pi PC and Raspberry Pi 3B
The Orange Pi One, the Orange Pi Zero, and the Orange Pi PC share the same H3 chip family, so their pin functions match, but the headers and the boards around them differ. The Raspberry Pi 3B is the board the One was sold against.
| Feature | Orange Pi One | Orange Pi Zero | Orange Pi PC | Raspberry Pi 3B |
|---|---|---|---|---|
| SoC / CPU | Allwinner H3, 4x Cortex-A7 | Allwinner H2+ (or H3), 4x Cortex-A7 | Allwinner H3, 4x Cortex-A7 | BCM2837, 4x Cortex-A53 @ 1.2GHz |
| RAM | 512MB / 1GB DDR3 | 256MB / 512MB DDR3 | 1GB DDR3 | 1GB LPDDR2 |
| GPIO header | 40-pin (rotated 180°) | 26-pin (+ 13-pin) | 40-pin | 40-pin |
| Ethernet | 100Mbps | 100Mbps | 100Mbps | 100Mbps |
| Wireless | None | Wi-Fi 4 (XR819) | None | Wi-Fi 4 + Bluetooth 4.1 |
| USB host | 1x USB 2.0 | 1x USB 2.0 (+2 on the 13-pin) | 3x USB 2.0 | 4x USB 2.0 |
| Video out | HDMI | Composite only (13-pin header) | HDMI + AV | HDMI + AV |
| Power input | DC jack, 5v / 2A | micro-USB, 5v / 2A | DC jack, 5v / 2A | micro-USB, 5v / 2.5A |
| Size | 69 x 48mm | 48 x 46mm | 85 x 55mm | 85 x 56mm |
Pick the Orange Pi One for a cheap wired node with HDMI and a full 40-pin header, such as a Piso WiFi controller, a print server, or a 3D-printer host. Pick the Orange Pi Zero when you want Wi-Fi in a smaller board, the Orange Pi PC for more USB ports and 1GB on every board, and the Raspberry Pi 3B for the best software support and documentation. For a 64-bit upgrade on the same Orange Pi pin conventions, look at the Orange Pi Zero 3 (26-pin header, Gigabit Ethernet), the Orange Pi Zero 2W (40-pin header, Wi-Fi 5), or the much faster Orange Pi 5.
Orange Pi One Pin Details
Here is every pin of the Orange Pi One 40-pin header in physical order, with its Allwinner H3 port name, Linux GPIO number, wiringOP number, functions, overlays, and what the board wires to it. Pin 1 is the ▲ end of the header next to the DC jack; odd pins are on the board edge, and even pins are on the inner row.
Click to expand the full pin table (40 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 AMS1117 3.3v rail; light loads only. |
| 2 | 5V | – | – | 5v power | – | DCIN-5V (DC jack, no fuse) | The DC jack’s 5v, straight through: a 5v output, or a 5v input with no protection. |
| 3 | PA12 | 12 | 0 | I2C0_SDA, DI_RX | i2c0 | 2kΩ pull-up to 3.3v (R151) | I2C0 data (/dev/i2c-0); its 2kΩ pull-up makes it idle high as a GPIO. |
| 4 | 5V | – | – | 5v power | – | DCIN-5V | Second 5v pin, the same net as pin 2. |
| 5 | PA11 | 11 | 1 | I2C0_SCL, DI_TX | i2c0 | 2kΩ pull-up to 3.3v (R152) | I2C0 clock; idles high as a GPIO because of its 2kΩ pull-up. |
| 6 | GND | – | – | Ground | – | GND | Ground. |
| 7 | PA6 | 6 | 2 | GPIO (SIM_PWREN); no PWM on the H3 | w1-gpio with param_w1_pin=PA6 | Direct | A free GPIO. The schematic calls it PWM1, but the H3 has no PWM on PA6. |
| 8 | PA13 | 13 | 3 | UART3_TX, SPI1_CS | uart3 | Direct | UART3 transmit (/dev/ttyS3), in the Raspberry Pi’s TX position. |
| 9 | GND | – | – | Ground | – | GND | Ground. |
| 10 | PA14 | 14 | 4 | UART3_RX, SPI1_CLK | uart3 | Direct | UART3 receive (/dev/ttyS3), in the Raspberry Pi’s RX position. |
| 11 | PA1 | 1 | 5 | UART2_RX, JTAG_CK | uart2 | Direct | UART2 receive (/dev/ttyS2), or a general-purpose pin. |
| 12 | PD14 | 110 | 6 | GPIO (1-Wire default pin) | w1-gpio (default pin) | Direct | The default 1-Wire pin of the w1-gpio overlay; a plain GPIO otherwise (no interrupts on port D). |
| 13 | PA0 | 0 | 7 | UART2_TX, JTAG_MS | uart2 | Direct | UART2 transmit (/dev/ttyS2), or a general-purpose pin. |
| 14 | GND | – | – | Ground | – | GND | Ground. |
| 15 | PA3 | 3 | 8 | UART2_CTS, JTAG_DI | uart2 + param_uart2_rtscts=1 | Direct | UART2 CTS when flow control is on, otherwise a general-purpose pin. |
| 16 | PC4 | 68 | 9 | GPIO (NAND_CE0) | – | Direct (internal pull-up on at reset) | A plain GPIO that reads high after reset (internal pull-up); no interrupts on port C. |
| 17 | 3.3V | – | – | 3.3v power | – | VCC3V3-EXT | Second 3.3v output, the same rail as pin 1. |
| 18 | PC7 | 71 | 10 | GPIO (NAND_RB1) | – | Direct (internal pull-up on at reset) | A plain GPIO that reads high after reset (internal pull-up); no interrupts on port C. |
| 19 | PC0 | 64 | 11 | SPI0_MOSI, NAND_WE | spi-spidev | Direct | SPI0 MOSI (/dev/spidev0.0). |
| 20 | GND | – | – | Ground | – | GND | Ground. |
| 21 | PC1 | 65 | 12 | SPI0_MISO, NAND_ALE | spi-spidev | Direct | SPI0 MISO. |
| 22 | PA2 | 2 | 13 | UART2_RTS, JTAG_DO | uart2 + param_uart2_rtscts=1 | Direct | UART2 RTS when flow control is on, otherwise a general-purpose pin. |
| 23 | PC2 | 66 | 14 | SPI0_CLK, NAND_CLE | spi-spidev | Direct | SPI0 clock. |
| 24 | PC3 | 67 | 15 | SPI0_CS0, NAND_CE1 | spi-spidev | Direct (internal pull-up on at reset) | SPI0 chip select 0; high after reset, which suits an active-low CS. |
| 25 | GND | – | – | Ground | – | GND | Ground. |
| 26 | PA21 | 21 | 16 | GPIO (PCM0_DIN, SIM_VPPPP) | – | Direct | A free GPIO (not a second SPI chip select like on a Raspberry Pi). |
| 27 | PA19 | 19 | 17 | I2C1_SDA, PCM0_CLK | i2c1 | 2kΩ pull-up to 3.3v (R153) | I2C1 data (/dev/i2c-1); idles high as a GPIO because of its 2kΩ pull-up. |
| 28 | PA18 | 18 | 18 | I2C1_SCL, PCM0_SYNC | i2c1 | 2kΩ pull-up to 3.3v (R154) | I2C1 clock; idles high as a GPIO because of its 2kΩ pull-up. |
| 29 | PA7 | 7 | 19 | GPIO (SIM_CLK) | – | Direct | A free GPIO with interrupt support. |
| 30 | GND | – | – | Ground | – | GND | Ground. |
| 31 | PA8 | 8 | 20 | GPIO (SIM_DATA) | – | Direct | A free GPIO with interrupt support. |
| 32 | PG8 | 200 | 21 | UART1_RTS | uart1 + param_uart1_rtscts=1 | Direct | UART1 RTS when flow control is on, otherwise a general-purpose pin. |
| 33 | PA9 | 9 | 22 | GPIO (SIM_RST) | – | Direct | A free GPIO with interrupt support. |
| 34 | GND | – | – | Ground | – | GND | Ground. |
| 35 | PA10 | 10 | 23 | GPIO (SIM_DET) | – | Direct | A free GPIO with interrupt support. |
| 36 | PG9 | 201 | 24 | UART1_CTS | uart1 + param_uart1_rtscts=1 | Direct | UART1 CTS when flow control is on, otherwise a general-purpose pin. |
| 37 | PA20 | 20 | 25 | GPIO (PCM0_DOUT, SIM_VPPEN) | – | Direct | A free GPIO with interrupt support. |
| 38 | PG6 | 198 | 26 | UART1_TX | uart1 | Direct | UART1 transmit (/dev/ttyS1). |
| 39 | GND | – | – | Ground | – | GND | Ground. |
| 40 | PG7 | 199 | 27 | UART1_RX | uart1 | Direct | UART1 receive (/dev/ttyS1). |
Wrap Up
To conclude this guide article, the Orange Pi One is a very solid entry-level Linux board when you need a cheap, wired, headless node, with a full 40-pin header for your hardware: 28 GPIOs, three UARTs, two I2C buses with pull-ups, and SPI0. Just remember the gotchas: every pin is 3.3v only, the header is rotated 180° compared with a Raspberry Pi, pin 7 isn’t a PWM pin, pins 8/10 are UART3, the buses stay off until you enable their overlays, and the board only takes power through the DC jack.
I hope you’ve found this guide helpful for your Orange Pi One project. For more boards, check out the Pinouts, Datasheets & Schematic Diagrams Library.