Jetson.gpio help with pwm

hello I have a servo working with pulses of [1ms, 2ms]. with 0 degrees being the pulse with 1ms width and 180 or so being the one with 2ms. Can somehow help me with how i can code this using the jetson.gpio library so that the motor can rotate between these angles till I interrupt it? thanks. Will be a nice crash course to the library as well.
Here is the link to the liibrary i found: GitHub - NVIDIA/jetson-gpio: A Python library that enables the use of Jetson's GPIOs

hello user86373,

I am not fully understand your use-case,
there’re couple of configurations to set the PWM, period and duty cycle.
period is the inverse of the frequency of the waveform; duty cycle means the amount of “on time” when the signal is high.
you may check the software instance of the PWM controller, try to configure PWM attributes directly to test your use-case.
for example, $ echo <channel_id> > /sys/class/pwm/pwmchip<X>

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