Question
STM8S BLDC Speed Closed Loop runaway issue
Posted on August 19, 2013 at 05:13
Hi,
I am using STM8S three-phase BLDC motor control software library V1.0 to drive BLDC. Everything works great except PI regulator for speed closed loop runways after speed 13000rpm. My settings are: &sharpdefine PWM_FREQUENCY 14400 &sharpdefine SPEED_KP 40 &sharpdefine SPEED_KI 0.01 &sharpdefine SPEED_OUT_MAX 666 &sharpdefine SPEED_KP_DIVISOR 128 &sharpdefine SPEED_KI_DIVISOR 512 &sharpdefine SPEED_PID_SAMPLING_TIME 4 &sharpdefine HALL_MAX_SPEED_01HZ ((u16)4333) &sharpdefine MOTOR_POLE_PAIRS 2 &sharpdefine MAX_SPEED_RPM 16000 I have checked there is no overflow of PI regulator registers. After 13000rpm, motor speed ramps up rapidly and keeps going on until is stopped. To be safe I stopped motor at 20000rpm. It will be highly appreciated if some one aware of this issue or can think of potential root cause and guide me to solution. #pi-regulator #3phase-motor