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-devConnection
| No. | Board Silkscreen | GPIO Mapping | Description |
|---|---|---|---|
| 2 | 5V | GPIO117 | After 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=1Observe that the multimeter shows a voltage of approximately 5V.
- Output Low Level
shell
sudo gpioset /dev/gpiochip3 117=0Observe that the multimeter shows a voltage of approximately 0V.