Skip to main content
Asantos
Associate III
May 31, 2021
Question

How to determine the maximum phase current of a given PMSM?

Hi,

I'm designing a custom driver for a 50W 24V PMSM. How to calculate the maximum motor phase current to define the shunt resistances and the amplifiers gain?

This topic has been closed for replies.

2 replies

Laurent Ca...
Senior III
June 8, 2021

Dear @Community member​ 

Welcome to the STM32 Community

Could you give more details to the STM32 Community about your setup -the material you use- ?

(HW and also SW: CPU(s), tools and versions, board(s), motor(s) and so on)

And more especially did you use STM32 MC tools (such as MC_suite, STM32 MC Motor Profile, STM32 MC SDK, STM32 MC Workbench, the used example, the origin of the base of your application source code, and so on)?

Best regards

AMend.5
Associate III
June 8, 2021

Laurent,

I designed a custom driver using the STM32G474 and I want to test it using the MCSDK. The figure below is the shunt amplifier of the X-NUCLEO-IHM08M1, the offset voltage is 1.71V. In my custom driver board the shunt amplifier is configured to 1.65V offset and the gain is inverted, as if R4 was wired to Vshunt_1 and R2 was wired to Vshunt_1_GND.

I would like to know how to set the offset voltage on the MC Workbench, and how to modify the generated code to invert the sign of the phase currents.