cancel
Showing results for 
Search instead for 
Did you mean: 

Calculation of the motor current using the Motor Control SDK function MC_GetPhaseCurrentAmplitudeMotor1()

TKlei.5
Associate III

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

7 REPLIES 7
Laurent Ca...
Lead II

Dear TKlei.5

Do you have still this problem to solve?

Best regards

Laurent Ca...

TKlei.5
Associate III

Yes.

Laurent Ca...
Lead II

Dear @TKlei.5​ 

Could you give more details to the STM32 Community about the material you use (HW and SW, tools and versions, board(s), motor(s) and so on)?

Best regards

Laurent Ca...

Laurent Ca...
Lead II

Dear @TKlei.5​ 

Any news?

Best regards

Laurent Ca...

Laurent Ca...
Lead II

Dear @TKlei.5​ 

As you do not answer, I guess you don't have to solve this problem anymore, therefore I consider this thread closed.

If not, feel free to reopen it by posting a new answer.

Best regards

Laurent Ca...

Fkadr.1
Associate II

Hi i am having same problem

I am using evspin32f0602 single shut board

I want to display motor amp but I am not able to get the value​

Laurent Ca...
Lead II

Dear @Fkadr.1​ 

This is a fairly old (and closed) post.

If you encounter the same issue, please open a new question referring to this post,

otherwise the community will not see your question as it appears here.

Best regards

Laurent Ca...