Skip to content

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

No.Board SilkscreenGPIO MappingDescription
25VGPIO117After pulling the pin level high, the pin outputs 5V voltage, restored after device restart

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.