Skip to main content

GPIO and 40-pin header

A powerful feature of the PI ONE is the row of GPIO (general-purpose input/output) pins along the top edge of the board. A 40-pin GPIO header is found on all current Pi series boards. The GPIO headers on all boards have a 0.1in (2.54mm) pin pitch.

img

Pin Assignment

Pin #FunctionPin #Function
1CAN_TX2CAN_RX
3ECSPI2_SS04ECSPI2_SCLK
5ECSPI2_MOSI6ECSPI2_MISO
7GPIO1_IO088GPIO1_IO14
9GPIO1_IO0910GPIO1_IO10
11GPIO1_IO0612GPIO1_IO07
13UART3_CTS_3V314UART3_RTS_3V3
15GND16GND
17UART4_RXD_3V318UART4_TXD_3V3
19UART3_TXD_3V320UART3_RXD_3V3
21QSPIA_nSS022QSPIA_DATA0
23QSPIA_SCLK24QSPIA_DATA1
25SD3_DATA026QSPIA_DATA2
27SD3_DATA128QSPIA_DATA3
29SD3_DATA230SD3_DATA5
31GND32GND
33SD3_DATA334SD3_DATA4
35I2C4_SCL_3V336I2C4_SDA_3V3
37I2C3_SCL_3V338I2C3_SDA_3V3
393.3V405V

Voltages

5V pins and 3.3V pins are present on the board, as well as a number of ground pins (GND), which cannot be reconfigured. The remaining pins are all general-purpose 3.3V pins, meaning outputs are set to 3.3V and inputs are 3.3V-tolerant.

Outputs

A GPIO pin designated as an output pin can be set to high (3.3V) or low (0V).

Inputs

A GPIO pin designated as an input pin can be read as high (3.3V) or low (0V). This is made easier with the use of internal pull-up or pull-down resistors. Pins GPIO2 and GPIO3 have fixed pull-up resistors, but for other pins, this can be configured in software.