AnsweredAssumed Answered

Brushless Motor control with Hall sensors (sensored)

Question asked by galea.glenn on Mar 17, 2016
Latest reply on Apr 1, 2016 by Gigi
Hi there,


I have built my own circuits to drive a BLDC motor. So far I have managed to get an RC BLDC motor working quite smoothly in open loop. However my 1kW motor is not running good at all, it cgs at lows speed and locks up at high speeds. I am assuming since it has larger inertia hence in can only work in closed loop (i.e. with hall sensors)


For more information and videos on my progress so far visits this link
https://endless-sphere.com/forums/viewtopic.php?f=3&t=70870


Having said that I am struggling a bit to implement closed loop control. I have found this code which seems to be fine although it is not complete. Currently in the process of seeing what is happening via the datasheet. 


The code is found here: http://www.mikrocontroller.net/articles/STM32_BLDC_Control_with_HALL_Sensor


Now I think not everything is perfect in this code. My first question is where he is configuring TIM4 according to his calculations it take 3.5s for the Timer to overflow, however I consulted the datasheet and done my own calculations and the frequency comes out to 10.09Hz hence 0.1 sec for the timer to overflow not 3.5s. Is this correct?

12873586_10153344760516561_1831924272_o-min.jpg

Are my calculations correct?

Regards Glenn

Outcomes