Skip to content

GPIO

GPIO Introduction

General-purpose input/output (GPIO) pins are non-specialized digital signal pins on an integrated circuit or electronic board (such as an MCU or MPU). They can be used as inputs or outputs, or switch between both modes, and are controlled by software.

Preparation

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

Connection

No.Board Silk ScreenGPIO MappingDescription
15VGPIO117When driven high, the pin outputs 5V. It resets after reboot.

This example uses the 5V pin (GPIO117) on the Rhino Pi A1 48-pin connector.

  • Turn on the multimeter and set it to the DC voltage 10V range.
  • Connect the multimeter red probe to the 5V pin (GPIO117) on the Rhino Pi A1 48-pin side.
  • Connect the multimeter black probe to GND on the Rhino Pi A1 48-pin side.

Test

  • Output high level:
shell
sudo gpioset /dev/gpiochip3 117=1

Observe approximately 5V on the multimeter.

  • Output low level:
shell
sudo gpioset /dev/gpiochip3 117=0

Observe approximately 0V on the multimeter.