Hi,
I’m trying to switch GPIO01 to work as an input. From what I can determine, this is pin 29 on the 40-pin header, it’s also called PQ.05, it’s pin number 105 for the ioctl GPIO_GET_LINEHANDLE_IOCTL and Linux seed it as GPIO 453.
To switch it to be an input, I do the following as superuser:
cd /sys/class/gpio
echo 453 > export
echo in > PQ.05/direction
cat PQ.05/direction # to verify that the direction has been changed
echo 453 > unexport
Electrically, I have a 10K ohm resistor pulling the GPIO line high (3.3v). Initially, when I read the signal value, it reads as 1. When I connect the GPIO to ground, then software reads it as 0.
The weird part is when I disconnect the pin from ground. Software continues to read 0. So I decided to put a volt meter across the terminals. Vcc to ground is 3.3v as it should be. But Vcc to GPIO01 gives me 2.3v, and GPIO01 to ground gives me 1v.
My best guess is that for some reason, the Jetson is driving the signal low, and due to the electrical characteristics, I’m getting a voltage divider.
Can anyone shed some light on this and help me understand what step I’m missing to switch this line to be an input and ensure that the Jetson doesn’t try to drive it?
Thanks.