This is an old revision of the document!
Table of Contents
Orange Pi Zero
GPIO
The board has a Raspberry Pi compatible GPIO header with 26 pins, an Orange Pi0 specific header with 13 pins and a serial port.
Whilst the GPIO is compatible with the RPi notice the orientation.
5V USB LAN GND PA10 26 25 GND GND RX PA13 24 23 PA14 USB-DM2 TX PA02 22 21 PA16 USB-DP2 GND 20 19 PA15 USB-DM3 PA18 18 17 3V3 USB-DP3 PA19 16 15 PA03 LINEOUTR GND 14 13 PA00 LINEOUTL PA07 12 11 PA01 TV-OUT PG07 10 09 GND MIC-BIAS PG06 08 07 PA06 MIN1P GND 06 05 PA11 MIN1N 5V 04 03 PA12 IR-TX POWER 5V 02 01 3V3
This is the relationship between the OPi0 GPIO, H2+/H3 I/O, the Linux sysfs interface and the H2+/H3 alternate pin function.
Pin | H2+/H3 I/O | sysfs | ALT |
---|---|---|---|
3 | PA12 | 12 | SDA |
5 | PA11 | 11 | SCK |
7 | PA6 | 6 | PWM |
8 | PG6 | 198 | TxD |
10 | PG7 | 199 | RxD |
11 | PA1 | 1 | RxD |
12 | PA7 | 7 | |
13 | PA0 | 0 | TxD |
15 | PA3 | 3 | CTS |
16 | PA16 | 16 | SDA |
18 | PA18 | 18 | SCK |
19 | PA15 | 15 | MOSI |
21 | PA16 | 16 | MISO |
22 | PA2 | 2 | RTS |
23 | PA14 | 14 | CLK |
24 | PA13 | 13 | CS |
26 | PA10 | N/A |
Pickle Microchip PIC ICSP
We can use the OPi0 GPIOs to program PICMicros using Pickle Microchip PIC ICSP.
At this time only the GPIO bit-bang driver for Linux may be utilised on the OPi0 GPIO pins.
Low Voltage Programming with VPP at 3V3
Low voltage ICSP at 3V3 can be performed directly from the OPi0 GPIOs.
The following connections refer to the OPi0 GPIO header. Ensure that power is only ever applied from GPIO 3V3 on PIN 1 and never 5V.
Single common data I/O connection (GPIO bit-bang driver) without PGM.
OPi0 H2+/H3 PICMicro GPIO header .pickle =========== ======== =========== ======= 3V3-------------------------------VDD--+ PIN 1 | GND-------------------------------VSS R1 PIN 9 | PA12-----------R2-390R------------VPP--+ PIN 3 VPP=12 PA11-----------R3-390R------------PGC PIN 5 PGC=11 PA06-----------R4-390R------------PGD PIN 7 PGD=6 PGM=-1 (R1) 10K !MCLR pull-up (R2..R4) 390R.