I've got a raspi 3b with an esc and a brushless motor attached. I can run the motor using pigpio the following commands:
# First start the pigpio daemon
# calibrate the esc
pigs s 12 2000
pigs s 12 1000
# Run the motor really slooowww
pigs s 12 1010
This works great. I now want to do the same from the program I'm writing in Golang. I'm using the go-rpio library to control the PWM on the GPIO pins. When doing that I also need to specify the pin frequency and the cycle length.
Does anybody know what the frequency, cycle length, and duty cycle are of the few lines of bash I use above? I guess the pigpio library uses some kind of "default frequency"?
All tips are welcome!