My microcontroller runs a PI speed loop for a DC motor at 100 Hz, and I am aiming for a closed-loop bandwidth of about 20 Hz. The continuous-time simulation is well damped, but the real motor overshoots and rings at the same gains.
I assumed that sampling at five times the bandwidth was comfortably above the Nyquist limit of two. How fast does the loop really need to run, and is there any harm in simply running it as fast as the processor allows?




