IO Usage
The AIBOX-9075 provides 6 IO input channels (IO in) and 6 IO output channels (IO out).
IN
Hardware
INx, where x is the 1, 2, 3, 4, 5, 6 of IO-IN; IN_COMx, where x is the C1, C2, C3, C4, C5, C6 of IO-IN. INx can be driven by an external power supply with a current limiting resistor, or by an external GPIO driver. Pay attention to the magnitude of the current.
Software
| Name | GPIO Number |
|---|---|
| IO_IN 1 | 675 |
| IO_IN 2 | 682 |
| IO_IN 3 | 680 |
| IO_IN 4 | 681 |
| IO_IN 5 | 690 |
| IO_IN 6 | 688 |
For example, to operate IO_IN (GPIO number is 675), run as root user:
echo 675 > /sys/class/gpio/export
cd /sys/class/gpio/gpio675
echo in > direction
cat valueOUT
Hardware
OUTx, where x is the 1, 2, 3, 4, 5, 6 of IO-OUT; OUT_COMx, where x is the C1, C2, C3, C4, C5, C6 of IO-OUT.
Software
| Name | GPIO Number |
|---|---|
| IO_OUT 1 | 686 |
| IO_OUT 2 | 692 |
| IO_OUT 3 | 694 |
| IO_OUT 4 | 696 |
| IO_OUT 5 | 678 |
| IO_OUT 6 | 679 |
For example, to operate IO_OUT (GPIO number is 686), run as root user:
echo 686 > /sys/class/gpio/export
cd /sys/class/gpio/gpio686
echo out > direction
echo 0 > value
echo 1 > value