2024-04-08 06:05 AM - edited 2024-04-08 11:48 PM
Hello,
I am working on a motor control project that is to be driven battery-powered. This means that the DC current has to be monitored in order to avoid overloading the battery.
I have made a Control Loop which takes in a DC Current reference as input and adjust the torque. The Current Calcuation is derived of the power calculation for the dq-framework.
P = (id*vd+iq*vq) * Conversion_Factor ...
(I am using the standard power calculation provided by ST)
My Problem is that the Internal Power Calculation doesn't match with the external power measurements from the power-supply.
Take a look at the following signals:
Internally measured power, W (red)
Externally measured power, Pin (orange)
The main problem is that (Pin) isn't held stable (flat at ~160W). What could the reason be for the difference between the internally measured power (W) and the externally measured (W)?
Best Regards Nikolaj
Informations:
Motor: BLDC with Hall sensors
Motor Control WorkBench: Version: 6.2.1
MCU: STM32SPINF0
Inverter Board: STEVAL-SPIN3201
Algorithm: FOC
Control Mode: DC Link Current Control (Custom)