Apex Orin NX GPIO Digital Input#
Hardware Connection#
PIN Definition#
接口名称 |
DB9针脚序号 |
接口说明 |
设备节点 |
---|---|---|---|
DI_0 |
1 |
GPIO IN |
/dev/gpio/di0 |
DI_1 |
2 |
GPIO IN |
/dev/gpio/di1 |
DO_0 |
3 |
GPIO OUT |
/dev/gpio/do0 |
DO_1 |
4 |
GPIO OUT |
/dev/gpio/do1 |
GND |
6-9 |
地 |
DO Hardware Specification#
Description |
|
---|---|
Vref |
User external power supply, 3.3V~36V |
R |
User external pull-up resistor. R>Vref/0.5A(0.5A is max drive current of DO) R is Resistor package power withstand > (Vref/R)²*R |
Vout |
When the output logic is high, Vout = Vref When the output logic is low, Vout = 0 |
emitt |
Short for emitter. |
colle |
Short for collector. |
DO Usage#
Digital output usage sample as below
# Switch to root
sudo su -
# Set High output(DO)
echo 1 > /dev/gpio/<device node name>/value
# sample: echo 1 > /dev/gpio/do0/value
# Set Low output(DO)
echo 0 > /dev/gpio/<device node name>/value
# sample:echo 1 > /dev/gpio/do0/value