You are on page 1of 6

1216

IEEE TRANSACTIONS ON INDUSTRY APPLICATIONS, VOL. 42, NO. 5, SEPTEMBER/OCTOBER 2006

An Improved Microcontroller-Based Sensorless Brushless DC (BLDC) Motor Drive for Automotive Applications
Jianwen Shao, Member, IEEE
AbstractThe direct back-electromotive-force (EMF) detection method previously described in a sensorless brushless dc (BLDC) motor-drive system (Proc. IEEE APEC, 2002, pp. 3338) synchronously samples the motor back EMF during the pulsewidthmodulation (PWM) off time without the need to sense or reconstruct the motor neutral. Since this direct back-EMF-sensing scheme requires a minimum PWM off time to sample the backEMF signal, the duty cycle is limited to something less than 100%. In this paper, an improved direct back-EMF detection scheme that samples the motor back EMF synchronously during either the PWM on time or the PWM off time is proposed to overcome the problem. In this paper, some techniques for automotive applications, such as motor-rotation detection, and current sensing are proposed as well. Experimental results are presented. Index TermsBack-electromotive-force (EMF) detection, current sensing, motor-rotation detection, sensorless brushless dc (BLDC).

I. I NTRODUCTION HERE ARE many motors inside a modern car with the majority of them brushed dc motors. In recent years, the brushless dc (BLDC) motor is receiving more interest for automotive applications. This is due to the higher reliability/ longevity, lower maintenance, and quieter operation that BLDC has compared to its brushed dc counterpart. Over the last decade, continuing improvements in power semiconductors and controller ICs as well as the permanent-magnet brushless motor production have made it possible to manufacture reliable cost-effective solutions for a broad range of adjustable speed applications. As matter of fact, BLDC motors are being designed in or currently used in power steering, engine cooling fan, fuel/water pump, air-conditioning compressor, and heating, ventilating, and air-conditioning (HVAC) blower motors. For three-phase BLDC motors, six-step commutation with 120 conduction time allows the current to ow in only two phases at any one time. This leaves the third phase available for sensing back EMF, which indicates the rotor position. Since the back EMF is directly related to the rotor position, sensing the back EMF will enable the controller to drive the motor
Paper IPCSD-06-055, presented at the 2005 Industry Applications Society Annual Meeting, Hong Kong, October 26, and approved for publication in the IEEE TRANSACTIONS ON INDUSTRY APPLICATIONS by the Industrial Drives Committee of the IEEE Industry Applications Society. Manuscript submitted for review October 15, 2005 and released for publication June 1, 2006. This work was supported primarily by the ERC Program of the National Science Foundation under Award EEC-9731677. The author is with the STMicroelectronics Power System Applications Laboratory, Schaumburg, IL 60173 USA (e-mail: jianwen.shao@st.com). Digital Object Identier 10.1109/TIA.2006.880888

without Hall or other type position sensors. The back-EMF zero crossing of this third oating phase can be used to determine the commutation sequence. Both Erdman [2] and Uzuka and Uzuhashi [3] originally proposed the method of sensing back EMF to build a virtual neutral point that will, in theory, be at the same potential as the center of a Y wound motor and then to sense the difference between the virtual neutral and the voltage at the oating terminal. However, when using a chopping drive, the pulsewidth-modulation (PWM) signal is superimposed on the neutral voltage, inducing a large amount of electrical noise on the sensed signal. Moreover, the magnitude of the signal is often outside the common mode input range of the comparator used to sense the back EMF. To sense this properly requires a lot of ltering and attenuation. The ltering causes unwanted delay in the signal. The attenuation is required to bring the signal down to the allowable common mode range of the sensing circuit. The result is a poor signal-to-noise ratio of a very small signal, especially at startup where it is needed most. Consequently, this method tends to have a narrow speed range and poor startup characteristics. To reduce the switching noise, the back-EMF integration [4] and third harmonic voltage integration [5] were introduced. The integration approach has the advantage of reduced switching-noise sensitivity. However, they still have a problem at low speed since attenuation cannot be avoided. A direct back-EMF-sensing scheme in which back-EMF signals can be directly extracted for each phase without sensing the motor neutral point is presented in [6]. This is done by synchronously detecting the back EMF of the oating phase during the high-side-switch PWM off time. This back-EMFsensing scheme has advantages over the conventional method [2][5]. There is no attenuation in the back-EMF signal, and no high common mode voltage issue since the motor neutral voltage is not used for zero-crossing comparison. Precise backEMF zero-crossing detection can be achieved without low pass ltering. As a result, this control method has wider speed range and better startup performance. This direct back-EMF-sensing scheme has been implemented into a low-cost microcontroller [6], and it has been used for various applications [7], [8]. Certain improvements of this method, such as reducing power loss in the MOSFETs for low-voltage applications, reducing time delaying in highvoltage applications, were reported in [8]. However, since this direct back-EMF-sensing scheme requires a minimum PWM off time, the duty cycle is limited to something less than 100%. In many automotive applications, the desire is to run the

0093-9994/$20.00 2006 IEEE

SHAO: IMPROVED MICROCONTROLLER-BASED SENSORLESS BLDC MOTOR DRIVE FOR AUTOMOTIVE APPLICATIONS

1217

Fig. 2. Back-EMF detection during the PWM off-time moment. Fig. 1. Direct back-EMF-sensing block diagram.

motor at 100% duty cycle to fully utilize the low bus voltage. An improved direct back-EMF detection scheme that samples the motor back EMF synchronously during either the PWM off time or the PWM on time is proposed in the paper to overcome this problem. In automobiles, windmilling effect can make fans rotate without electric power. When the controller needs to control the motor, if the motor is already spinning, the controller should be able to determine if the motor is rotating and in what direction. In this paper, a method for the microcontroller to detect the motor rotation is presented. Also, a current-sensing method for protection without a current-sensing resistor is proposed in this paper as well. II. R EVIEW OF D IRECT B ACK -EMF S ENSING FOR BLDC D RIVES [6] Generally, a BLDC motor is driven by a three-phase inverter with what is called six-step commutation. In the reference scheme [6], the PWM signal is applied to the high side switches only. The back-EMF signal can be synchronously sampled on the unused phase during the high-side-switch PWM off time. The back-EMF signals are directly fed into the microcontroller through resistors, as shown in Fig. 1. In this scheme, only three resistors that limit the injected current are needed for back-EMF sensing. Assuming at a particular step, phases A and B are conducting current, and phase C is oating. The upper switch of phase A is pulsewidth modulated to regulate motor speed or current. The lower switch of phase B is on during the entire step, which is switched only at commutation. The terminal voltage c is sensed when the upper switch is off. When the upper switch of phase A is turned on, the current is owing through the switch to windings A and B. When the upper transistor of the half bridge is turned off, the current freewheels through the diode paralleled with the bottom switch of phase A, as shown in Fig. 2. During this freewheeling period, the terminal voltage c is detected as phase C back EMF when there is no current in phase C. From the circuit in Fig. 2, it is easy to see that c = ec + n , where c is the terminal voltage of the oating phase C, ec is the phase back EMF, and n is the neutral voltage of the motor.

From phase A, if the forward voltage drop of the diode is ignored, we have n = 0 ri L di ea . dt (1)

From phase B, if the voltage drop on the switch is ignored, we have n = ri + L Adding (1) and (2), we get n = ea + eb . 2 (3) di eb . dt (2)

Assuming a balanced three-phase system, if only the fundamental frequency is considered, we have ea + eb + ec = 0. From (3) and (4) n = So, the terminal voltage c c = ec + n = 3 ec . 2 (6) ec . 2 (5) (4)

From the above equations, it can be seen that during the PWM off time, which is the current freewheeling period, the terminal voltage of the oating phase is proportional to the back-EMF voltage without any superimposed switching noise. It is also very important that this terminal voltage is directly referred to the ground instead of the neutral point. So, the neutral-point voltage information is not needed to detect the back-EMF zero crossing. Since the true back EMF is extracted from the motor terminal voltage without any ltering, the zero crossing of the phase back EMF can be detected very precisely. Synchronously sampling the back-EMF signal near the end of the PWM off time allows any switching noise to settle out and allows sampling the signal without any ltering and the associated delay. However, it requires a minimum PWM off time of a few microseconds to detect the back EMF. This limits the maximum

1218

IEEE TRANSACTIONS ON INDUSTRY APPLICATIONS, VOL. 42, NO. 5, SEPTEMBER/OCTOBER 2006

Fig. 3. Winding terminal voltage during the PWM on time.

duty cycle to around 90% for 20-kHz switching frequency. In some automotive applications, it is desired to be able to run the motor at 100% duty cycle to fully utilize the low battery voltage. Then, the voltage constant of the motor can be increased by 10%. It will benet the motor design and improve the overall system efciency. If the back-EMF detection can be done during PWM on time, then the limitation on the maximum duty cycle can be removed, and the motor can be driven with the full 100% duty cycle. An improved back-EMF detection is described in the following section. III. I MPROVED D IRECT B ACK -EMF-S ENSING S CHEME : D ETECT THE B ACK EMF D URING THE PWM ON T IME We can derive the oating-phase terminal winding voltage during the PWM on time. As shown in Fig. 3, it is assumed that phases A and B are conducting current; phase C is oating. From phase A, we can derive the value of n n = dc ri L di ea . dt (7)

Fig. 4.

Hardware implementation for improved back-EMF detection.

Therefore, during the high-side-switch PWM on time, the back-EMF zero-crossing information can be obtained by comparing the phase voltage with dc /2. By sensing the back EMF during high-side-switch PWM on time, it is possible to extend the duty cycle to 100%. In many cases, it will require attenuation to bring the dc /2 to be within the common mode voltage range of the comparator. This should not be a problem since the amplitude of the back-EMF signal is high during highspeed operation. It is still preferred to use back-EMF detection during PWM off time for startup because there is no signal attenuation. Therefore, we can combine two sensing schemes together to optimize the system. That is, during startup and low-speed (e.g., < 50% duty cycle) operation, the back EMF can be detected during PWM off time, and then during highspeed (e.g., > 50% duty cycle) operation, the back EMF can be detected during PWM on time. IV. I MPLEMENTATION AND E XPERIMENTAL R ESULTS

From phase B, we can derive the value of n n = ri + L From (7) and (8), we derive n = ea + eb dc . 2 2 (9) di eb . dt (8)

In a balanced three-phase system, if only the fundamental frequency is considered, we have ea + eb + ec = 0. Incorporating (10) into (9), we obtain n = ec dc + . 2 2 (11) (10)

So, the terminal voltage c can be expressed by c = ec + n = 3 dc ec + . 2 2 (12)

Fig. 4 shows the hardware implementation for this combined direct back-EMF detection scheme. According to the commutation sequence, the controller selects which phase back EMF to sense via the multiplexer. The multiplexer passes the selected phase back-EMF signal to the sense comparator. The selected phase voltage is compared to a reference for determining back-EMF zero crossing and is latched accordingly. This reference can be either internal or external and is selectable according to which back-EMF-sensing scheme is used. The comparator output can be latched during either PWM on time or off time again, which is selectable by software. When the back-EMF zero crossing is detected during the PWM off time, the internal xed reference, which is close to 0 V, is selected. When the back-EMF zero crossing is detected during the PWM on time, the external reference is selected. The external reference voltage would be proportional to dc /2. The software can make the transition smoothly by looking at duty cycle. The improved direct back-EMF-sensing hardware integrated with a standard low-cost specic application microcontroller,

SHAO: IMPROVED MICROCONTROLLER-BASED SENSORLESS BLDC MOTOR DRIVE FOR AUTOMOTIVE APPLICATIONS

1219

Fig. 5.

Implementation of improved direct back-EMF-sensing scheme. Fig. 6. Key waveforms for back-EMF sensing during PWM off time.

which is the ST7MC, is developed. Fig. 5 shows a system block diagram of the microcontroller system that can do both backEMF detection schemes during the high-side-switch PWM on or off time. During startup and at low PWM duty cycles, the controller is congured to detect back EMF during the PWM off time. During PWM off time, the back-EMF zero-crossing event voltage is at or near 0 V, so the reference voltage is set to the xed low internal voltage. With that, the input/output A (IOA), input/output B (IOB), and input/output C (IOC pins are congured as high-impedance inputs to prevent the attenuation generated by the R1/R4, R2/R5, and R3/R6 resistor pairs. This allows the controller to see the actual back-EMF voltage without attenuation thus improving low-speed sensitivity and startup performance. At higher duty cycles, the controller is congured to detect back EMF during the high-side-switch on time. Here, attenuation is needed to bring the voltage within the common mode range of the comparator as the back-EMF zero-crossing event is centered on dc /2. With that, the IOA, IOB, and IOC pins are recongured as outputs and set to logic low. All back-EMF signals are then attenuated by the R1/R4, R2/R5, and R3/R6 resistor pairs. The microcontroller will select the external reference, the attenuated dc bus voltage, for back-EMF zero-crossing detection. Figs. 6 and 7 show waveforms for the improved detection scheme that the back EMF is sampled during PWM off time and on time. In Fig. 6, the back EMF is detected during PWM off time; there is no attenuation of the signal, but the peak of the signal is clamped at 5 and 0.7 V by the internal protection diodes. Since only the back EMF of the oating winding is detected, the sensing pin of the microcontroller is tied to ground when the winding is conducting to reduce the noise. This is shown in Fig. 6; during the period that the winding is energized with PWM, the sensing signal is low. For the zero-crossing signal, which is shown on the second trace, every toggling transition corresponds to one zero crossing detected. In Fig. 7, the back EMF is detected during PWM on time, the signal is attenuated. Since the amplitude of the signal is high

Fig. 7. Key waveforms for back-EMF sensing during PWM on time.

during high-speed operation, the attenuation is not a problem. Please note the different back-EMF shape in Figs. 6 and 7. Fig. 8 demonstrates a running system at 100% duty cycle. The waveforms show the terminal voltage, current, and zerocrossing signal for same phase. From this waveform, it can be seen that the back-EMF zero crossing happens at half of the dc-bus voltage. A. Startup The sensorless schemes are not self-starting. In order to sense the back EMF, the motor must rst be started and brought up to a certain speed where the back-EMF voltage can be detected. In practice, open-loop starting [10] is accomplished by providing a rotating stator eld with a certain increasing frequency prole. After the speed reaches certain level, the back EMF can be detected, providing the position information and the system switches to synchronous commutation mode. If there is no specic requirement for startup or light load, like fan applications, this open-loop startup can be satisfactory. However, for some applications, e.g., automotive fuel pumps,

1220

IEEE TRANSACTIONS ON INDUSTRY APPLICATIONS, VOL. 42, NO. 5, SEPTEMBER/OCTOBER 2006

Fig. 9.

Back-EMF signals when motor is rotating by windmilling effect.

Fig. 8. Running system at 100% duty cycle.

the startup has to be very fast to ensure that there is sufcient fuel pressure within a very short time. It is very difcult to tune the startup using the open-loop starting algorithm. In [7] and [11], an optimized startup routine by manually tuning the commutation time with the help of a tachometer is described. According to the feedback of the tachometer, each commutation step time during startup is set such that the motor speed reaches maximum value at the end of that step. This method is also suitable for medium-to-heavy-load startup condition. V. M OTOR -R OTATION D ETECTION AND C URRENT S ENSING A. Motor-Rotation Detection Sometimes, the motor is rotating before the controller starts the motor. For example, in an automotive engine cooling fan, there can be a windmilling effect that could cause the rotor to rotate without electrical power. A rotating rotor generates detectable back EMF. Once back EMF is detected, rotation can be determined. If the rotor is rotating in the right direction, there is no need to perform the startup. If the rotor is rotating in the wrong direction, then the microcontroller should be able to sense this and make the proper corrections to start the motor properly in the right direction. If the system is congured, as shown in Fig. 1, the back-EMF signals are shown in Fig. 9 when the motor is turning because of the windmilling effect. In an electrically undriven motor, where the rotor is rotating by some external means, the back-EMF signals are oating. With no reference to the motor neutral point, the microcontroller is prevented from detecting the back-EMF zero crossing. To provide a reference point for the microcontroller, three other resistors (Rn) are added, as shown in Fig. 10. As a result, the back-EMF signals will change to those shown in Fig. 11. In Fig. 11, the zero crossings of the three-phase back-EMF signals are clearly identiable. At rising edge of a , according to the sign of b and c , the rotation direction can be determined. For example, if the motor is turning in right direction, the sequence of three phases is ABC; otherwise, if the motor

Fig. 10.

Three resistors Rn are added in the winding terminals.

Fig. 11.

Back-EMF signals after adding three terminal resistors.

is turning backward, the sequence will be ACB. Since the motor is turning in right direction, as shown in Fig. 11, at rising edge of a , b is low and c is high. If there is no signal at a , b , and c , the motor is not running. If the micro detects that the motor is turning in right direction, zero crossing of the back EMFs is available for the rotor position. Therefore, the controller can drive the motor directly in synchronous mode according to the zero-crossing information without regular startup routine. The controller can estimate the motor speed and give PWM duty cycle accordingly. If the motor is turning in wrong direction, the controller has to brake the motor by shorting three bottom MOSFET or injecting dc braking current. After the motor stops, the controller can perform the regular startup routine. B. Current Sensing To protect the circuit from overcurrent conditions or rotor stall condition, some form of current sensing is required. The most common solution is to place a low-ohm current-sensing resistor in the current path at one of the power rails (ground

SHAO: IMPROVED MICROCONTROLLER-BASED SENSORLESS BLDC MOTOR DRIVE FOR AUTOMOTIVE APPLICATIONS

1221

Fig. 12. Current-sensing circuit.

the system can switch to the alternative back-EMF-sensing scheme introducing some attenuation to the back-EMF signal and allowing for the high side switch to be full on. With the combination of two detection schemes in one system, the motor commutation detection can be optimized over the entire speed range. The experimental results verify this concept and show a good performance. For automotive applications, the algorithm to detect motor rotation caused by the windmilling effect is very useful. Also, the method of measuring voltage drop on MOSFET can provide over-current protection for the circuit but without currentsensing resistor. ACKNOWLEDGMENT The author would like to thank T. Hopkins and D. Swanson for their suggestions and efforts in editing this paper. R EFERENCES
[1] K. Rajashekara, A. Kawamura, and K. Matsuse, Sensorless Control of AC Motor Drives. Piscataway, NJ: IEEE Press, 1996. [2] D. Erdman, Control system, method of operating an electronically commutated motor, and laundering apparatus, U.S. Patent 4 654 566, Mar. 31, 1987. [3] K. Uzuka and H. Uzuhashi et al., Microcomputer control for sensorless brushless motor, IEEE Trans. Ind. Appl., vol. IA-21, no. 4, pp. 595601, May/Jun. 1985. [4] R. Becerra, T. Jahns, and M. Ehsani, Four quadrant sensorless brushless ECM drive, in Proc. IEEE Appl. Power Electron. Conf. and Expo., 1991, pp. 202209. [5] J. Moreira, Indirect sensing for rotor ux position of permanent magnet AC motors operating in a wide speed range, in Proc. IEEE Ind. Appl. Soc. Annu. Meeting, 1994, pp. 401407. [6] J. Shao, D. Nolan, and T. Hopkins, A novel direct back EMF detection for sensorless brushless DC (BLDC) motor drives, in Proc. IEEE APEC, 2002, pp. 3338. [7] J. Shao, D. Nolan, M. Tessier, and D. Swanson, A novel microcontrollerbased sensorless brushless (BLDC) motor drive for automotive fuel pumps, IEEE Trans. Ind. Appl., vol. 39, no. 6, pp. 17341740, Nov./Dec. 2003. [8] J. Shao, D. Nolan, and T. Hopins, Improved direct back EMF detection for sensorless brushless DC (BLDC) motor drives, in Proc. IEEE APEC, 2003, pp. 300305. [9] J. Shao and T. Hopkins, Determining rotation of a freewheeling motor, U.S. Patent Application 20 050 030 002, 2003. [10] R. Krishnan and R. Ghosh, Starting algorithm and performance of a PM DC brushless motor drive system with no position sensor, in Proc. IEEE PESC, 1989, pp. 815821. [11] J. Shao, D. Nolan, and T. Hopins, A direct back EMF detection for sensorless brushless DC (BLDC) motor drives and the start-up tuning, in Proc. Power Electron. Technol., 2002, pp. 180190.

Fig. 13. Motor current and voltage signal from MOSFET.

or supply) [7]. The current-sensing resistor not only causes additional power losses, but also it brings some difculty in circuit layout and packaging. A solution can be realized by incorporating the properties of the MOSFET switches typically used in the inverter. MOSFETs have a linear resistance characteristic when driven fully on. It is possible to get the current information from the voltage drop seen across a fully enhanced MOSFET switch. This current information is only used for current-protection purposes, therefore, the variation of Rdson is acceptable and in some ways benecial. A simple circuit is proposed to perform the current detection by measuring the low side MOSFET voltage drop. Fig. 12 shows circuit for only one phase. The other two phases are exactly the same. When the MOSFET T4 is turned on, Q1 is turned on. The voltage of point Iv is the voltage drop across the MOSFET T4. When T4 is turned off, Q1 is turned off, too. The voltage of point Iv will be zero. Fig. 13 shows the waveforms. VI. C ONCLUSION The original direct back-EMF-sensing scheme has a maximum duty-cycle limitation, since there is a required highside-switch minimum PWM off time to do the detection. The improved direct back-EMF-sensing scheme eliminates this duty-cycle limitation by adding the option of sensing the back EMF during the high-side-switch PWM on time. An optimized system uses both sensing schemes where during motor startup and low speed, when back EMF is low, it is preferred to use the original scheme, since there is no signal attenuation. Then, at higher speeds, where the back EMF is much easier to detect,

Jianwen Shao (S98A00M06) received the B.E. and M.E. degrees from Tsinghua University, Beijing, China, in 1992 and 1995, and the M.S. degree from Virginia Polytechnic Institute and State University, Blacksburg, in 2000, all in electrical engineering. From 1995 to 1998, he participated in designing low-harmonic high-power multilevel inverters for induction motors in China, as the Lead Design Engineer with Beijing CATCH Technology Company. Since 2000, he has been with the STMicroelectronics Power System Applications Laboratory, Schaumburg, IL, as an Applications Engineer for motor control and lighting systems. He is the holder of two patents in the power electronics area, with more pending. Mr. Shao is a member of the IEEE Industry Applications, IEEE Power Electronics, and IEEE Industrial Electronics Societies.

You might also like