Transcription of AN1083, Sensorless BLDC Control with Back-EMF …
1 2007 Microchip Technology 1 AN1083 INTRODUCTIONThis application note describes a Sensorless brushlessDC (BLDC) motor Control algorithm, implemented usingthe dsPIC digital signal controller (DSC). The algorithmworks by digitally filtering the back-Electromotive Force( Back-EMF ) on each phase of the motor and determin-ing when to commutate the motor windings based on thefiltered Back-EMF signals. This Control techniqueprecludes the need for discrete, low-pass filteringhardware and off-chip motors are used in a variety of applications.
2 Thealgorithm described in this application note targetsBLDC motors that operate in the 40k to 100k electricalRPM range. Some BLDC motor applications that run inthis RPM range are model RC motors, fans, harddrives, air pumps and dental algorithm described in this application note can beimplemented on two Microchip development boardplatforms: PICDEM MC LV Development Board dsPICDEM MC1 Development BoardThe PICDEM MC LV Development Board includes adsPIC30F3010 DSC. The described algorithm wasimplemented on this device because it is included withthe PICDEM MC LV Development Board.
3 However,for cost reduction, you can use the dsPIC30F2010 as asubstitute its default configuration, this board includes a 5 MHzcrystal. A MHz crystal was used during the testingof this resources used on the PICDEM MC LVDevelopment Board are:The resources used on the dsPICDEM MC1 Development Board are:These specifications are common to both hardwareplatforms: Maximum Motor Speed: 100,000 Electrical RPM Tunable PID Speed Control Loop Configurable Open-Loop Start-up Ramp Supports the DMCI Tool (see the Implementing the Algorithm section of this document)FIGURE 1:PICDEM MC LV DEVELOPMENT BOARDFIGURE 2.
4 DsPICDEM MC1 DEVELOPMENT BOARD WITH ATTACHED POWER MODULEP rocessor Type:dsPIC30F3010 or dsPIC2010 MIPS: 21 MIPSP rogram Memory: 2000 24-bit instruction words RAM: 280 MHzAuthor:Reston ConditMicrochip Technology : dsPIC30F6010 AMIPS: 21 MIPSP rogram Memory: 2089 24-bit instruction wordsRAM: 280 bytes(1)Note 1:With signal buffers enabled, RAM usageis 4400 BLDC Control With Back-EMF FilteringAN1083DS01083A-page 2 2007 Microchip Technology MOTOR CONSTRUCTIONThis algorithm has been tested on these motors.
5 4-pole, 12V, 10A fan motor with a maximum speed of 29,000 RPM 14-pole, 12V model airplane motor with a maximum speed of 13,000 RPM 4-pole, 24V, 1A Hurst BLDC motor model DMB0224C10002 These motors have been tested with loads that areproportional to speed they have light loads at lowspeed and full loads at high the Y-connected BLDC motor (see Figure 3), themotor has three leads, each connected to a winding (or series of windings) is connected to acommon point shared by all three windings, as shownin the upper portion of Figure 3.
6 The basic constructionof a simple BLDC motor is shown in the lower portionof Figure 3:Y-CONNECTED BLDC MOTORThe outer layer of the motor, which houses the motorwindings, is the stator. The inner part of the motor is therotor. The rotor consists of opposing magnetic poleslocated around the circumference of the 4 shows a rotor with only two poles, north andsouth. In reality, most motors have more than one setof magnetic poles on the motor turns when a current is passed throughmotor windings, as shown by the arrow (1) in Figure this example, a positive potential is applied to the red(R) lead, and a negative potential is applied to thegreen (G) lead.
7 Charging the motor windings in thismanner generates the magnetic field in the stator,noted by the N and S designations. The rotor then turnsso that the north pole in the rotor aligns with themagnetic south generated in the stator. Likewise, thesouth pole in the rotor aligns with the magnetic northgenerated in the 4:CURRENT FLOW THROUGH WINDINGSRGB100 NSRB rrggbbGcomcomcom110010011101001Y-Connect ed BLDC Motor SchematicBLDC Motor ConstructionCommonRGB1100 NSRB rrggbbGcomcomcomNNSSNNSS110010011101001 Current FlowCurrent flow through windings generatesmagnetic field (designated by N and S) inthe stator, causing the north and southpoles of the rotor to align with the southand north poles, respectively, of the stator.
8 2007 Microchip Technology 3AN1083 SIX-STEP (TRAPEZOIDAL) COMMUTATIONThe method for energizing the motor windings in thesensorless algorithm described in this application noteis six-step trapezoidal or 120 commutation. Figure 5shows how six-step commutation works. Each step, orsector, is equivalent to 60 electrical degrees. Six sec-tors make up 360 electrical degrees, or one arrows in the winding diagram show the directioncurrent flows through the motor windings in each of thesix steps. The graph shows the potential applied at eachlead of the motor during the six steps.
9 Sequencingthrough these six steps moves the motor one 5:SIX-STEP COMMUTATIONFor every sector, two windings are energized and onewinding is not energized. The fact that one of the wind-ings is not energized during each sector is an importantcharacteristic of six-step Control that allows for the useof a Sensorless Control application note uses these terms to describemotor speed: Electrical revolutions per minute (RPMElec) Electrical revolutions per second (RPSElec)It is easier to discuss motor speed in these terms ratherthan mechanical RPM because when talking about elec-trical RPM, the number of motor poles does not have tobe factored in.
10 The relationship between mechanicaland electrical RPM is seen in these equations:EQUATION 1:MECHANICAL/ELECTRICAL RPM RELATIONSHIP To keep the magnetic field in the stator advancingahead of the rotor, the transition from one sector toanother must occur at precise rotor positions foroptimal torque. The next section discusses how rotorposition is determined in a sensored BLDC 123456 Blue WindingGreen WindingRed WindingSector+VBUS-VBUS+VBUS-VBUS-VBUS+V BUSStepCommutation1 Red winding is driven positive.