Skip to main content
TKlei.5
Associate II
May 27, 2020
Question

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

  • May 27, 2020
  • 7 replies
  • 2031 views

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

This topic has been closed for replies.

7 replies

Laurent Ca...
Senior III
September 11, 2020

Dear TKlei.5

Do you have still this problem to solve?

Best regards

Laurent Ca...

TKlei.5
TKlei.5Author
Associate II
September 16, 2020

Yes.

Laurent Ca...
Senior III
October 14, 2020

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...
Senior III
October 26, 2020

Dear @TKlei.5​ 

Any news?

Best regards

Laurent Ca...

Laurent Ca...
Senior III
November 2, 2020

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
November 26, 2020

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...
Senior III
March 11, 2021

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...