Question
Calculation of the motor current using the Motor Control SDK function MC_GetPhaseCurrentAmplitudeMotor1()
Hello,
i want to use the function MC_GetPhaseCurrentAmplitudeMotor1() from the Motor Control SDK to get the true current of the motor.
I used the following formula to calculate the current, but I didn't get the proper value.
uint16_t IS16A = MC_GetPhaseCurrentAmplitudeMotor1();
float current = ( IS16 A * VDD ) / ( 65536 * RSHUNT * AMPLIFICATION_GAIN );
where
VDD is 3.3 V
RSHUNT is 0.01
and AMPLIFICATION_GAIN is 12.6
