This might be a newbie question… We are building and application for an autonomous vehicle using the DRV8834 stepper motor driver. We are trying to use Micropython PWM on an ESP32 MCU and are having some trouble attempting to get consistent performance from the motors.
According to this equation…
RPM / ( (a/360) * 60) = Hz
I should be able to set a Micropython PWM frequency of 1000Hz with a duty of 512 on the DRV8834 STEP pin and achieve 300 RPM. However, we’re seeing significantly lower RPM’s at this frequency and the motors stutter and vibrate quite a lot. If we use a 2000Hz frequency the motors work as expected. We are supplying the driver with 5v
Can you provide any guidance on how to use Micropython PWM with the DRV8834?