BLDC Motor Speed Control: From PWM to PI Control
Why does a motor slow down under load even when its PWM duty cycle stays the same?
PWM sets the drive applied to a BLDC motor, but the speed can still drop when the load rises. The example uses speed feedback and a PI controller to correct the error, then checks the resulting waveforms.