2024-11-04 04:16 PM
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:
Thanks!