cancel
Showing results for 
Search instead for 
Did you mean: 

Newbie question about STSPIN32G4 constant current control.

astrn
Associate

Hi all,

We plan to implement STSPIN32G4 to our custom motor controller solution. For that purpose, we are going to try EVSPIN32G4 board to see if it meet our needs.

 

I have a specific question regarding our implementation. We will use esp32 to communicate with STSPIN32G4 to control the speed of the motor based on the current draw.

Our motor is 5 pole 24VDC/18A with hall effect sensor. So, no FOC implementation is planned.

What we have in mind is to implement a code to esp32 to set a constant speed via user input and observe the motor current draw for about 1 minute to determine the average current draw during that time and calculate the average current value and set the motor to run at that current value constantly.

I played around with a few settings on motor control workbench software and under the Drive Settings Panel there is a option called "Control mode" that can be switched between speed control or torque control. Once torque control is selected, it allows to input "Torque (Iq) current regulator" below with "Target A" value.

My questions are:

  • Is it possible to switch between those 2 control modes of STSPIN32G4 during runtime (when motor is running) sending a command via esp32 using serial communication?
  • Does torque control is same as constant current mode?
  • What does "Flux (Id) current regulator" value do?

 

Thanks!

0 REPLIES 0