Skip to main content
Senior
May 25, 2021
Solved

Is there any sample code to drive bldc motor in sinusoidal control?

  • May 25, 2021
  • 2 replies
  • 1943 views

Hi All.

​Does anyone know about a simple sample code to drive bldc motor with sinusoidal control?

I only want to know the way how to setting PWM and update the PWM output.

MCSDK’s output sample code is hard to use and understand, it take time. ​Something like the device peripheral sample code will suffice.

This topic has been closed for replies.
Best answer by Igor Cesko

Hi Kenji ,

Please try to study Timer example in STM32Cube FW: "\STM32Cube_FW_G4_V1.4.0\Projects\NUCLEO-G474RE\Examples\TIM\TIM_PWMOutput". Or examples "TIM_DMA", "TIM_DMABurst", ... (some others).

Those examples are about PWM control. Maybe this can help.

Regards

Igor

2 replies

Igor Cesko
Igor CeskoBest answer
ST Employee
May 27, 2021

Hi Kenji ,

Please try to study Timer example in STM32Cube FW: "\STM32Cube_FW_G4_V1.4.0\Projects\NUCLEO-G474RE\Examples\TIM\TIM_PWMOutput". Or examples "TIM_DMA", "TIM_DMABurst", ... (some others).

Those examples are about PWM control. Maybe this can help.

Regards

Igor

Explorer
April 29, 2024

Hello @Igor Cesko & @Kenji1 , 

I am unable to find the example code. Could you please send it ? 

Regards
Monica

mƎALLEm
Technical Moderator
April 29, 2024
"To give better visibility on the answered topics, please click on ""Accept as Solution"" on the reply which solved your issue or answered your question."
Kenji1Author
Senior
June 3, 2021

Dear Igor-san

Thank you for the information.

I will check it.