*** Please note that this reply is generated by LLM automatically ***
To control GPIO12 (module pin 218, HAT40 pin 15) as an output with an active low level on Jetson Orin NX, you can use the Jetson-IO tool to configure the pinmux settings. However, since the Jetson-IO tool currently supports pinmux setting for groups of pins related to a function, but not for individual pins, you will need to configure the pinmux for the entire GPIO group.
Here are the steps to follow:
- Launch Jetson-IO by running the command
sudo /opt/nvidia/jetson-io/jetson-io.py.
- Select the 40-pin expansion header from the main screen.
- In the header screen, select the GPIO group that includes GPIO12 (module pin 218, HAT40 pin 15).
- Configure the pinmux settings for the GPIO group to use GPIO mode.
- Save the configuration and reboot the system.
Alternatively, you can use the config-by-pin command line tool to configure the pinmux settings for the GPIO group. For example:
sudo /opt/nvidia/jetson-io/config-by-pin.py -o dtbo gpio12
This will configure the pinmux settings for GPIO12 and save the configuration to a device tree overlay file.
To control the GPIO as an output with an active low level, you will need to use the gpiod command line tool. First, install gpiod by running the command sudo apt-get install gpiod.
Then, you can use the following commands to set the GPIO as an output and set its level to 0 (active low):
sudo gpiod gpiochip0 12 output 0
This will set GPIO12 as an output and set its level to 0.
Note that you may need to adjust the GPIO number and the pinmux settings depending on your specific use case.
In comparison to reflashing the device, using the Jetson-IO tool and gpiod command line tool is a more convenient and non-invasive way to configure the GPIO settings. Reflashing the device would require updating the pinmux spreadsheet and flashing the new configuration to the Jetson device, which can be a more complex and time-consuming process.
In terms of the voltage level at the pin, the Jetson Orin NX module supports a voltage range of 5V to 20V on VDD_IN, depending on the module configuration. However, the voltage level at the GPIO pin will depend on the specific configuration and the voltage level of the GPIO output. In general, the GPIO output voltage level will be around 3.3V or 1.8V, depending on the GPIO configuration.
*** Please give the thumbs up if you get answers you like. Or provide feedback to help us improve the answer. ***