Skip to content

40 PIN GPIO

Rhino Pi-X1 is equipped with two types of onboard 40 PIN GPIO interfaces:

  • 40-Pin 3.3V GPIO Expansion Interface (Raspberry Pi Compatible)
  • 40-Pin 1.8V GPIO Expansion Interface

Warning

When using the 40-Pin GPIO interfaces, pay attention to the wiring between the pins and peripherals. Ensure correct pin connections—improper operation may cause damage to the device hardware.

40-Pin 3.3V GPIO (Raspberry Pi Compatible)

Rhino Pi-X1 features an onboard 40-PIN box header connector with 2.5mm pitch for 3.3V GPIO expansion, providing highly flexible interface support for hardware expansion. Users can connect various sensors, communication modules, displays, and other embedded peripherals via this interface to implement rapid prototyping and functional verification in fields such as the Internet of Things (IoT), robot control, and industrial automation.

The functions of the 40-Pin 3.3V GPIO expansion interface are shown in the table below:

FunctionPIN#PIN#Function
3.3V OUT125V OUT
I2C1_SDA345V OUT
I2C1_SCL56GND
GPIO_0078GPIO_12
GND910GPIO_01
GPIO_051112LPI_I2S2_CLK
I2C4_SDA1314GND
I2C4_SCL1516UART_RX
3.3V OUT1718GPIO_61
SPI3_MOSI1920GND
SPI3_MISO2122GPIO_118
SPI3_CLK2324SPI3_CS0
GND2526GPIO_22
GPIO_322728GPIO_33
UART_TX2930GND
GPIO_623132GPIO_91
GPIO_1243334GND
LPI_I2S2_WS3536GPIO_63
GPIO_603738LPI_I2S2_DATA0
GND3940LPI_I2S2_DATA1

40-Pin 1.8V GPIO

Rhino Pi-X1 is equipped with an onboard 40-PIN box header connector with 2.5mm pitch for 1.8V GPIO expansion, which better adapts to peripherals with different IO voltage level requirements.

The functions of the 40-Pin 1.8V GPIO expansion interface are shown in the table below:

FunctionPIN#PIN#Function
NC121.8V OUT
NC34GND
GPIO_7156I2S1_CLK
NC78I2S1_WS
GND910I2S1_DATA0
GPIO_361112I2S1_DATA1
GPIO_371314GND
Uart TX15161.8V/100mA
Uart RX1718SENSOR_I3C_SCL
MAG_ALPS_I2C_SCL1920SENSOR_I3C_SDA
MAG_ALPS_I2C_SDA2122SENSOR_I2C_SCL
GPIO_062324SENSOR_I2C_SDA
ADC IN02526I2S3_DATA1
Debug_UART_TX27285V OUT/300mA
Debug_UART_RX2930I2S3_DATA0
I2S3_CLK3132ADC IN1
I2S3_WS3334GND
GND3536ADC IN2
CAN_L3738GND
CAN_H3940PWM

Basic Interface Testing

GPIO

GPIO Overview

General-Purpose Input/Output (GPIO) refers to non-specialized digital signal pins on integrated circuits or electronic circuit boards (such as MCU/MPU). These pins can be used as input, output, or both, and are controllable via software.

Preparation

  • Rhino Pi-X1
  • Multimeter
  • Open-source tool: gpiod
shell
sudo apt update
sudo apt install gpiod libgpiod2 libgpiod-dev

Connection

Take PIN3 (GPIO28) of the Raspberry Pi 40 PIN header as an example for testing:

  • Turn on the multimeter and rotate the switch to the DC voltage 4V range gear.
  • Connect the red multimeter lead to PIN 3 (GPIO28) of the Raspberry Pi 40 PIN header on Rhino Pi-X1.
  • Connect the black multimeter lead to PIN 6 (GND) of the Raspberry Pi 40 PIN header on Rhino Pi-X1.

Testing

  • Output High Level
shell
sudo gpioset /dev/gpiochip0 28=1

Observe that the multimeter shows a voltage of approximately 3.3V.

  • Output Low Level
shell
sudo gpioset /dev/gpiochip0 28=0

Observe that the multimeter shows a voltage of approximately 0V.

More Interface Applications

For more applications of the 40 PIN interface, please refer to 40 PIN Pin Applications.