2021-05-31 09:58 AM
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?
2021-06-08 01:56 AM
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
2021-06-08 06:40 AM
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.