We’re trying to operate the new Basic ESC off of a Raspberry Pi 3 B+ for some research here at school. Unfortunately we’re using Python, and in the RPi.GPIO library typically used to govern the output pins, the PWM is specified by first giving a frequency, and then specifying a percentage duty cycle.
P = GPIO.PWM(11,100)
would specify pin 11 as an output with a 100 Hz frequency. Writing something like:
would give the pin a 10 percent duty cycle. However, the Basic ESC wants you to set PWM in microseconds. Is it possible to convert something like 1100 μs, 1900 μs into the aforementioned variables so that they can be used in my code?
Alternatively, does anyone have any experience/ know of any python libraries that can be used on the Pi to call PWMs like 1100 μs,1900 μs, etc?
Thanks in advance,