Skip to content

48-Pin GPIO Interface

The Rhino Pi-A1 features an onboard 2×24 PIN GPIO interface.

Warning

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

48-Pin 3.3V GPIO Expansion Interface

The Rhino Pi-A1 is equipped with a 2×24 PIN interface, 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 48-Pin 3.3V GPIO expansion interface are shown in the table below:

CategoryInterfaceDescription
Signal conversionCAN interface2x CAN FD
Signal conversionRS4851x RS485
Signal conversionRS2322x RS232
Signal conversionOptocoupler2x input, 2x output, interface voltage range 5~30V
Reserved signal interfaceI2S1x
Reserved signal interfaceSPI1x
Reserved signal interfaceDEBUG UART1x
Reserved signal interfaceUART1x
Reserved signal interfaceGPIO5x
Reserved signal interface5V1x
Reserved signal interface3.3V1x

Rhino Pi-A1 24×2 board pin definition table:

No.Board SilkscreenGPIO/System MappingDescription
1HDMI_OUTOUT3.3V3.3V voltage
25VGPIO117After pulling the pin level high, the pin outputs 5V voltage, restored after device restart
3GNDGNDGround
4GNDGNDGround
5DBG_TXDBG_TXDebug-UART TX pin, used for system serial log input/output
6DBG_RXDBG_RXDebug-UART RX pin, used for system serial log input/output
7UART4_RXUART4_RXUART RX pin
8UART4_TXUART4_TXUART TX pin
9GPIO5/OUTGPIO17Corresponds to GPIO17, for GPIO expansion
10GPIO199/OUTGPIO148Corresponds to GPIO148, for GPIO expansion
11I2S0_SCKI2S0_SCKI2S audio bit clock, used for audio data synchronous transmission
12SPI1_MISOSPI1_MISOSPI1 master-in slave-out, serial data receive channel
13I2S0_WSI2S0_WSI2S audio frame synchronization, distinguishes left/right channel data
14SPI1_MOSISPI1_MOSISPI1 master-out slave-in, serial data transmit channel
15I2S0-DATA0I2S0-DATA0I2S audio data channel 0, transmits audio sample data
16SPI1_CLKSPI1_CLKSPI1 serial clock, synchronizes bus data transmission
17I2S0-DATA1I2S0-DATA1I2S audio data channel 1, transmits audio sample data
18SPI1_CS_NSPI1_CS_NSPI1 chip select signal, active low, selects slave device
19GNDGNDGround
20GNDGNDGround
21RS232_1_TXRS232_1_TXFirst RS232 serial transmit pin
22RS232_1_RXRS232_1_RXFirst RS232 serial receive pin
23OUT_GPIO40_INTGPIO35Corresponds to GPIO35, for GPIO expansion
24OUT_GPIO87_INTGPIO158Corresponds to GPIO158, for GPIO expansion

Basic Interface Testing

GPIO

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-A1
  • Multimeter
  • Open-source tool: gpiod
shell
sudo apt update
sudo apt install gpiod libgpiod2 libgpiod-dev

Connection

Take the 5V PIN (GPIO117) of the Rhino Pi-A1 48 PIN as an example for testing:

  • Turn on the multimeter and rotate the switch to the DC voltage 10V range gear.
  • Connect the red multimeter lead to the 5V PIN (GPIO117) on the 48 PIN side of the Rhino Pi-A1.
  • Connect the black multimeter lead to the GND PIN (GND) on the 48 PIN side of the Rhino Pi-A1.

Testing

  • Output High Level
shell
sudo gpioset /dev/gpiochip3 117=1

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

  • Output Low Level
shell
sudo gpioset /dev/gpiochip3 117=0

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

More Interface Applications

For more 48 PIN interface applications, please refer to 48 PIN Pin Applications.