cancel
Showing results for 
Search instead for 
Did you mean: 

STEVAL-ESC002V1 unable to run motor properly.

shashank7
Associate

Hey Guys,
I’m facing an issue with motor operation using the STEVAL-ESC002V1 solution. Despite setting MC_set_speed(MAX_SPEED), the motor doesn’t reach full speed and runs unevenly with vibrations. It only rotates at a low speed instead of the expected maximum. I’ve attached my workspace configuration for reference. Kindly help me identify and resolve this issue to achieve smooth and stable motor operation.


int main(void)
{

/* MCU Configuration----------------------------------------------------------*/

/* Reset of all peripherals, Initializes the Flash interface and the Systick. */
HAL_Init();

/* Configure the system clock */
SystemClock_Config();

/* Initialize all configured peripherals */
MX_GPIO_Init();
#if (defined(POTENTIOMETER)||defined(CURRENT_SENSE_ADC)||defined(VBUS_SENSE_ADC)||defined(TEMP_SENSE_ADC))
MX_ADC_Init();
#endif
#if defined(ST_PWM_INTERFACE)
MX_IF_TIMx_Init();
#endif
MX_LF_TIMx_Init();
MX_HF_TIMx_Init();
MX_ZC_TIMx_Init();
#if defined(UART_COMM)
MX_UART_Init();
#endif



MC_SixStep_INIT();
MC_StartMotor();

 

/* Infinite loop */
while (1)
{
MC_Set_Speed(MAX_SPEED);


}
}
in the setting i had enable the UART_COM (project->option->symbols)


0 REPLIES 0