Unable to generate PWM with Nvidia Jetson AGX Orin Development Kit

I want to use Nvidia Jetson AGX Orin Development Kit to generate PWM. I have been using a GPIO pin to generate PWM (using the following link https://github.com/NVIDIA/jetson-gpio/blob/master/samples/simple_pwm.py)) but the PWM is not visible on oscilloscope. How can I configure a GPIO pin as a PWM output pin to do the same.
Also is there a way to know the maximum and minimum limits of frequency and magnitude of PWM which can be generated by Jetson AGX Orin

Hi paul.anuj1,

Are you using the devkit or custom board for Orin Nano?
What’s your Jetpack version in use?

What pin do you want to use for PWM?

I am using the Jetson AGX Orin Developer Kit (64GB)
Jetpack version is:
Package: nvidia-jetpack
Version: 5.1.2-b104
According to the pinout of AGX Orin - there is no dedicated pin for generating PWM so I am using GPIO pins for digital output of PWM signal. I tried on pin 16 & 18.
40-pin header reference

I am unable to generate PWM and visualize it on the oscilloscope.
What could be the reason?

I’ve moved your topic to the correct category for AGX Orin.

Please refer to the following steps to test PWM on AGX Orin devkit.

$ sudo /opt/nvidia/jetson-io/jetson-io.py
(Configure Jetson 40pin Header -> Configure header pins manually -> [*] pwm1  (15),  [*] pwm5  (18), [*] pwm8  (13), -> Back -> Save pin changes -> Save and reboot to reconfigure pins)
$ sudo apt update
$ sudo apt install git python3-pip pip
$ git clone https://github.com/NVIDIA/jetson-gpio.git
$ cd jetson-gpio
$ sudo python3 setup.py install
$ cd samples
$ sudo python simple_pwm.py

By default in simple_pwm.py, it will perform PWM signal from pwm5(PIN18).

1 Like

Hi Kevin, This worked! Thanks a lot!

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