Hello everybody
I tried to use pwm using jetson io pin.
But it didn’t work at all.
I used an oscilloscope, but I didn’t see any output of the signal.
What I know is that when I install Jetpack, Jetson.GPIO is installed by default.
(After installing jetpack, I checked it using the Python interpreter.)
After activating pwm through jetson-io.py and rebooting, I ran a simple sample example, but only GND and power pins worked, but no signal came out.
I ran the same code on the same equipment, but the pin doesn’t work, so I’m going crazy. (It’s been 2 weeks already)
A brief summary of my attempts
-
Activate pin 13 that supports pwm through jetson-io.py (rebooted of course).
-
A simple code was executed.
-
However, no signal was detected and many similar samples were searched, but to no avail.
-
Then, I installed the jetpack again, and installed it again and again endlessly.
-
But it doesn’t work and it’s just sad.
I’m not sure if this is a hardware failure or if my gpio configuration is wrong.
The other agx xavier I have is working fine, but only this one doesn’t work.
Package: nvidia-jetpack
Version: 4.6.1-b110
Architecture: arm64
Maintainer: NVIDIA Corporation
Installed-Size: 194
Depends: nvidia-cuda (= 4.6.1-b110), nvidia-opencv (= 4.6.1-b110), nvidia-cudnn8 (= 4.6.1-b110), nvidia-tensorrt (= 4.6.1-b110), nvidia-visionworks (= 4.6.1-b110), nvidia-container (= 4.6.1-b110), nvidia-vpi (= 4.6.1-b110), nvidia-l4t-jetson-multimedia-api (>> 32.7-0), nvidia-l4t-jetson-multimedia-api (<< 32.8-0)
Homepage: Autonomous Machines | NVIDIA Developer
Priority: standard
Section: metapackages
Filename: pool/main/n/nvidia-jetpack/nvidia-jetpack_4.6.1-b110_arm64.deb
Size: 29374
SHA256: 312e75d89d0837472668714c43590fd204a33b9c7727c542e1b5df367ec239c4
SHA1: 769cbf1c7acb9e39a4539879884a570bde12292c
MD5sum: a074f5225dfe8d7ea24560b15eef08d9
Description: NVIDIA Jetpack Meta Package
Description-md5: ad1462289bdbc54909ae109d1d32c0a8
Also added example code :
import Jetson.GPIO as GPIO
import time
SERVO_PIN =13
GPIO.setwarnings(False)
GPIO.setmode(GPIO.BOARD)
GPIO.setup(SERVO_PIN, GPIO.OUT)
pwm = GPIO.PWM(SERVO_PIN, 1000)
pwm.start(3.0)
for t_high in range(30, 1000):
a=int(input("pwm here : "))
pwm.ChangeDutyCycle(a)
pwm.stop()
GPIO.cleanup()
In addition, it seems that jetson.gpio is not installed in the relevant xavier, so I installed Jetson.gpio arbitrarily after installing jetpack.
Is this the cause of the problem?