I am currently experimenting with the RPi and would like to control a stepper/ac servo motor using the pigpio library since it generates hardware pwm from the RPi's pins.
The hardwarePWM function allows me to control the frequency and duty cycles of a pwm signal but not the number of pulses? How can I control the position of a stepper motor?
Stepper motor has 2000 steps per revolution
I need to make the stepper move 1 revolution (2000 pulses) at 50000KHz
Normally I would just set a pin high and low with a delay in between to generate the pulse manually, but I cannot achieve the speeds required and has a lot of jitter.
Any idea on how to approach this?