Skip to main content
NP_it
Associate II
May 18, 2022 7:39 AM UTC
Solved

How to convert s16A current measurements to Nm. Which current value should i consider and how do i convert it.

..

This topic has been closed for replies.
Cristiana SCARAMEL
ST Employee
May 26, 2022 12:58 PM UTC

Hello @NP​,

the torque-current relationship of a motor is defined by the motor Torque Constant (Kt).

Kt = T (torque) / I (armature current) [Nm/A]

I hope this post can help you; if so, consider to mark it as best answer by clicking the label "Select as Best".

"If you feel a post has answered your question, please click ""Accept as Solution"""

3 replies

Cristiana SCARAMEL
ST Employee
May 26, 2022 12:58 PM UTC

Hello @NP​,

the torque-current relationship of a motor is defined by the motor Torque Constant (Kt).

Kt = T (torque) / I (armature current) [Nm/A]

I hope this post can help you; if so, consider to mark it as best answer by clicking the label "Select as Best".

"If you feel a post has answered your question, please click ""Accept as Solution"""
LSong.11
Associate
Jul 26, 2023 6:44 AM UTC

Hi Cristiana, does it represent that the STMotor Pilot read Torque value (unit s16A), equal to current (A) * 65536?

As in the source code mentioned:

/* Set the backup value of hTargetFinal. */

      wCurrentReference = ((int32_t)pHandle->TargetFinal) * 65536;

LSong.11
Associate
Jul 28, 2023 5:37 AM UTC

@Cristiana SCARAMEL 

On speed_torq_ctrl.c there's an explanation STC_ExecRamp(), 

Current(digit) = [Current(Amp) * 65536 * Rshunt * Aop]  /  Vdd micro

looks like Current(digit) is 16 bit, shall s16A change to Volt(digit)? 

Could you help advise? Thanks.