3-Phase BLDC control with LPC1549 SCTimer high current in reverse direction

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

3-Phase BLDC control with LPC1549 SCTimer high current in reverse direction

1,655 Views
kalanawithanage
Contributor I

I am evaluating LPC1549 for 3 Phase BLDC motor control using NXP sample code (http://www.nxp.com/docs/en/application-note/AN11523.zip) and the corresponding development kit (LPC1549 LPCXpresso Motor Control Kit (BLDC)|NXP ). Just from the initial running, both forward and reverse direction (using bidirectional source code) runs are fine, and speed can be varied. However, when the waveforms are observed with oscilloscope, some weired thing happens in the reverse direction. Also the current consumption is about 3 times higher than the forward current at similar speed (lower speed 0.2A vs 0.6A, higher speed 1.2 A vs 3.8 A). 

Forward direction hall sensor input (A, B, C) vs Phases (A, B, C)

DS1Z_QuickPrint78.png

Reverse direction hall sensor input (A, B, C) vs Phases (A, B, C) - at lower speed

DS1Z_QuickPrint69.png

Reverse direction hall sensor input (A, B, C) vs Phases (A, B, C) - at higher speed

DS1Z_QuickPrint73.png

Commutation sequence seems fine in both. At higher speed in both forward and reverse some glitches were observed in hall sensor input. That may be due oscilloscope limitation as well.

Interesting things is, if the hall sensor input are swapped (Phase A and C) and motor phases are swapped (Phase B and C), and forward is commanded through software, phase outputs seems similar and healthy in both direction, and current consumption is low (low speed: 0.2 A, high speed 1.2 A). Having that result by swapping in hardware means, we are feeding the same phase sequence as it should be in reverse. It looks more of a software issue than hardware (driver stage and motors look ok). Has anybody experienced similar with SCTimer? Any points I am missing?

Thanks!

3 Replies

982 Views
valentin_vte_ta
Contributor I

Hello ,

Regarding to the Kalana correction , is it possbile to get the updated "AN11523" file with the state machine corrected ?

Best Regards

0 Kudos

982 Views
kalanawithanage
Contributor I

DSC_0370.jpg

After working out the basic state transition, it was found there is a fundamental mistake in switched H Bridge gates in reverse direction state machine in AN11523: BLDC motor control using the LPC15xx SCTimer/PWM application note and its associated source code. It should be corrected as shown in the above figure. Forward direction state machine is correct, and the issue is only for reverse direction. This explains unusual high current in reverse and observed waveforms in reverse direction. After fixing the state machine, for both forward and reverse direction phase waveforms and drawing current became normal. 

982 Views
Carlos_Mendoza
NXP Employee
NXP Employee

Hi Kalana,

Thanks for the feedback and information, I have sent it to the LPC Applications team.

Best Regards!
Carlos Mendoza
Technical Support Engineer

0 Kudos