cancel
Showing results for 
Search instead for 
Did you mean: 

STEVAL-ESC001V1 and drone motor Compatibility with MC Workbench 6.4.1

santhosh16
Senior

Dear ST Support Team,

I am working with the STEVAL-ESC001V1 evaluation board and a drone motor listed at the following link:
https://www.dys.hk/product/D2826.html RPS for power supply given directly to ESC power pins of 12V and 2A current.

My objective is to run this motor using ST MC Workbench software version 6.4.1. I would like to confirm whether any additional hardware, such as an STM32 development board, is required in order to operate the motor with this setup.

During system configuration in MC Workbench, I created a new project and selected STEVAL-ESC001V1 for the inverter section and Bull Running BR2804-1700KV for the motor section. However, when I later attempted to edit the project, the motor selection options displayed only two types of PMSM motors. Could you please clarify whether MC Workbench supports only PMSM motors? The motor I am using is a BLDC motor, as specified above.

Additionally, I would like to inquire whether an example project for STEVAL-ESC001V1 is available for MC Workbench version 6.4.1. I noticed that such an example is available in version 5.4.8, so I attempted to install that version. However, during installation, I encountered the following error:

“Can't write:
C:\Program Files (x86)\STMicroelectronics\MC_SDK_5.4.8\Middlewares\ST\MotorControl\MotorControl_Configs.xml”

The installer repeatedly attempts to write to the installation directory but fails at this step.

I would appreciate your guidance on these issues.

Thank you for your support.

Kind regards,
Santhosh.

 

25 REPLIES 25

Hi @GMA,
Is that means FOC algorithm is not meant for drone motors?
And, yeah I have tried that 6-step algorithm but its generated error as below,
multiple definition of `TIM2_IRQHandler'multiple definition of `TIM2_IRQHandler'

 

as multiple definition of `TIM2_IRQHandler'. While checked further the `TIM2_IRQHandler' function has defined in two different files. 
1. in the esc.c
Screenshot (44).png

 

 

2. in stm32f30x_mc_it.c
Screenshot (42).png

 

Screenshot (43).png

 

If possible kindly help me to merge this function if it is have to..
Or any other possible solutions.
Thanks,
Best Regards,
Santhosh.

STuser2
Senior III

I can help to compile the code but not sure of the functionality or i have not got in details of the interrupt handler.

Comment this section of the code

// #define PERIOD_COMM_IRQHandler TIM2_IRQHandler

, it is in the file parameters_conversion_f30x

it will compile. You can call in TIM2_IRQHandler(void) the below function

PERIOD_COMM_IRQHandler();

as below

void TIM2_IRQHandler(void)
{

  /* Clear TIM1 Capture compare interrupt pending bit */
  LL_TIM_ClearFlag_CC1 (TIM2);

  /* Get Pulse width and low pass filter it to remove spurious informations */    
  ESC_M1.Ton_value = esc_capture_filter(&ESC_M1, LL_TIM_OC_GetCompareCH2(TIM2));

  /* Fail safe mechanism: stops the motor is the PWM input is disabled */
  ESC_M1.watchdog_counter++;
  if(ESC_M1.watchdog_counter == 0)
     ESC_M1.watchdog_counter = 1;
 PERIOD_COMM_IRQHandler();
}

As i already mentioned i only tried to compile not the functionality, you can verify the interrupt by placing the break point etc.

Hi @santhosh16 ,
Can you confirm if you have turned Electronic Speed Control On in stage configuration tab?

Motor reacts to PWM input only if it is turned on. otherwise, you can try running the motor using motor pilot. Let me know how it goes I am kind of working on similar configurations in my project. 
Thank you.

Hi STuser2,

So, is the range of the input of
the Frequency: 500 Hz and duty cycle of 53%(1.03 milliseconds on time) to run it on minimum speed?

Best Regards,
Santhosh.

Hi @Prof_McGonagall,
Kindly subscribe to this question.
Screenshot (46).png

so that, if some one answer to this post will notify to you.

Regards,

Santhosh.

santhosh16
Senior

Hi @STuser2@GMA@Prof_McGonagall,

The PWM input was initially set to 5 V, which resulted in the motor being unresponsive. After reducing the input to 3.3 V, the motor operates correctly. However, even at a stable minimum input, the motor current and speed increase gradually. At a certain speed, a sudden jerk is observed, after which the motor settles and runs at a constant minimum speed. I will raise this issue in a separate query.

Regards,

Santhosh