Part Number: DRV8301-69M-KIT
Other Parts Discussed in Thread: DRV8301
Hi,
I've been using a slightly modified lab10a, which has been modified for current control instead of speed control. Basically "flag_enablespeedctrl" is set to false and "updateIqRef(ctrlHandle)" function has been added from lab4 to be able to control current with gMotorVars.IqRef_A . The slight problem with this approach is that even at zero commanded current (IqRef_A = 0) there is just the slightest hum coming from the motor and I'm wondering if it would be possible to disable the PWM outputs with HAL_disablePwm() while commanded current is zero and then enable them again once a negative or positive current is wanted.
Debugging shows that even with IqRef_A = 0 there are slight variations in the gPwmData values, which I think causes the hum. I'd like to have the system completely silent at zero commanded current.
EDIT: As a clarification, the hum starts once both flag_enableSys and flag_Run_Identify flags are true, meaning PWM outputs are enabled.