cancel
Showing results for 
Search instead for 
Did you mean: 

EVSPIN32G4-DUAL board takes very large current

GSB
Associate II

[PN]: EVSPIN32G4-DUAL, STSPIN32G4, STDRIVE101
[VERSION]: 6.4.0
[TOOL]: Motor Control Workbench
[DETAILS]:When I start the motor from motor pilot, even though I have set low peak currents (0.2A) in the project, on startup more than 1.8A is taken from the power supply for approx 0.5s. Afterwards the current stays at 1.3A

[EXPECTED BEHAVIOR]:I would expect the current to be limited to the values specified in the design file.
[HOW TO REPRODUCE]:just start motor from motor pilot

7 REPLIES 7
GMA
ST Employee

Hello @GSB,

What is the maximum current value when plotting IA and IB current signals using MC Pilot?

If you agree with the answer, please accept it by clicking on 'Accept as solution'.
Best regards.
GMA
GSB
Associate II

GSB_0-1754465843911.png

+/- 2.5A spikes. I am using a Faulhaber motor with absolute encoder Biss-C feedback. Eventually I worked out how to start the current and rotor alignment correctly with each other and can reduce the startup and running current to very low values < 20mA for motor. I removed the alignment phase from the motor startup state machine between boot cap charge and run. When the motor turns in positive direction it is stable. When the motor is rotating negatively the current and rototation seems to be unstable after a few seconds and I get the spikes again and the motor just vibrates. Once it gets into the unstable state. I cannot restart the motor from motor pilot without it oscillating, unless I power cycle the board. Where is the parameter set of the unstable motor stored such that the current continues to oscillate unless I power cycle?

GMA
ST Employee

Hello @GSB,

Checking your STWB6 project, the Rshunt value has been modified from 0.01 Ω (default value) to 0.1 Ω. Has the hardware modification been implemented accordingly (which could explain the x10 current factor)?
If you consider making hardware changes to the current sensing path, ensure that the ADC input dynamic range is correct.

If you agree with the answer, please accept it by clicking on 'Accept as solution'.
Best regards.
GMA
GSB
Associate II
Yes the current sense is correct.
GSB
Associate II

When the motor turns in positive direction it is stable. When the motor is rotating negatively the current and rototation seems to be unstable after a few seconds and I get the spikes again and the motor just vibrates. Once it gets into the unstable state. I cannot restart the motor from motor pilot without it oscillating, unless I power cycle the board. Where is the parameter set of the unstable motor stored such that the current continues to oscillate unless I power cycle?

GMA
ST Employee

Hello @GSB,

The discrepancy between measured currents and expected values indicates a misalignment between the parameters provided to the workbench and the hardware configuration.
You can verify this by using an unmodified board and checking the accuracy of the measured currents against the expected currents.
In MCSDK5.4.8 Workbench tool, a Network Gain Calculator tool is available (current sensing box, Calculate feature). If only the Rshunt value has been modified on your biard, the Vout dynamic is approximately 0.3 V. It should ideally be closer to a 3.3 V dynamic.

GMA_0-1754473636695.png

 

 

If you agree with the answer, please accept it by clicking on 'Accept as solution'.
Best regards.
GMA
GSB
Associate II
Hi,
I changed the opamp gain stage to x30 from x7. It changes the value reported in the gui, but it does not change the current in the motor.
Even in open loop current mode, the motor current goes to over 2A when 0.2A is set in the gui.
Also, can you confirm where the motion parameters are stored, such that starting a motor following a power reset is different from restarting motor a subsequent time.