Associate III
November 12, 2021
Question
Problem with current reading in STM MC 5.Y.3 (EVSPIN32G4) and BLDC and ABI encoder
- November 12, 2021
- 1 reply
- 1378 views
I have genereted project for inverter EVSPIN32G4 in MC SDK 5.Y.3 (FV 1.4, MX 6.3.0) - project is attached to this thread.
I have added in project :
int16_t g_goal_torque;
int16_t g_current_torque;
uint16_t g_mc_current_faults_motor;
uint16_t g_mc_occured_faults_motor;
State_t g_stm_state_motor;and in loop:
g_current_torque = MC_GetPhaseCurrentAmplitudeMotor1();
g_stm_state_motor = MC_GetSTMStateMotor1();
g_mc_current_faults_motor = MC_GetCurrentFaultsMotor1();
g_mc_occured_faults_motor = MC_GetOccurredFaultsMotor1();
MC_ProgramTorqueRampMotor1(g_goal_torque, 0);
MC_StartMotor1();When I run the application I have readings of current not near 0, but near 2700 (in pictures).
I have second issue (it is very possible, that this issue is connected with first one).
When I set torque (variable g_goal_torque) something about 2000, joint sometimes starting with oposite direction or start to sheaking.
Could You help me with find solution to fix those issues?
