Jetson AGX Xavier GPIO help

Hey there,

sorry if this has been explained else where, or is docements but i can find a answer that gives me confidence.

I have a python script that controls stepper motor drivers by setting digital pins either high or low.

i need a total of 10 digital pins, i have found various pinout configs for the jetson and what not, but i don’t really understand them.

like how do i know what pin to address in code?

i.e.

Define the GPIO pins for the stepper motors

pan_step_pin = 25
pan_dir_pin = 24
tilt_step_pin = 23
tilt_dir_pin = 22

does this target pins 22 though 25 on the GPIO header?

Thanks, James.

Hi,

Three things to note:

  1. Check what signals pins you want to use on the 40-pin expansion header are connected to:
    https://developer.nvidia.com/embedded/dlc/Jetson_AGX_Xavier_Developer_Kit_Carrier_Board_Specification

  2. Check whether these pins are configured as GPIO in pinmux:
    https://developer.nvidia.com/embedded/dlc/jetson-agx-series-devkit-pinmux-configuration-template

  3. Run this command on your device to know the GPIO number of these pins:

sudo cat /sys/kernel/debug/gpio

Thanks for the reply.

I ended up figuring it out, i think.

I am using the rpi.gpio python library which allows me to assign pins with the above code, and as long as i follow that chart above and the pins are available to be assigned as GPIO it works.

Does that sound like a good way forward ?

Thanks

Sure, that sounds good to me.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.