Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Design of PM Motor Drive Course and DSP Based Robot Traction System Laboratory

Download as pdf or txt
Download as pdf or txt
You are on page 1of 13

Design of PM Motor Drive Course and DSP Based Robot Traction System Laboratory 647

JPE 10-6-10

Design of PM Motor Drive Course and DSP Based


Robot Traction System Laboratory
Driss Yousfi† , Saı̈d Belkouch∗ , Abdellah Ait Ouahman∗ , Damien Grenier∗∗ , Bruno Dehez∗∗∗ , and Eric Richard‡

†∗ Dept. of Electrical Eng., Cadi Ayyad University-ENSA, Marrakech, Morocco


∗∗ Ecole Normale Supérieure de Cachan, Université Européenne de Bretagne, France
∗∗∗ Center for Research in Mechatronics, Universite Catholique de Louvain-la-Neuve, Belgium
‡ Institut Supérieur de l’Electronique et du Numérique, Toulon, France

Abstract
This paper presents a part of North Africa/Europe collaboration results in education to develop project-oriented courses in
power electronics and motor drive field. The course aims to teach Permanent Magnet motor drives close to a real world project
of significant size and depth so as to be motivational, namely mobile robot project. Particular skills, student will acquire, are
those relative to the detailed design and implementation of PM motor controllers in DSP based rapid prototyping environment.
Simulation work is completed using graphical modeling tools in Simulink/Plecs, while real-time implementation is achieved
by means of eZdspF2812 board and Simulink/TI C2000 Embedded Target tools. This flexible development environment fit the
robot traction system very well and provides exactly the functionality necessary for an efficient PM motor drives teaching as
demonstrated by a set of simulation and experiments.
Key Words: PM motor drives, course, laboratory, project, simulation/implementation, rapid prototyping, TI C2000, sensorless
control.

I. I NTRODUCTION project management, etc. However, a single large project


spanning all lecture content without preliminary laboratories
Traditionally, the power electronics and motor drives sub-
presents several disadvantages [12],[14]. The links between
ject, for undergraduate programs, included a number of self-
lecture content become hard to achieve and to maintain.
contained and independent laboratories. The objectives were
Students can become overwhelmed with the magnitude of the
focused on observing in practice the theory presented in
task, and might be required to give more effort on project
lectures. Laboratories were not efficient as a learning method
management skills that are not the main focus of the project.
and students found this an unmotivating academic experience.
Further, every student is aware of the overall picture of the
These problems have been continuously examined by sev- project only, except for the subsystem he should handle.
eral experts in the field to develop a better learning envi- Finally, project assessment becomes a large task at the end
ronment [1]-[4],[7]-[13]. Restructuring of the classical power of semester.
electronics course has been recently proposed in [2],[3] to
Our educational intervention, designed to address the afore-
stimulate students for the energy conversion field. Further-
mentioned problems, was to base the practical component of
more, many publications have appeared in the literature about
the power electronics and motor drives subject around mobile
new computer-aided teaching tools [4]-[6], new laboratory
robot project. Then, a combination of several long laboratories
setups [7]-[10] and project-oriented courses [11]-[13] to aid
and the project, linked together by a common robot platform,
in comprehension of topics.
is planned during the academic year. A revised curriculum
It is true that project based learning method greatly increases
was elaborated to focus on the robot project and arranged in
students understanding and helps them to develop several
accordance with its objectives.
important abilities such as cooperation, self-directed learning,
Three international partners have collaborated on this in-
Manuscript received May 31, 2010; revised Sep. 28, 2010 tervention i.e. Cadi Ayyad University-Morocco (UCAM), The
† Corresponding Author: dr yousfi@yahoo.com Universit? Catholique de Louvain-Belgium (UCL) and ISEN
Tel: +212 524 434 746, Fax:+212 524 434 740, Cadi Ayyad Univ. Engineering College-France.
∗ Dept. of Electrical Eng., Cadi Ayyad University-ENSA, Morocco
∗∗ Ecole Normale Supérieure de Cachan, Université Européenne de Bretagne, Firstly, the robot prototypes were developed based on ST7
France microcontroller circuit. The traction systems were built using
∗∗∗ Center for Research in Mechatronics, Universite Catholique de Louvain-
la-Neuve, Belgium Permanent Magnet ‘PM’ Motors. For control purpose, the
‡ Institut Supérieur de l’Electronique et du Numérique, France algorithm codes was implemented in assembly language and
648 Journal of Power Electronics, Vol. 10, No. 6, November 2010

had to increase or decrease the motor speed in leaps, and course proceeds. In these sessions, students design controllers
open-loop, using four duty cycle levels only. Unfortunately, and investigate the drive responses in different situations, in
the control circuit limitation and the conventional organization regard to some specifications.
of motor drive courses have opposed the curriculum evolution. Moreover, control system design using, Simulink / TI C2000
This paper describes the process and advantage of replacing DSP Embedded Target / Code Composer Studio Link devel-
ST7 system by eZdspF2812 board associated with a rapid pro- opment environment, is also covered.
totyping system for all laboratories coupled with the PM motor The rest of the semester, seven weeks, is devoted to
drive subject. It presents also a summary of the redesigned the implementation of PM motor control techniques using
course. Simulink/TI C2000 and eZdspF2812 prototyping system.
PM motors drives i.e. PM DC, Brushless DC (BLDC) and
Permanent Magnet Synchronous Motor (PMSM) drives share A. Laboratory Design
several points; particularly models and controller designs.
Arranged together in one course, they form very smooth, To ensure the laboratory component is as effective as
progressive and time-saving teaching of motor drives. possible, considerable thoughts were given to their design and
In the previous version of the robot, students developed the implementation.
control algorithm and simulated it in Matlab/Simulink. When Long laboratories around the mobile robot are adopted
the functionality of the algorithm was proven, the algorithm to address many of the problems mentioned in the previ-
was manually implemented in Assembly or C to target the ous section i.e. the laboratory should be motivating and the
specific processor. For each modification the code had to be learning should occur during several unstressed sessions, with
updated and debugged which was very time-consuming. opportunities for reflection and allowing deeper learning. In
At present, Computer Aided Control System Design addition, assessing a significant amount of work, rather than
(CACSD) tools are used to generate real-time code automati- a superficial examination of a small task each session, allows
cally. The general idea is to simplify the programming process a more accurate final picture of student success.
by making it more graphical and thus more intuitive with Three two-week laboratories were planned (TABLE I),
CACSD environment. Consequently, any student familiar with and each consists of four two–hour sessions. Students work
building models in Simulink may test and upload easily real- in groups of two. The lecturer and tutor should minimize
time programs. their interference in the laboratory progress and questions are
answered only if asked.
Recently, more and more companies begin to provide rapid
The three laboratories were based on the power electronics
prototyping system based on CACSD software and commer-
and motor drives involved in the robot. They are supported
cially available hardware.
by two tutorials dealing with rapid prototyping system intro-
To our knowledge, TI C2000 Embedded Target, working in
duction and sensors for motor drives. Each tutorial lasts tow
Simulink environment with eZdspF2812 development board,
session of two-hours. The content of these parts is as follows:
is the best for real-time control of energy conversion systems.
Tutorial l: Introduction to the rapid prototyping system
Until now, several papers using similar rapid prototyping
solutions have been published. But in general, these papers - Steps from the model to the implementation: Simulink, Real
describe specific and small size applications such as: active Time Workshop, Embedded Target for TI C2000 DSP and
power filter [15], Power Factor Boost Rectifier [16], battery Code composer Studio.
charging system [17], DC motor control [18] and DC/DC buck - Design, simulation, implementation and verification of con-
chopper [19]. trol systems on eZdspF2812 target.
This paper presents a set of laboratories for the first semester Tutorial 2: Sensors for motor drives
based on eZdspF2812 rapid prototyping system which is also - Current sensing and signal conditioning to fit the ADC
used for the robot project in the second semester. In all exper- voltage range of eZdsp.
iments, controllers are designed and tested in Simulink/Plecs - Incremental encoder and use of QEP inputs to measure the
environment prior to their implementation using TI C2000 motor speed.
library. This saves tremendous amount of time and helps to - Hall effect sensors and use of CAP inputs to detect Hall
speed up the learning and the implementation of real-time signal edges.
applications, besides reducing the hardware cost. Lab. 1: PM DC motor control
- DC motor parameters identification.
II. G ENERAL L AYOUT OF THE C OURSE - DC-DC Converter control implementation and open-loop
The course is conducted in 15 weeks of the first semester operation of the motor.
with four hours of faculty/student contact per week. Since - Motor speed control based on speed step response identifi-
it is part of project-oriented course, the former eight weeks cation.
are devoted to regular classes, in which the motor drive - Cascade current/speed control.
fundamentals and simulations, in addition to DSP software Lab. 2: BLDC motor control
development, are presented. - Brushless motor parameters identification.
During lectures the motor and drive fundamentals are cov- - Speed estimation using the motor Hall effect sensors.
ered. Several simulation sessions are planned for each drive as - Control logic implementation.
Design of PM Motor Drive Course and DSP Based Robot Traction System Laboratory 649

TABLE I
C HRONOLOGICAL OUTLINE OF THE COURSE / LABORATORY III. L ECTURES O UTLINE AND M ATERIAL
For stimulating interest in the topic, PM motor drives
Weeks Topics
W 1-2 Lecture and Simulation: PM DC motor control involvement in industrial applications is exposed [2]. Then,
W 3-4 Lecture and Simulation: BLDC motor control details of PM motor modeling and drive structures are pre-
W 5-7 Lecture and Simulation: PMSM control sented. Fig. 1 illustrates general drive structure.
W8 Tutorial 1: Rapid prototyping system introduction
The key idea through this course is to demonstrate that the
W9 Tutorial 2: Sensors for motor drives
W 10-11 Lab. 1: PM DC motor control control of Brushless motors can be reduced to a DC motor
W 12-13 Lab. 2: BLDC motor control control subject.
W 14-15 Lab. 3: Sensorless PMSM Field Oriented Control Essentially, the problematic is associated with the torque
quality, the speed control accuracy and the drive efficiency.
- Power electronics commutator implementation and open- Thus, the material presented in the lectures focuses on:
loop operation of the motor.
- Cascade current/speed control.
A. PM DC Motor Drive
Lab. 3: PMSM Field Oriented Control
The advantages associated with the inherently stable and
- Current Vector Control implementation for RL load.
relatively simple to control DC machine are indisputable.
- Position estimation using the motor Hall effect sensors.
Closed-loop speed control of PM DC motor:
- Sensorless Field Oriented Control of PMSM.
The controller design is very simple. However, the current
The laboratory tasks are increasingly complex, and match is not controlled.
the progression of material presented in the lectures. Cascade current/speed control of PM DC motor:
Chronological outline of the course/laboratory is presented As shown in Fig. 2, two control loops are used i.e. the
in TABLE I. current (or torque) and the speed loops. The controllers are
During the next semester, students work on the project that designed using linear control theory. This diagram forms the
is the complete design of robots with PM motorization using basis of all PM Motor control schemes of this course.
one of the three presented PM motor drives to deal with
competition rules and constraints.
Besides power electronics and motor drives, there are also B. BLDC Motor Drive and Trapezoidal Commutation
other aspects addressed in this project i.e. optical and mag- BLDC motors can be controlled exactly in the same way as
netic sensors, instrumentation and robot motion control. The a DC motor without presenting brushes drawback.
description of this project is outside the scope of the paper. Current commutation in BLDC motor:
As the back-emf of the motor is trapezoidal, the fed current
B. Sensorless Motor Drive Introduction should be also trapezoidal.
Hall effect sensors are required for the current commutation.
Over the past several years, various advanced sensorless They define 6 sectors for phases feeding.
controls of Permanent Magnet Synchronous Motors have been From the relationship between the phase current and the
developed for industrial drives due to their high power density back-emf shapes, the control logic linking the power switch
and high performance. It is highly desirable to eliminate me- states to Hall effect signals can be elaborated.
chanical sensors in order to reduce costs, save mounting space, Control of BLDC motor:
and improve mechanical robustness and system reliability, At any time there are only two power switches conducting
which is crucial for many applications. current and connecting the source to phases.
Recently, PMSM sensorless drives have been increasingly The model of the BLDC motor is a simple duplicate of the
applied into home appliances [20], automotive [21], aerospace DC motor model of Fig. 2. Consequently, the controller design
actuators [22], medical robotics [23] and many other field. procedure is exactly the same.
Introduction of sensorless control of electric machines in
education has then become a real necessity. However, when
reviewing papers published on this field it is evident that there C. PMSM Drive and Sinusoidal Commutation
has not been so many published, especially for undergraduate In this part, it’s pedagogically very effective to point out
level. This is most likely due to that sensorless techniques that the PMSM can be seen as a BLDC motor with extremely
are mainly investigated as research topic and not so much in precise control of the rotor angle. Sinusoidal commutation is
education. used in this case and higher resolution position sensor such as
The present laboratory suggests investigating a simple speed optical encoder is necessary.
and position estimation method based on Hall effect sensors. PMSM Control in a-b-c reference:
Similar methods are, already, applied to sensorless control To produce smooth torque; the fed current waveform should
of in-wheel motors for Electric Vehicle traction or to other match the sinusoidal back-emf shape of the machine. This is
applications [25],[26]. easier to demonstrate in a-b-c reference.
To derive the mechanical measurement, this technique Two particular control strategies are then considered:
makes use of Hall effect signals and mathematical prerequisite Strategy 1: Maximum torque at given current magnitude.
only. It could be easily implemented using the rapid prototyp- The stator current is in phase with the back-emf. The motiva-
ing environment. tion is to reduce Ri2 losses in the motor.
650 Journal of Power Electronics, Vol. 10, No. 6, November 2010

Fig. 1. Block diagram of PM motor drive system.

Fig. 3. Plecs circuit including DC motor and


MOSFET Full-Bridge DC-DC converter.

Fig. 2. Block diagram of the DC motor model with current and speed
Loops. circuit is built by using Simulink blocks. Especially, ‘Repeat-
ing Sequence’ block is used to generate carrier based PWM
Strategy 2: Unit power factor. The stator current and for voltage modulation.
voltage are in phase. The motivation is to minimize the power This laboratory starts by a preliminary simulation of an
electronics converter design. open-loop motor operation. In this experience, the points to
PMSM Field Oriented Control in d-q reference: highlight, particularly, are the disadvantages of this operation
d-q reference control is introduced using Park transforma- mode:
tion. Attention is focused on the strategy 1. To force the - Free speed response that depends on motor and mechanical
strategy goals, two PI controllers are used: the first control d- system parameters.
current to be zero and the second control q-current to produce - Speed variation with voltage and load disturbances.
the required torque. A speed controller is inserted in the q-axis. - Staring and transient destructive peak current.
Adequate compensation and decoupling results in a model Closed-loop speed control of PM DC motor:
identical to a DC motor. The control system here consists of only one PI speed
The following sections give details on the simulation and feedback. A properly designed feedback controller makes
implementation of PM motor drives. the system faster and insensitive to the parameter and load
changes. However, the peak current arising at the startup
IV. S IMULATION MODELS AND RESULTS is still dangerous and this problem cannot be avoided here
appropriately. This scheme simulation is not presented here.
The programs used to complete the simulations are Simlink Cascade speed/current control of PM DC motor:
and Plecs, sub programs of Matlab. Simulink is adopted for To resolve the three defects of an open-loop operation at
simulation since it’s a control systems oriented environment the same time, it’s necessary to incorporate the speed and the
[4] and it supports the used Texas Instrument kit. current control as shown in Fig. 4. The drive performance
Plecs is a toolbox for simulation of power electronics and becomes very satisfactory (Fig. 5). Note that current limitation
machine systems within Simulink environment. This software can be used here to stop the motor drawing more than its rated
is preferred for this course because it provides a compre- current.
hensive block library and allows very simple and realistic
simulations of electrical circuits.
B. BLDC Motor Drive Simulation
During the next section, simulation models, power circuits
as well as some relevant results will be presented. The Plecs circuit includes a bipolar BLDC Motor supplied
The objective of the control schemes will be to get zero by three-phase Full Bridge inverter. After building the power
steady-state error and good closed-loop dynamic. circuit, students have to accomplish the following tasks:
The PM motors used in this paper have the parameters 1) Reconstitution of Hall effect signals using the available
given in TABLE II. The BLDC motor parameters are used rotor angle (Hall signals Generator).
to simulate both Brushless DC motor and PMSM. 2) Composition of control logic block including PWM.
The complete Simulink model is presented in Fig. 6.
Open-loop operation of BLDC motor:
A. PM DC Motor Drive Simulation
In a first basic simulation, the motor speed is changed using
The Plecs circuit includes a PM DC Motor supplied by the DC link voltage without any modulation. This experience
MOSFET Full-Bridge DC/DC Converter (Fig. 3). The control reveals the perfect similarity between DC and BLDC Motors.
Design of PM Motor Drive Course and DSP Based Robot Traction System Laboratory 651

TABLE II
PARAMETERS OF THE M OTORS

DC Motor Brushless Motor


Nominal power, W 20 20
Nominal voltage, V 24 24
No load speed, rpm 9550 9500
Max. cont. current, A 1.2 0.69
Max. cont. torque, mNm 26.1 14.2
Résistance, Ω 2.32 5.85
Inductance, mH 0.24 0.483 Fig. 4. Simulation model of DC motor cascade speed/current control.
Torque const., mNm/A 23.4 23.5
Rotor Inertia, Kg·m2 452 10−7 59.3 10−7

As, DC voltage control requires an auxiliary power stage,


it’s preferable to handle the motor voltage using modulation
technique applied to the power inverter. During each of the 6
Hall sectors, the power electronics plays exactly the role of a
buck converter.
Cascade current/speed control of BLDC motor:
Similarly to DC Motor case, current and speed loops are
necessary to achieve good transient behavior. High current
protection and robustness against disturbance are also gained.
The performances of the drive are shown in Fig. 7.

C. Simulation of PMSM Filed Oriented Control


The simplest manner to introduce Field Oriented Control
is by using hysteresis controllers in a-b-c reference. This
controller outputs the necessary switching signals to maintain
the motor currents close to the reference currents within a
range that it is fixed by the controller bandwidth Fig. 5. Speed step response of cascade speed/ current controlled DC motor
in simulation.
Sinusoidal phase currents just need to be generated, ac-
cording to the strategy 1, and the torque will be smooth and
maximal. Nevertheless, hysteresis controller does not have Each system can be divided into two sections: the control
a specific switching frequency and generates low frequency and the power circuits. Electrical isolation between these
harmonics which translate to very noisy currents and fast sections is achieved by optically coupled devices.
torque oscillations. This technique is not presented in the In both systems, control circuit is essentially composed
paper. of an eZdspF2812 DSP board and MOSFET drivers which
Field Oriented Control in synchronous d-q reference is correct the power and voltage levels for proper transistors
today widely implemented in industrial motor drives. For this operation. Hall effect current sensors are also included with
reason the course emphasizes in greater detail this technique. their conditioning electronics. The sampling frequencies of the
Simulink model is presented in Fig. 8 in which the Plecs circuit current and speed loops are respectively 10 kHz and 1 kHz.
is the same as in BLDC drive except, obviously, the motor is The power circuit of the DC motor platform involves a Full-
replaced by a PMSM. Bridge DC/DC converter (Fig. 10(b)).
This control scheme is based on PWM technique associated For the second platform, bipolar Brushless geared motor and
with three PI controllers for the dq-currents and speed loops. 3-phase Full-Bridge inverter are used (Fig. 10(b)). This brush-
Park transformation is applied to the output phase currents less motor is equipped with only three Hall effect sensors. The
and reverse transformation is used to reproduce the reference motor parameters are those of the TABLE II.
phase voltages.
Thus, the addressStreetPMSM Drive has fast dynamic re- B. Simulink Real-Time Models and DSP Implementation
sponse and, above all, produces smooth current and maximum The control algorithms are implemented using TI C2000
torque per current unit (Fig. 9). It’s then the most efficient package in Simulink and eZdsp F2812 board. This DSP system
drive. allows fast fixed-point processing at 150 MHz and can be
adapted to all motor drives laboratories thanks to its motor
V. E Z DSP F2812 BASED L ABORATORY control peripherals i.e. 2 event managers, 16 12-Bit ADC
channels with fast conversion rate (80 ns) and up to 56 general
A. Hardware Constitution purpose I/O (GPIO) [18].
Experimental setup is shown in Fig. 10-a. The DC motor Embedded Target tool also includes tow special libraries
based robot is on the right of the figure and the Brushless namely the IQmath and DMC (Digital Motor Control). The
motor based robot on the left side. functions in these libraries, which are implemented by the
652 Journal of Power Electronics, Vol. 10, No. 6, November 2010

Fig. 8. Simulation model of PMSM Field Oriented Control.


Fig. 6. Simulation model of BLDC motor cascade speed/current control.

Fig. 9. Speed step response of PMSM with Field Oriented Control in


simulation.
Fig. 7. Speed step response of cascade speed/ current controlled BLDC
motor in simulation.
speed of the motor is measured using an optical encoder, and
blocks, are for example Clark and Park Transformations, PID it’s accessible via the QEP block.
Controller, Space Vector Generator and fixed point mathemat- This measure is applied at the feedback input port of a PID
ical operations. These are the main blocs from TI C2000 used Controller block from a Digital Motor Control Library (DMC).
in these laboratories. A Target Preference block, F2812 eZdsp, At the reference input port of the controller is applied the target
has to be added to the model. speed using a RTDX block.
Once the desired Simulink model has been constructed and Obviously, the controller can be computed using the motor
simulated, the code for the DSP can be generated by Real model. But in order to diversify the controller design tech-
Time Workshop. The code may be instrumented with Real niques, an experimental method is investigated.
Time Data eXchange modules (RTDX) to stream data to and
from the target. Online parameter tuning is also possible via Motor model identification and speed control:
Code Composer Studio.
The time constant of an open-loop voltage step change is
The experimental results presented in this section have been identified by means of the Matlab Curve Fitting Tool ‘cftool’
specifically chosen to demonstrate some of the typical opera- with an exponential model:
tions of the studied drives. The results provide a confirmation
of the validity of the simulation results in both steady-state
and transient operations. Ω(t) = a × exp(b × t) + c × exp(d × t). (1)

The time constant of the model is related to the coefficient


C. PM DC Motor Control d as:

Simulink model of the speed control structure is presented τs = 1 d , d = −4.28 ⇒ τs = 0.234s. (2)
in Fig. 14. PWM timer is used to modulate the duty cycle and
thus the voltage applied to the motor. On the other hand, the So the motor transfer function, between the voltage and the
Design of PM Motor Drive Course and DSP Based Robot Traction System Laboratory 653

(a) (b)
Fig. 10. (a) DC motor and BLDC motor based robot (right and left respectively).
The first platform is connected to the eZdspF2812 board via an optocoupler/conditioning board.
(b) Full-Bridge DC/DC converter and 3-phase Full-Bridge inverter (right and left respectively).

Fig. 11. Speed and its associated fit following an open-loop voltage step Fig. 12. Block diagram of the Hall Effect sensor based estimator.
change.

speed, can be represented as a 1st order system:


Gs
Tm (s) = . (3)
1 + sτm
The speed step coincides entirely with its associated fit as
shown in Fig. 11. The gain Gs is determined using steady-state
voltage and speed measurement.
The controller is then quickly calculated using the identified
parameters.
Using this design approach, there is no need to determine
Fig. 13. Hall effect based 0th and 1st order position estimates.
a mathematical model of the motor.
The control performances of the Fig. 19 are obtained by
tuning the controllers around those designed in simulation The capability of this complete control scheme is demon-
session. The speed follows closely a 1st order reference model strated in Fig. 20.
with a time constant τΩ = 0.10s. In Fig. 21, current limitation is enforced to stop the motor
Although the transient current exceeds 300% the nominal drawing more than its transient permissible current, which is
value, this control scheme cannot remedy this problem. 125% Inominal . Visibly, this limitation is responsible for current
nonlinearity and further increase in the response delay.
Cascade current/speed control of PM DC Motor
Fig. 15 shows the current and speed closed-loops used in
this drive. Note that two rate transition blocks are connected D. Cascade Current/Speed Control of BLDC Motor
at the input and output ports of the speed controller (Fig. The Brushless motors used in the robots exhibit sinusoidal
16). This is a requirement for all signal paths between blocks back-emf characteristics. They can be used either with sinu-
running on different sample rates. soidal or trapezoidal commutations.
654 Journal of Power Electronics, Vol. 10, No. 6, November 2010

Fig. 14. Simulink RT model of DC motor speed control.

Fig. 15. Simulink RT model of DC motor cascade speed/current control.

Fig. 16. PI Speed subsystem.

Fig. 17. Simulink RT model of BLDC motor cascade speed/current control.


Design of PM Motor Drive Course and DSP Based Robot Traction System Laboratory 655

The encoders are usually mounted on the end of a gearbox. The electric angular position can be obtained by numerical
However, in the used BLDC motors only Hall sensors are integration of (5), under the constraint that the resulting angle
provided. In consequence, sensorless speed estimation method value has to be within the sector k limits.
is necessary to complete the outer loop. The angular position is, thus, calculated as
Without encoder, the speed can be measured using Hall 
signal interrupt [24]. The angle between two consecutive Hall θ (t) = θk + Ωk (t − tk ), θk ≤ θ (t) ≤ θk + π 3. (6)
signal edges is 60 degrees by construction. Using a Timer Ωk is here the angular speed when the magnetic axis
peripheral, the time Thall between two consecutive Hall edges enters sector k ; it’s obtained from the speed estimator block
are measured and speed can be computed as: presented in the previous section.
π The Fig. 12 shows the block diagram of the position and
Ω = 3 rad.s−1 . (4) speed estimation technique and Fig. 13 illustrates the 0th order
Thall (stairs line) and the 1st order (straight line) position estimates
This algorithm is implemented within the ‘Speed estimator’ which are synchronous to Hall signal Ha edge.
block of the Fig. 17 model, adding an LP-filter. The overall sensorless Field Oriented Control scheme, with
In addition to the speed estimator and controller, the control speed and position estimator, is shown in Fig. 18.
system of the BLDC motor involves a current controller and By driving the motor with sinusoidal current commutation,
commutation logic that use Hall sensor feedback (Fig. 17). less frequency harmonics are presents in the current waveform
The measured current in this experiment is the DC link one. as shown is Fig. 24; thus an immediate reduction in power
The results presented in Fig. 22 depict respectively: DC losses occurs. As a result, larger torque is produced for
link and phase currents in the motor open-loop operation. the same RMS current. Sinusoidally driven motors also gain
The measure window shows a duty cycle transition from 1, reduced torque ripple.
which means no PWM is applied, to 0.5 with reduced voltage. Moreover, these experimental results testify that the first
The particular six-step phase current and trapezoidal voltage strategy objectives with the Field Oriented Control are reached.
waveform, characteristic for BLDC motor commutation, are Notice the d-current, which is kept null in order to make good
clearly shown in this figure. use of the current in producing torque.
Other experimental results related to speed acceleration The last Fig. 25 confirms the ability of the Hall effect
from 2000 rpm to 4000 rpm are presented in Fig. 23. The based estimator to replace encoder in sensorless control during
speed reference tracking is perfect without any overshoot. dynamic operation of the drive. The motor operates correctly
As the motor is geared, the actuator inertia is weak and and the actual speed flows accurately the simulated speed.
the motor drive doesn’t draw large current during transient
operations. Consequently no current limitation is necessary in VI. S TUDENTS F EEDBACK
this case.
During the last year, we have used this course and rapid
prototyping tool to teach a group of 22 undergraduates PM
E. Sensorless PMSM Field Oriented Control Motor drives and their real-time DSP implementation concept.
As can be seen in Fig. 18, Field Oriented Control consists of We noticed that three groups from 11 were able, within the
two nested loops. The first loop controls the stator currents in given time, to complete the laboratory tasks and to explore
the d-q reference frame and thus the torque, while the second more challenging topics like those linked to regenerative
loop controls the motor speed. control of PM DC motor or PMSM Field-Weakening control.
For this control scheme, the measured input signals are the Though framed, these long laboratories can generate favorable
rotor position and two of the stator phase currents. environment for initiative and creativity.
Typical examples of position sensors that can be used are The students start the second semester project, after the
resolvers, incremental encoders or absolute encoders. completion of the presented course, when they have gained ad-
In the absence of optical encoder, suitable strategies must equate theoretical knowledge from lectures and experimental
be developed to determine the rotor position. Here again, skills from the laboratories designed around the robot platform.
digital signal processing of Hall sensor outputs is an alternative Some students affirm that, in the early stages of this course,
solution to estimate the rotor position [24]. The Hall Effect they had already felt involved in the robot project.
sensors detect when the rotor magnetic axis enters a new 60◦ From the students response also, they can easily handle the
sector. rapid prototyping system for the construction of different drive
The electric angular position is generally given by: structures, data acquisition and scaling as well as for controller
Z t implementation.
θ (t) = Ω(t) dt + θk (5) Furthermore, they can actually connect real platform to the
tk
eZdspF2812 board and see how the drives behave in real-time.
tk is the instant when the magnetic axis enters sector k (k=1, The introduction, of Hall effect based sensorless technique
2,. . . , 6). has upgraded the laboratory to a new motor drive technology.
θk is the initial angle of sector k. It is equivalent to a zeroth- Nevertheless, the technique could be quickly implemented so
order position estimation obtained by taking into account only that students are kept focusing on the main topic i.e. motor
the 0th order term of an approximated Taylor series expansion. drives.
656 Journal of Power Electronics, Vol. 10, No. 6, November 2010

Fig. 18. Simulink RT model of PMSM Field Oriented Control.

Fig. 19. Experimental speed step response of speed controlled DC motor. Fig. 20. Experimental speed step response of cascade speed/ current
controlled DC motor without current limitation.

Finally, our experience has shown that this course and


teaching platform has clearly heightened student interest in traction system, but also for the final robot motion control
the learning of power electronics and motor drives. project.
- The graphical programming approach removes the need to
write long software by hand and allows the student to focus
VII. C ONCLUSION
instead on learning motor drive functionalities.
This paper objective is redesigning the structure and content - Practically the same simulation models used in Simulink are
of PM motor drives course along with developing new labo- used in the hardware implementation.
ratory experiments to align the technical content of the course - An easy-to-use interface i.e. CCS and RTDX, which allow
with mobile robot project. real-time parameter adjustment and data capture.
Simulink/Plecs software together with TI C2000 DSP Em- The ease of algorithm implementation in the rapid proto-
bedded Target in eZdspF2812 have constituted an appropri- typing environment allowed also the introduction of sensorless
ate rapid prototyping environment for all combined simula- control techniques to enrich the course.
tion/implementation of the drives presented in this course. To sum up, the presented course, hardware and software
In order to demonstrate the effectiveness of this approach, platform proves to be very adequate to PM motor drives and
the paper presents several laboratory results showing valuable associated power electronics teaching as well as to mobile
correspondence between simulation results and their experi- robot project preparation. It is a low cost solution too for
mental verification. growing number of undergraduate students enrolling in this
The major advantages of the low cost DSP prototyping tool, engineering field.
in the laboratory context, are the following:
- It provides enough control peripherals not only for the robot
Design of PM Motor Drive Course and DSP Based Robot Traction System Laboratory 657

Fig. 23. Experimental speed step response of cascade speed/current


controlled BLDC motor.

Fig. 21. Experimental speed step response of cascade speed/ current


controlled DC motor with current limitation.

Fig. 24. Experimental speed step response of PMSM Field Oriented


Control.

Fig. 22. Duty cycle transition from 1 to 0.5 in open-loop control of BLDC
motor.

Fig. 25. Test of the dynamic performance of the estimation method and
the sensorless PMSM drive.
658 Journal of Power Electronics, Vol. 10, No. 6, November 2010

R EFERENCES [24] J. Sungyoon, L. Beomseok, N. Kwanghee, “PMSM control based on


edge field measurements by Hall sensors,” in Proc. IEEE Applied Power
[1] J.M. Jimenez-Martinez & all, “A new approach for teaching power Electronics Conference & Exposition( APEC’2010), pp. 2002-2006,
electronics converter experiments,” IEEE Trans. Education, Vol. 48, No. 2010.
3, pp. 513 - 519, Aug. 2005. [25] A, Lidozzi,L. Solero, F. Crescimbini, A. Di Napoli, “SVM PMSM drive
[2] V. Giri, “A pedagogically effective structured introduction to electrical with low resolution hall-effect sensors,” IEEE Trans. Power Electronics,
energy systems with coupled laboratory experiences,” IEEE Trans. Vol. 22, No. 1, pp. 282-290, Jan. 2007.
Power Systems, Vol. 19, No. 1, pp. 129-138, Feb. 2004. [26] F. G. Capponi & all, “AC brushless drive with low-resolution hall-
[3] N. Mohan et all, “Restructuring of first courses in power electronics effect sensors for surface-mounted PM machines,” IEEE Trans. Industry
and electric drives that integrates digital control,” IEEE Trans. Power Application, Vol. 42, No. 2, pp. 525-535, Mar./Apr. 2006.
Electronics, Vol. 18, No. 1, pp. 429-437, Jan. 2003.
[4] A. L. Gelen, S. Ayasun, “Realization of power electronic converter
based DC motor speed control methods using MATLAB/Simulink,” Int. Driss Yousfi was born in Oujda, Morocco, in 1970.
Journal on Engineering Education, Vol. 25, No. 1, pp. 33-41, 2009. He received the B.S. and M.S. degrees in Electrical
[5] O.A. Mohammed, N.Y.Abed, S.C. Ganu, “Real-time simulations of Engineering from Fes University, Morocco, respectively,
electrical machine drives with hardware-in-the-loop,” in Proc. IEEE in 1994 and 1996, and the Ph.D. degree in Electri-
Power Engineering Society General Meeting, pp. 1-6, 2007. cal Engineering from placeOujda University, in 2001.
[6] J. Choi, M. Hyungsoo, “Simulation based power electronics education From 1997 to 2001 he was a member of.the Electrical
in Korea,” in Proc. Power Conversion Conf.(PCC.2007), pp. 491-495, Engineering Laboratory at the High National School
2007. of Electrical and Mechanical Engineering, Morocco,
[7] W. Kiing-Ing, K.A. Silek, “Integration of brushless DC motor drive into working on the Modeling and Sensorless Control of
undergraduate electric machinery courses,” in Proc. IEEE Int. Conf. E- Synchronous Motors. Since November 2001, he has been with Marrakech
Learning in Ind. Electronics( ICELIE ’09), pp. 69-73, 2009. University-ENSA, Morocco, where he is currently professor at the Electri-
[8] F. Zeiger, M. Schmidt, K. Schilling, “Remote experiments with mobile- cal Engineering Department and Staff Member of Control Systems, Power
robot hardware via internet at limited link capacity,” IEEE Trans. Electronics and Electric Drives “CSPEED” Group. Dr. Yousfi is a Member of
Industrial Electronics, Vol. 56, No.12, pp; 4798-4805, Dec. 2009. the IEEE Industry Applications, IEEE Industrial Electronics, and IEEE Power
[9] E. R. Collins, “An energy conversion laboratory using industrial-grade Electronics Societies. His main research interests include sensorless control of
equipment,” IEEE Trans. Power Systems, Vol. 24, No. 1, pp. 3-11, Feb. Permanent Magnet Synchronous Machine, power converters and motor drives
2009. for electric traction systems, and DSP-based systems for real-time control.
[10] L. Max et all, “Power electronics design laboratory exercise for final-
year M.Sc. students,” IEEE Trans. Education, Vol. 52. No. 4, pp. 524- Said Belkouch is Professor at Electrical Engineer-
531, Nov. 2009. ing Department, National School of Applied Sciences-
[11] R. H. Chu, middlenameD. middlenameD. C. Lu, S. Sathiakumar, Marrakech, Morocco from 2003. He has completed
“Project-based lab teaching for power electronics and drives,” IEEE his Ph.D. in Microelectronics at University Joseph
Trans. Education, Vol. 51, No. 1, pp. 108-113, Feb. 2008. Fourier-Grenoble in placeFrance. He worked respec-
[12] E. Mese, “Project-oriented adjustable speed motor drive course for tively as Assistant Researcher at University of Sher-
undergraduate curricula,” IEEE Trans. Education, Vol. 49, No. 2, pp. brook in Canada, Research Officer at National Council
236-246, May 2006. of Canada, and ASICs Design Engineering at Tundra
[13] R. S. Balog,et all, “Modern laboratory-based education for power Semiconductor Corporation (now called IDT). His
electronics and electric machines,” IEEE Trans. Power Systems, Vol. area of research includes embedded systems and microelectronics. He has
20, No. 2, pp. 538- 547, May 2005. published several research papers in Journals and Proceedings.
[14] T. Friedli, S. D. Round, J. W. Kolar, “Modeling the space elevator – A
project oriented approach for teaching experimental power electronics,”
Abdellah AIT OUAHMAN was born in Marrakech,
in Proc. European Conf. on Power Electronics and Applications(EPE
Morocco. He received the doctorate thesis in Signal
2007), pp. 1-10, 2007.
Processing from the University of Grenoble, France, in
[15] K. Vardar, T. Surgevil, E. Akpnar, “Rapid prototyping applications on
November 1981. His research was in Signal Processing
three-phase PWM rectifier and shunt active power filter,” in Proc. Int.
and Telecommunications. Then he received the Ph.D.
Conference on Electrical and Electronics Engineering(ELECO’2009),
degree in Physics Sciences from Cadi Ayyad University,
pp. I-258 - I-262, 2009.
Marrakech, Morocco, in 1992. He is now Professor and
[16] B. Tamyurek, A. Ceyhan, E. Birdane, F. Keles, “A simple DSP based
responsible of the Telecommunications and Computer
control system design for a three-phase high power factor boost rectifier,”
Science and Networking laboratory in the Faculty of
in Proc. IEEE Applied Power Electronics Conference and Exposi-
Sciences Semlalia in Marrakech. His research interests include the signal and
tion(APEC 2008), pp. 1416-1422, 2008.
image processing and coding, telecommunications and networking. Currently,
[17] R. Duma, p. Dobra, M. Abrudean, D. Petreus, “DSP based controller for
he is a director of National School of Applied Sciences, Marrakech.
battery charging system,” in Proc. IEEE Int. Conference on Automation,
Quality and Testing, Robotics, AQTR’2008, Vol. 2, pp. 70-74, 2008.
[18] R. Duma, P. Dobra, M. Abrudean, M. Dobra, “Rapid prototyping of Damien Grenier was born in Rouen, France in 1965.
control systems using embedded target for TI C2000 DSP,” in Proc. He received the Ph.D. degree in electrical engineering
Mediterranean Conf. on Control & Automation, Jul. 2007. from the Ecole Normale Sup?rieure de Cachan, France,
[19] S.Krishnamurthy, V.V.Sastry, V.Ajjarapu, “An innovative rapid proto- in 1994. During 1994-1996, he was Post- Doctoral
typing tool for power electronic circuits,” in Proc. The 2003 American Researcher at the Ecole de Technologie Supérieure,
Society for Engineering Education Annual Conference & Exposition, Montréal QC Canada. He joined in 1996, the Univer-
2003. sité Catholique de Louvain, Louvain-la-Neuve, Belgium
[20] S. Chi, Z. Zhang, L. Xu, “Sliding-mode sensorless control of direct- where he took part to several pedagogical projects
drive PM synchronous motors for washing machine applications,” IEEE support by the European Union. Since 2005, he is
Trans. Industry Applications, Vol. 45, No. 2, pp. 582 – 590, Mar./Apr. Professor in the Department of Mechatronics of the brittany site of the Ecole
2009. Normale Sup?rieure de Cachan.
[21] A. A. Adam & all, “Steering DTC algorithm for IPMSM used in
electrical vehicle (EV)- with fast response and minimum torque ripple,”
in Proc. IEEE Int. Workshop on Advanced Motion Control( AMC’2010),
pp.279-283, 2010.
[22] J. Goetz, H. Weiping, J. Milliken, “Sensorless digital motor controller for
high reliability applications,” in Proc. IEEE Applied Power Electronics
Conference and Exposition(APEC’06), p.6, 2006.
[23] M. Flueckiger, M. Bullo, Y. Perriard, “Sensorless speed control of
traveling wave ultrasonic motor,” in Proc. IEEE Industry Applications
Conference(IAS’2006), Vol. 5, pp. 2488-2495, 2006.
Design of PM Motor Drive Course and DSP Based Robot Traction System Laboratory 659

Bruno Dehez received the degree in electromechanical Eric Richard , received his engineer Diploma from
engineering and the Ph.D. degree from the Universit ‘Ecole Nationale Supérieure des Télécommunications’,
catholique de Louvain (UCL), Louvain-la-Neuve, Bel- France, in 1978. Since 2002, he has been a Research
gium, in 1998 and 2004, respectively. Since 2006, he Engineer at the Institut Supérieur de l’Electronique et
is associate professor in the Centre for Research in du Numérique (ISEN)-Toulon, in charge of electronics
Mechatronics at UCL. His research interests include service. He is also a research member of Circuits De-
the design and the optimization of dedicated electrical sign Team at the Institut Matériaux Microélectronique
actuators. Nanosciences de Provence ‘IM2NP’. His research fo-
cuses on the microelectronics and electronics applica-
tions to analog and digital signal processing.

You might also like