Apex Dual Orin Digital Output Usage#
Hardware Connection#
Function Label
Pin Label
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. |
Function and Device Node#
Function |
Device Node |
---|---|
M_DO_0 |
gpio286 |
M_DO_1 |
gpio287 |
M_DO_2 |
gpio288 |
M_DO_3 |
gpio289 |
S_DO_4 |
gpio310 |
S_DO_5 |
gpio313 |
Usage#
The example of using the GPIO interface is as follows.
# Use root
sudo su -
# Set output to high
echo 1 > /sys/class/gpio/<device node>/value
# Example: echo 1 > /sys/class/gpio/gpio339/value
# Set output to low
echo 0 > /sys/class/gpio/<device node>/value
# Example: echo 0 > /sys/class/gpio/gpio339/value