Hello,
I’m in trouble with Jetson Nano and hope you can help me.
I need to use the board with a RDS digital servo, which accepts one time PWM signal which pulse between 500us~2500us. But when get power into the NVIDIA Jetson Nano Developer Kit ,GPIO sent unknown signal to the servo without any commands and the servo became distorted.
And another question, if the command sends to the Jetson Nano, the servo works well between 200us~2200us, other than 500us~2500us.
Here is the script.
import Jetson.GPIO as GPIO
import time
import sys
output_pin = 13
GPIO.setmode(GPIO.BOARD)
GPIO.setup(output_pin, GPIO.OUT,initial=GPIO.LOW)
#print(“Starting demo now! Press CTRL+C to exit”)
#time_start=time.time()
gpio.output(output_pin, GPIO.LOW)
def high_precision_delay(delay_time):
‘’’ Function to provide accurate time delay in millisecond
‘’’
_ = time.perf_counter() + delay_time
while time.perf_counter() < _:
passGPIO.output(output_pin, GPIO.HIGH)
high_precision_delay(0.0001float(sys.argv[1]))
GPIO.output(output_pin, GPIO.LOW)
high_precision_delay(0.02-0.0001float(sys.argv[1]))
GPIO.cleanup()
Hope someone could help me
Thank you