cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F407 PWM starts late (I want to control the bldc motor by sending a pwm signal to the ESC)

Salihs
Associate

First of all, I don't have a logic analyzer so I can't analyze it well enough. My goal is to realize the control of BLDC motor using ESC.

First calibration is required to realize the control.

For calibration, when the duty cycle is 100%, power is given to the ESC, after 2 seconds the duty cycle is reduced to 0%, after 2 seconds it works in the given duty cycle.  But when I do this with stm32, the pwm starts 2 seconds after powering up and calibration is not provided.

The pwm starts 2 seconds after powering the controller. I tested this with SG90 servo motor, not esc, it started to rotate 2 seconds after powering up. I changed the timer channel but nothing changed.

I tested the ESC and BLDC motor by doing the same job on arduino and it worked (I used servo library)

I also applied the things in the link below and it did not work again.

https://controllerstech.com/how-to-interface-bldc-motor-with-stm32/

 

c45cb612-40c0-45c6-9502-83ca3504044c.png

Ekran Alıntısıdsa.PNGfdsa.PNG

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Salihs
Associate

I solved that, max should be 100 min should be 50 (1ms,2ms)

View solution in original post

1 REPLY 1
Salihs
Associate

I solved that, max should be 100 min should be 50 (1ms,2ms)