Vous êtes sur la page 1sur 8

Speed control of PMSM using HALL Signal effect with

six pulse inverter in MATLAB/SIMLINK


ABSTRACT electric motor that, from a modeling perspective, looks
The project deals with the detailed modeling of exactly like a PMSM motor, having a linear relationship
a permanent magnet synchronous motor drive system between current and torque, voltage and rpm. It is an
in Simulink. Field oriented control is used for the electronically controlled commutation system, instead of
operation of the drive. The simulation includes all having a mechanical commutation, which is typical of
realistic components of the system. This enables the brushed motors. Additionally, the electromagnets do not
calculation of currents and voltages in different parts move, the permanent magnets rotate and the armature
of the inverter and motor under transient and steady remains static. This gets around the problem of how to
conditions. The losses in different parts are calculated, transfer current to a moving armature. In order to do this,
facilitating the design of inverter. the brush-system/commutator assembly is replaced by an
A closed loop control system with a intelligent electronic controller, which performs the same
Proportional Integral (PI) controller in the speed loop power distribution as a PMSM[3]. PMSM motors have
has been designed to operate in constant torque and many advantages over brushed DC motors and induction
flux weakening regions. Implementation has been motors, such as a better speed versus torque
done in Simulink. A comparative study of Hall signal characteristics, high dynamic response, high efficiency
Effect with Pulse Width Modulation (PWM) control and reliability, long operating life (no brush erosion),
schemes associated with current controllers has been noiseless operation, higher speed ranges, and reduction of
are given for different speeds of operation ,one below electromagnetic interference (EMI). In addition, the ratio
the rated speed and one above the rated speed .in this of delivered torque to the size of the motor is higher,
project speed control of PMSM with six pulse inverter making it useful in applications where space and weight
study and analyses in MATLAB and SIMLINK.. are critical factors, especially in aerospace applications.
The control of PMSM motors can be done in sensor
1. Introduction or sensorless mode, but to reduce overall cost of actuating
For the past two decades several Asian countries such devices, sensorless control techniques are normally used.
as Japan, which have been under pressure from high The advantage of sensorless PMSM motor control is that
energy prices, have implemented variable speed PM the sensing part can be omitted, and thus overall costs can
motor drives for energy saving applications such as air be considerably reduced. The disadvantages of sensorless
conditioners and refrigerators [1]. On the other hand, the control are higher requirements for control algorithms and
U.S.A. has kept on using cheap induction motor drives, more complicated electronics [3]. All of the electrical
which have around 10% lower efficiency than adjustable motors that do not require an electrical connection (made
PM motor drives for energy saving applications. with brushes) between stationary and rotating parts can be
Therefore recently, the increase in energy prices spurs considered as brushless permanent magnet (PM)
higher demands of variable speed PM motor drives. Also, machines [4], which can be categorised based on the PMs
recent rapid proliferation of motor drives into the mounting and the back-EMF shape. The PMs can be
automobile industry, based on hybrid drives, generates a surface mounted on the rotor (SMPM) or installed inside
serious demand for high efficient PM motor drives, and of the rotor (IPM) [5], and the back-EMF shape can either
this was the beginning of interest in BLDC motors. be sinusoidal or trapezoidal. According to the back-EMF
BLDC motors, also called Permanent Magnet DC shape, PM AC synchronous motors (PMAC or PMSM)
Synchronous motors(PMSM), are one of the motor types have sinusoidal back-EMF and Brushless DC motors
that have more rapidly gained popularity, mainly because (BLDC or BPM) have trapezoidal back-EMF. A PMAC
of their better characteristics and performance [2]. These motor is typically excited by a three-phase sinusoidal
motors are used in a great amount of industrial sectors current, and a BLDC motor is usually powered by a set of
because their architecture is suitable for any safety critical currents having a quasi-square waveform [6,7].
applications. The brushless DC motor is a synchronous
Because of their high power density, reliability, 2.1. Position and Speed Sensors
efficiency, maintenance free nature and silent operation, As explained before, some of the most frequently used
permanent magnet (PM) motors have been widely used in devices in position and speed applications are Hall-effect
a variety of applications in industrial automation, sensors, variable reluctance sensors and accelerometers.
computers, aerospace, military (gun turrets drives for Each of these types of devices is discussed further below.
combat vehicles) [3], automotive (hybrid vehicles) [8] 2.1.1. Hall-effect sensors
and household products. However, the PMSM motors are These kinds of devices are based on Hall-effect theory,
inherently electronically controlled and require rotor which states that if an electric current-carrying conductor
position information for proper commutation of currents is kept in a magnetic field, the magnetic field exerts a
in its stator windings. It is not desirable to use the transverse force on the moving charge carriers that tends
position sensors for applications where reliability is of to push them to one side of the conductor. A build-up of
utmost importance because a sensor failure may cause charge at the sides of the conductors will balance this
instability in the control system. These limitations of magnetic influence producing a measurable voltage
using position sensors combined with the availability of between the two sides of the conductor. The presence of
powerful and economical microprocessors have spurred this measurable transverse voltage is called the Hall-
the development of sensorless control technology. effect because it was discovered by Edwin Hall in 1879.
Solving this problem effectively will open the way for Unlike a brushed DC motor, the commutation of a PMSM
full penetration of this motor drive into all low cost, high motor is controlled electronically. To rotate the PMSM
reliability, and large volume applications. motor the stator windings should be energized in a
The remainder of the paper is arranged as follows. sequence. It is important to know the rotor position in
Section 2 describes the position and speed control order to understand which winding will be energized
fundamentals of PMSM motors using sensors. Next, following the energizing sequence. Rotor position is
Section 3 explains the control improvements applying sensed using Hall-effect sensors embedded into the stator
sensorless techniques, describing the motor controller [9].
model and the most important techniques based on back-
EMF sensing. Section 4 also briefly analyses the Most PMSM motors have three Hall sensors inside the
sensorless techniques using estimators and model-based stator on the non-driving end of the motor. Whenever the
schemes. In addition, Section 5 compares the feasibility rotor magnetic poles pass near the Hall sensors they give
of the control methods, and describes some relevant a high or low signal indicating the N or S pole is passing
implementation issues, such as open-loop starting. near the sensors. Based on the combination of these three
Finally, Section 6 provides an overview for the Hall sensor signals, the exact sequence of commutation
applications of PMSM motor controllers, as well as can be determined. Figure 1 shows a transverse section of
conclusions are drawn in Section 7. a PMSM motor with a rotor that has alternate N and S
permanent magnets. Hall sensors are embedded into the
2. Position and Speed Control of PMSM Motors stationary part of the motor. Embedding the Hall sensors
Using Sensors into the stator is a complex process because any
misalignment in these Hall sensors with respect to the
PM motor drives require a rotor position sensor to rotor magnets will generate an error in determination of
properly perform phase commutation and/or current the rotor position. To simplify the process of mounting
control. For PMAC motors, a constant supply of position the Hall sensors onto the stator some motors may have
information is necessary; thus a position sensor with high the Hall sensor magnets on the rotor, in addition to the
resolution, such as a shaft encoder or a resolver, is main rotor magnets. Therefore, whenever the rotor rotates
typically used. For PMSM motors, only the knowledge of the Hall sensor magnets give the same effect as the main
six phase-commutation instants per electrical cycle is magnets. The Hall sensors are normally mounted on a
needed; therefore, low-cost Hall-effect sensors are usually printed circuit board and fixed to the enclosure cap on the
used. Also, electromagnetic variable reluctance (VR) non-driving end. This enables users to adjust the complete
sensors or accelerometers have been extensively applied assembly of Hall sensors to align with the rotor magnets
to measure motor position and speed. The reality is that in order to achieve the best performance [10].
angular motion sensors based on magnetic field sensing Figure 1. PMSM motor transverse section [10].
principles stand out because of their many inherent
advantages and sensing benefits.
2.1.2. Variable reluctance (VR) wheel speed sensors

This kind of sensor is used to measure position and speed


of moving metal components, and is often referred as a
passive magnetic sensor because it does not need to be
Nowadays, because miniaturized brushless motors are powered. It consists of a permanent magnet, a
introduced in many applications, new position sensors are ferromagnetic pole piece, a pickup coil, and a rotating
being developed, such as a three branches vertical Hall toothed wheel, as Figure 3 illustrates. This device is
sensor [11] depicted in Figure 2a. The connecting basically a permanent magnet with wire wrapped around
principle between the brushless motor and this sensor is it. It is usually a simple circuit of only two wires where in
reminiscent of the miniaturized magnetic angular encoder most cases polarity is not important, and the physics
based on 3-D Hall sensors. A permanent magnet is fixed behind its operation include magnetic induction [12].
at the end of a rotary shaft and the magnetic sensor is
placed below, and the magnet creates a magnetic field
3. Hall Signal Commutation:
parallel to the sensor surface. This surface corresponds to
the sensitive directions of the magnetic sensor. Three-
Commutation provides the creation of a rotational field.
phase brushless motors need three signals with a phase
shift of 120 for control, so a closed-loop regulation may As mentioned earlier, for proper operation of a PMSM
be used to improve the motor performance. Each branch motor, it is necessary to keep the angle between the stator
could be interpreted as a half of a vertical Hall sensor and and rotor flux as close to 90 as possible. We get a total
are rotated by 120 in comparison to the other. Only a of six possible stator flux vectors with a six-step control.
half of a vertical Hall sensor is used since little space is The stator flux vector must be changed at specific rotor
available for the five electrical contacts (two for the positions, which are usually sensed by the Hall sensors.
supply voltage and three to extract the Hall voltages).
This sensor automatically creates three signals with a The Hall sensors generate three signals that also consist
phase shift of 120, which directly correspond to the of six states. Each of the Hall sensors states correspond
motor driving signals, to simplify the motor control in a to a certain stator flux vector. All of the Hall sensors
closed-loop configuration. A drawing of this devices use states, with corresponding stator flux vectors, are
as angular position sensor for brushless motor control is illustrated in Figure 5.
given in Figure 2b. A first alignment is between the rotor
orientation and the permanent magnet, and a second
alignment is between the stator and the sensor. This
alignment will allow the motion information for the
motor and the information about its shaft angular
position.

Figure 2. (a) Schematic representation of a three


branches Hall sensor. (b) Three branches vertical Hall
device mounted as angular position sensor for brushless
motor control [11].
The next two figures depict the commutation process. The speed Control Commutation ensures the proper rotor
actual rotor position in Figure 6 corresponds to the Hall rotation of the PMSM motor, while the motor speed only
sensors state ABC[110] (see Figure 5). Phase A is depends on the amplitude of the applied voltage. The
connected to the positive DC bus voltage by Q1; phase amplitude of the applied voltage is adjusted using the
C is connected to the ground by Q6, and phase B is PWM technique. The required speed is controlled by a
unpowered. As soon as the rotor reaches a certain speed controller, which is implemented as a conventional
position (see Figure 7), the Hall sensors state changes its Proportional-Integral (PI) controller. The difference
value from ABC[110] to ABC[100]. A new voltage between the actual and required speeds is input to the PI
pattern is selected and applied to the PMSM motor. As controller which then, based on this difference, controls
shown below, when using the six-step control technique, the duty cycle of the PWM pulses which correspond to
it is difficult to keep the angle between the rotor flux and the voltage amplitude required to maintain the desired
the stator flux precisely at 90 in a six-step control speed.
technique. The actual angle varies from 60 to 120. The
commutation process is repeated per each 60 electrical
degrees and is critical to maintain its angular (time)
accuracy. Any deviation causes torque ripples, resulting
in speed variation.

Figure 8. Speed Controller

The speed controller calculates the PI algorithm given in


the equation below.After transforming the equation into a
discrete time domain using an integral approximation
with the Backward Euler method, we get the following
equations for the numerical PI controller calculation:

Where:
e(k) = Input error in step k
This module implements the following true table for hall w(k) = Desired value in step k
signal and EMF signals m(k) = Measured value in step k
u(k) = Controller output in step k information is available by counting the number of pulses
up(k) = Proportional output portion in step k within a fix time period.
uI(k) = Integral output portion in step k
uI(k-1) = Integral output portion in step k-1 The three Hall Effect sensors provide three overlapping
TI = Integral time constant signals giving a 60 wide position range. The three
T = Sampling time signals can be wired to the F280x Input Capture/GPIO
Kc = Controller gain pins, thus speed information is available by measuring the
time interval between two Input Captures. The time
4. The Hysteresis Mode interval is automatically stored by the 280x into a specific
register at each Input Capture. From speed information it
In the hysteresis-type current regulator, the power is numerically possible to get the precise position
transistors are switched off and on according to whether information needed for sharp firing commands.
the current is greater or less than a reference current. The The resolver is made up of three windings (different from
error is used directly to control the states of the power the motors windings): one linked to the rotor and
transistors. The hysteresis controller is used to limit the supplied with a sinusoidal source and two other
phase current within a preset hysteresis band. As the orthogonal coils linked to the stator. A Back EMF is
supply voltage is fixed, the result is that the switching induced by the rotating coil in each of the two stator
frequency varies as the current error varies. The current resolver windings. By decoding these two signals it is
chopping operation is thus not a fixed chopping possible to get cos(q) and sin(q) where q is the rotor
frequency PWM technique. This method is more position. The resolver resolution depends only on the AD
commonly implemented in drives where motor speed and conversion.
load do not vary too much, so that the variation in
switching frequency is small. Here again, both hard and 6. Hall effect Current Sensing device
soft chopping schemes are possible. Since the width of
the tolerance band is a design parameter, this mode A characteristic of the PMSM control is to have only one
allows current control to be as precise as desired, but current at a time in the motor (two phases ON).
acoustic and electromagnetic noise are difficult to filter Consequently, it is not necessary to put a current sensor
because of the varying switching frequency. on each phase of the motor; one sensor placed in the line
inverter input makes it possible to control the current of
5. Shaft Position HALL effect Sensors each phase. Moreover, using this sensor on the ground
line, insulated systems are not necessary, and a low cost
The position information is used to generate precise firing resistor can be used. Its value is set such that it activates
commands for the power converter, ensuring drive the integrated over-current protection when the maximum
stability and fast dynamic response. In servo applications current permitted by the power board has been reached.
position feedback is also used in the position feedback Each current measurement leads to a new PWM duty
loop. Velocity feedback can be derived from the position cycle loaded at the beginning of a PWM cycle. Note that,
data, thus eliminating a separate velocity transducer for during Turn OFF, the shunt device does not have this
the speed control loop. Three common types of position current to sense, regardless of whether the inverter is
sensors are used: the incremental sensors, the three Hall driven in hard chopping or in soft chopping mode. The
Effect sensor and resolver. figure below depicts the shunt current in soft chopping
mode and shows that in the Turn OFF operation the
The incremental sensors use optically coded disks with decreasing current flows through the M2 free wheeling
either single track or quadrature resolution to produce a diode and through the maintained closed M4 (so there is
series of square wave pulses. The position is determined no current observable in the shunt in this chopping mode
by counting the number of pulses from a known reference during Turn OFF). This implies that it is necessary to start
position. Quadrature encoders are direction sensitive and a current conversion in the middle of the PWM duty
so do not produce false data due to any vibration when
the shaft begins rotation. The Quadrature Encoder Pulse
unit of the F280x handles encoders output lines and can
provide 1, 2 or 4 times the encoder resolution. Speed
cycle.
The Permanent Magnet Synchronous Machine block
assumes a linear magnetic circuit with no saturation of the
stator and rotor iron. This assumption can be made
because of the large air gap usually found in permanent
magnet synchronous machines.
Limitations
When you use Permanent Magnet Synchronous Machine
blocks in discrete systems, you might have to use a small
parasitic resistive load, connected at the machine
terminals, in order to avoid numerical oscillations. Large
sample times require larger loads. The minimum resistive
load is proportional to the sample time. As a rule of
Fig. 9 Shunt Resistor Voltage Drop according to thumb, remember that with a 25 s time step on a 60 Hz
PWM DutyCycles (Soft Chopping) system, the minimum load is approximately 2.5% of the
machine nominal power. For example, a 200 MVA PM
In the hard chopping mode during the Turn OFF neither synchronous machine in a power system discretized with
M1 nor M4 drive current, so that the decreasing phase a 50 s sample time requires approximately 5% of
current flows from ground through the shunt resistor via resistive load or 10 MW. If the sample time is reduced to
M2 and M3 free wheeling diodes and back to ground via 20 s, a resistive load of 4 MW should be sufficient.
the capacitor. In this chopping mode it is possible to see Calculation
the exponentially decreasing phase current across the The circuit illustrates the use of the Permanent Magnet
shunt as a negative shunt voltage drop appears. Assuming Synchronous Machine block in motoring mode with a
that neither the power board nor the control board support closed-loop control system built entirely with Simulink
negative voltages, this necessitates that the current be blocks. The complete system includes a six step inverter
sensed in the middle of the Turn ON. block from feedback of hall signal. Two control loops are
7. Position and Speed Sensing PMSM Simulation used; the inner loop synchronizes the pulses of the bridge
The motor in this application is equipped with three Hall with the electromotive forces, and the outer loop regulates
Effect sensors. These sensors are fed by the power the motor's speed, by varying the DC bus voltage. The
electronics board. The sensor outputs are directly wired to mechanical torque applied at the motor's shaft is
the GPIO pins. The Hall Effect sensors give three 180 originally 0 N.m (no load) and steps to its nominal value
overlapping signals, thus providing the six mandatory (3 N.m) at t = 0.1 second. The parameters of the machine
commutation points: The rising and falling edges of the are found in the dialog box section.
sensor output are detected, the corresponding flags are
generated. The system first determines which edge has
been detected, then computes the time elapsed since the
last detected edge and commutates the supplied phases.
The speed feedback is derived from the position sensor
output signals. As mentioned in the previous paragraph,
there are six commutation signals per mechanical
revolution. In other words, between two commutation
signals there are 60 mechanical degrees. As the speed
can be written as:
/T
where is the mechanical angle it is possible to get the
speed from the computed elapsed time between two
captures. Between two commutation signals the angle
variation is constant as the Hall Effect sensors are fixed
relative to the motor, so speed sensing is reduced to a Fig.10.simulation diagram with hall signal effect
simple division.
Set the simulation parameters as follows: When the Back EMF flat top area parameter of the
Type: Fixed-step trapezoidal model is changed from 120 to 0, the model
Integrator type: Runge-Kutta, ode4 reacts exactly like the sinusoidal model. The
Sample time: 5e-6 electromotive force e_a is purely sinusoidal and the
Stop time: 0.2 torque ripple is less than the previous case. The sinusoidal
Set the Flux distribution parameter to Trapezoidal and model requires a larger current to produce the same
run the simulation to observe the motor's torque, speed, torque. That's why the trapezoidal machine is used in high
and currents. Change the Back EMF flat top area torque applications, and the sinusoidal machine in
parameter of the trapezoidal model from 120 to 0 and precision applications.
observe the waveform of the electromotive force e_a.
Fif 8. Conclusions
In this paper a review of position control methods for
PMSM motors has been presented. The fundamentals of
various techniques have been introduced, mainly back-
EMF schemes and estimators, as a useful reference for
preliminary investigation of conventional methods.
Advances in the position control and applications were
also discussed.
To provide insight in control techniques and their
benefits a classification of existing methods and newer
methods were presented with their merits and drawbacks.
From the above discussion, it is obvious that the control
for PMSM motors using position sensors, such as shaft
encoders, resolvers or Hall-effect probes, can be
improved by means of the elimination of these sensors to
further reduce cost and increase reliability. Furthermore,
sensorless control is the only choice for some applications
where those sensors cannot function reliably due to harsh
environmental conditions and a higher performance is
required.

References
1. Iizuka, K.; Uzuhashi, H.; Kano, M.; Endo, T.; Mohri,
Fig.11.speed,torque and stator current. K. Microcomputer Control for Sensorless Brushless
Motor. IEEE Trans. Ind. Appl. 1985, IA-21, 595-601.
The torque climbs to nearly 28 N.m when the motor starts 2. Becerra, R.C.; Ehsani, M. High-Speed Torque Control
and stabilizes rapidly when the motor reaches the of Brushless Permanent Magnet Motors. IEEE Trans. Ind.
reference value. The nominal torque is applied at t = 0.1 Electron. 1988, 35, 402-406.
second and the controller reacts rapidly and increases the 3. Hubik, V.; Sveda, M.; Singule, V. On the Development
DC bus voltage to produce the required electric torque. of BLDC Motor Control Run-Up Algorithms for
Observe the saw tooth shape of the currents waveforms. Aerospace Application. In Proceedings of the 13th Power
This is caused by the six step controller, which applies a Electronics and Motion Control Conference (EPE-PEMC
constant voltage value during 120 electrical degrees to the 2008), Poznan, Poland, September 2008; pp. 1620-1624.
motor. The initial current is high and decreases during the 4. Bonfe, M.; Bergo, M. A Brushless Motor Drive with
acceleration to the nominal speed. When the nominal Sensorless Control for Commercial Vehicle Hydraulic
torque is applied, the stator current increases to maintain Pumps. In Proceedings of the IEEE International
the nominal speed. The saw tooth waveform is also Symposium on Industrial Electronics (ISIE 2008),
observed in the electromotive torque signal Te. However, Cambridge, England, July 2008; pp. 612-617.
the motor's inertia prevents this noise from appearing in 5. Bianchi, N.; Bolognani, S.; Jang, J.H.; Sul, S.K.
the motor's speed waveform. Comparison of PM Motor Structures and Sensorless
Control Techniques for Zero-Speed Rotor Position
Detection. IEEE Trans. Power Electron. 2007, 22, 2466-
2475.
6. Su, G.J.; McKeever, J.W. Low-Cost Sensorless Control
of Brushless DC Motors with Improved Speed Range.
IEEE Trans. Power Electron. 2004, 19, 296-302.
7. Damodharan, P.; Vasudevan, K. Indirect Back-EMF
Zero Crossing Detection for Sensorless BLDC Motor
Operation. In Proceedings of the International
Conference on Power Electronics and Drives Systems
(PEDS 2005), Kuala Lumpur, Malaysia, November 2008;
pp. 1107-1111.
8. Naidu, M.; Nehl, T.W.; Gopalakrishnan, S.; Wurth, L.
Keeping Cool while Saving Space and Money: A Semi-
Integrated, Sensorless PM Brushless Drive for a 42-V
Automotive HVAC Compressor. IEEE Ind. Appl. Mag.
2005, 11, 20-28.
9. Brushless DC Motor Control using the LPC2141
Application Note; AN10661, NXP Semiconductors:
Eindhoven, the Netherlands, October 2007.
10. Brushless DC (BLDC) Motor Fundamentals
Application Note; AN885, Microchip: AZ, USA. 2003.
11. Burger, F.; Besse, P.A.; Popovic, R.S. New Single
Chip Hall Sensor for Three Phases Brushless Motor
Control. Sens. Actuat. A-Phys. 2000, 81, 320-323.
12. Bucak, I.. Position Error Compensation Via a
Variable Reluctance Sensor Applied to a Hybrid Vehicle
Electric Machine. Sensors 2010, 10, 1918-1934.
13. Hernandez, W. Robust Multivariable Estimation of
the Relevant Information Coming from a Wheel Speed
Sensor and an Accelerometer Embedded in a Car Under
Performance Tests. Sensors 2005, 5, 488-508.
Sensors 2010, 10 6943
14. Lee, D. Wireless and Powerless Sensing Node System
Developed for Monitoring Motors. Sensors 2008, 8,
5005-5022.
15. 3-Phase BLDC Motor Control with Hall Sensors
using 56000/E Digital Signal Controllers Application
Note; AN1916, Freescale Semiconductor: TX, USA,
2005.
16. Rajagopalan, S. Detection of Rotor and Load Faults
in Brushless DC Motors Operating Under Stationary and
Non-Stationary Conditions. Ph.D. Dissertation, Georgia
Institute of Technology: Atlanta, GA, USA, August 2006.
17. Shen, J.X.; Iwasaki, S. Sensorless Control of
Ultrahigh-Speed PM Brushless Motor using PLL and
Third Harmonic Back EMF. IEEE Trans. Ind. Electron.
2006, 53, 421-428.
18. Shen, J.X.; Zhu, Z.Q.; Howe, D. Sensorless Flux-
Weakening Control of Permanent-Magnet Brushless
Machines using Third Harmonic Back EMF. IEEE Trans.
Ind. Appl. 2004, 40, 1629-1636.

Vous aimerez peut-être aussi