Professional Documents
Culture Documents
Arthesis
Arthesis
A Motor Controller
For the Solar Car
Project
This work was performed under the supervision of Mr. Geoffrey Walker. I
declare that the work submitted in this thesis is my own, except as acknowledged in the
text and footnotes, and has not been previously submitted for a degree at The University
of Queensland or any other institution.
Yours Sincerely,
Andrew J. Reghenzani.
A Motor Controller For The Solar Car Project
ACKNOWLEDGEDGMENTS
My family : who have always supported me throughout University, and have given me
the extra motivation to succeed during difficult times.
My friends : for understanding how important my thesis was and always seeming to ask
the all too familiar question “How’s your thesis going?”.
Members of the Solar Car Team : especially Charles for organizing use of a digital
camera and Anthoney for assistance with writing code. I have thoroughly enjoyed
being in the solar racing team, as it has given me the opportunity to gain valuable work
experience and gain some practical skills which complement my University studies.
My supervisor, Mr. Geoffrey Walker : for all his time, invaluable advice and
encouragement throughout the thesis project.
Keith Aldworth and the electronics workshop personnel : for the manufacture of my
PCB’s and all the labor intensive hand tinning that had to be done for both boards,
supply of components, use of the surface mount soldering station and all the technical
tips regarding PCB design and manufacture.
Keith Lane, Wayne Jenkins and Bill Slack from the electronics workshop : for building
my heatsinks and other hardware from my plans which usually consisted of a page of
dimensions, use of the tools and machines in the workshop at any time and all the
technical advice regarding manufacturing.
- iii -
A Motor Controller For The Solar Car Project
ABSTRACT
The transport needs of our ever growing and evolving society is becoming
increasingly stringent and more demanding. In order to combat this, more efficient
transportation vehicles need to be developed which are faster and cleaner. As the
human race starts to realize the real extent to which the internal combustion engine has
gradually polluted the atmosphere, more research is being concentrated on alternative
forms of propulsion. A number of propulsion systems and energy sources have
undergone feasibility studies to investigate potential commercial and industrial
applications. Some projects have been shown to work successfully, while other
technologies are still well in their infancy stage of development. A handful of examples
of the technologies under consideration include nuclear energy, fuel cells, steam power,
solar power, wind power and tidal power.
Electric and hybrid powered cars are emerging as a popular transport alternative.
These type of vehicles emit far less pollutants to the atmosphere than the single internal
combustion engine, and have been proven to display moderate driving range (up to
300km). An electrically powered vehicle has essentially three major electrical
components. These are an energy source (usually a rechargeable battery bank), an
inverter or motor controller and an electric motor. In the case of a solar car, the energy
source is typically a bank of batteries, which may be recharged by photovoltaic solar
panels. The motor controller is typically a power electronics device which when
supplied with the driver’s input commands, controls the torque in the electric motor.
The electric motor converts the electrical energy supplied by the motor controller to
mechanical energy used to propel the vehicle, usually through a type of transmission.
A motor controller is custom designed for a new hub mounted Brushless DC
Permanent Magnet (BLDC PM) motor, as part of the solar car project. Efficiency and
reliability have been two of the key factors considered when designing the controller.
Due to careful selection of quality components and use of high efficiency control
algorithms, a marketable increase in efficiency over the existing system is expected with
the new controller and motor.
- iv -
A Motor Controller For The Solar Car Project
CONTENTS
ACKNOWLEDGEDGMENTS......................................................................................................I
ABSTRACT.................................................................................................................................. IV
CONTENTS................................................................................................................................... V
LIST OF FIGURES ............................................................................................................ VII
LIST OF TABLES ............................................................................................................. VIII
1. INTRODUCTION................................................................................................................1
1.1 Introduction ............................................................................................................ 1
1.2 Problem Specification ............................................................................................ 2
1.2.1 Thesis Goal .......................................................................................................... 4
1.2.2 Motivation behind the Motor Controller and Motion Control............................. 4
1.3 Organization of the Thesis Document.................................................................... 5
2. THE UNIVERSITY OF QUEENSLAND SOLAR CAR..............................7
2.1 Solar Car Racing and the Races ............................................................................. 7
2.2 A Brief History of the UQ Solar Racing Car ......................................................... 9
2.3 The Nuts and Volts of a Solar Car.......................................................................... 9
2.3.1 Batteries ............................................................................................................. 10
2.3.2 Solar Array ........................................................................................................ 12
2.3.3 Maximum Peak Power Trackers (MPPT’s)....................................................... 13
2.3.4 Motor Controller................................................................................................ 13
2.3.5 Motor ................................................................................................................. 14
2.3.6 Telemetry Functions and Power Supply............................................................ 15
2.4 Necessity for Efficient Systems............................................................................ 15
2.5 The Existing Drive System................................................................................... 16
2.5.1 Controller Type.................................................................................................. 16
2.5.2 Performance Characteristics .............................................................................. 17
2.6 The New Drive System ........................................................................................ 17
2.6.1 Additional Features............................................................................................ 18
2.6.2 Performance Requirements................................................................................ 19
3. MOTOR CONTROL LITERATURE......................................................................20
4. THEORY ...............................................................................................................................25
4.1 The Permanent Magnet Brushless DC Motor ...................................................... 25
4.1.1 Electrical and Mechanical Parameters............................................................... 28
4.2 Controlling a Permanent Magnet Brushless DC Motor........................................ 30
4.2.1 Commutation ..................................................................................................... 30
4.2.2 Current Regulation ............................................................................................ 35
4.2.3 Trapezoidal Current Excitation.......................................................................... 35
4.2.4 Sinusoidal Current Excitation............................................................................ 37
4.3 Power MOSFET Device Characteristics .............................................................. 38
4.4 Heatsink Considerations....................................................................................... 41
5. HARDWARE DESIGN STAGE...............................................................................43
5.1 Design of Power Stage ......................................................................................... 43
5.1.1 Circuit Design.................................................................................................... 44
5.1.2 Sensors............................................................................................................... 45
5.1.2.1 Bus Voltage Measurement .............................................................................. 45
5.1.2.2 MOSFET Heatsink Temperature Measurement ............................................. 46
5.1.2.3 Phase Current Measurement ........................................................................... 46
5.1.3 Manufacture and Construction .......................................................................... 48
5.2 Design of Control Stage ....................................................................................... 50
-v-
A Motor Controller For The Solar Car Project
BOOKS ...................................................................................................................................... 73
- vi -
A Motor Controller For The Solar Car Project
LIST OF FIGURES
FIGURE 1 : BLOCK ELECTRICAL DIAGRAM OF A SOLAR CAR ......................................................................10
FIGURE 8 : HALL EFFECT POSITIONING SENSORS........................................................................................28
FIGURE 9: NUMBERING PATTERN FOR MOSFET’S IN THE H-BRIDGE ......................................................... 30
FIGURE 10 : 120 DEGREES COMMUTATION MODE ...................................................................................... 32
FIGURE 11 : 180 DEGREES CONDUCTION MODE ......................................................................................... 34
FIGURE 12 : CURRENT FEEDBACK IN A BLDC MOTOR ...............................................................................35
FIGURE 13 : TORQUE RIPPLE IN A TRAPEZOIDAL MACHINE ........................................................................ 36
FIGURE 14:NON-CONDUCTRING MOSFET[34] ..............................................................................................
FIGURE 15:CONDUCTING MOSFET[34] ............................................................................................38
FIGURE 16:WAVEFORMS AT TURN-ON[38].....................................................................................................
FIGURE 17:WAVEFORMS AT TURN-OFF[38]................................................................................................39
FIGURE 20 : THERMISTOR RESPONSE ..........................................................................................................54
FIGURE 22 : BLOCK DIAGRAM OF CONTROL ALGORITHM........................................................................... 57
FIGURE 23 : A FOUR QUADRANT DRIVE.......................................................................................................58
FIGURE 24:ONE SWITCH ACTIVE TOPOLOGY ..................................................................................................
FIGURE 25:TWO SWITCH ACTIVE TOPOLOGY .............................................................................................60
- vii -
A Motor Controller For The Solar Car Project
LIST OF TABLES
- viii -
1. INTRODUCTION
1.1 Introduction
-1-
1. Introduction
Soon people began looking for alternatives to the internal combustion engine.
Quite recently, hybrid electric vehicles (EV) have been met with much success, and
commercial versions are being made today. A typical hybrid EV is driven by an electric
motor and usually contains a rechargeable battery bank and a small internal combustion
engine. The internal combustion engine still emits greenhouse gases, however only at a
fraction of the amount. In some of the latest hybrid vehicles, four wheel motors are
used (one for each wheel), and four motor controllers are used to control the torque of
each individual motor for optimal vehicle performance and control.
Design of a motor controller for the University solar car project has not been
attempted before. The new controller has incorporated a multitude of features which are
designed to make the drive system highly efficient and safer while providing a more
intuitive driver control. The new motor controller consists of a Hitachi SH1 7032 RISC
microprocessor operating at a clock speed of 20MHz accompanied by an array of
sensors and a high voltage inverter stage. The work performed in this thesis project
incorporates a number of different fields of work:
-2-
1. Introduction
uses hall effect elements embedded in the motor to provide rotor position feedback
information (discussed in chapter 4).
• Waveform Shaping : by changing the pulse width modulation (PWM) ratio of the
output drive signals, two functions can be implemented simultaneously. Current
limiting is the process of regulating the phase currents in the motor to reflect the
torque commanded by the driver. Efficiency of the drive may be improved by
applying a weighted PWM signal to produce e.g. a sinusoidal output waveform
(PWM techniques are discussed in chapter 4).
• Sensor Technology : the motor controller has a number of sensors which provide
feedback to the software control loops. The sensors used in the motor controller
include current transducers for measuring individual phase currents, bus voltage
measurement, an integrated circuit temperature sensor for measuring heatsink
temperature and a thermistor for measuring temperature of phase windings (sensors
are discussed in chapter 5).
-3-
1. Introduction
“To design and construct a Brushless DC motor controller for the University of
Queensland solar car that performs motoring and regeneration at a very high efficiency.
The motor controller should also perform auxiliary functions that make the drive system
more robust, safer and easier to control.”
The controller should operate the motor with the highest possible efficiency
under steady-state operating conditions. Under abnormal conditions, the controller
should respond quickly to resolve the problem and resume normal operation to maintain
a high level of energy efficiency. On completion of the project, the motor controller
will be mounted in the solar car and be interfaced to the other electronic systems.
-4-
1. Introduction
conventional DC brush motors cannot be used due to the risk of sparks forming between
the brushes and commutator. There are many types of motors available today, however
a discussion on each type is beyond the scope of this thesis.
One type of motor that boasts a very high efficiency and is very reliable is the
brushless DC (BLDC) motor. Unlike conventional DC brush motors, the brushless
motor, as it’s name suggests, has no brushes and requires extra electronic circuitry to
perform the job of commutation. The BLDC motor can be constructed in many sizes
and power ratings, and finds widespread application in many motor drives. The primary
motivation behind the thesis was to improve the efficiency and technology of the solar
car. The secondary motivation was related to the popularity of the BLDC motor and it’s
future applications. Factors such as high power to weight ratio and reliability will
definitely see BLDC motor technology improve in years to come. By studying how
such a motor is controlled, the capabilities of this motor are better understood.
The remainder of the thesis describes all work completed, problems encountered
and how these problems were overcome. Detailed descriptions including theory are
presented to support practical design choices. The following chapters form the body of
the thesis document, and may be summarized as follows:
Chapter 3, Motor Control Literature, presents a literature review of all relevant work
in the field of BLDC motor control. Useful formulas and control algorithms are
-5-
1. Introduction
extracted from the text and hi-lighted in this chapter. There is a complete list of all
references used in the bibliography section at the very back of the thesis report.
Chapter 5, Hardware Design Stage, analyses the circuits designed and describes their
operation down to component level. Design formulas indicate how component values
were obtained. Mechanical factors are presented for construction of the motor
controller and when mounting into the car.
Chapter 8, Conclusions, concludes the document with a short summary of the findings
throughout the thesis project. Some possible future work is given as suggestions to
improving the motor controller. A final note is then given to the overall picture of solar
racing and where the future of such a technology is headed.
The author hopes the thesis document provides excellent reading and a useful
reference for any future work in motor control.
-6-
2. THE UNIVERSITY OF QUEENSLAND
SOLAR CAR
Solar car racing first started out as a novel idea to investigate the limitations of
solar energy as a possible alternative to non-renewable energy sources. From that point
forward, solar car racing has grown in popularity and can be considered a sport, with
annual and biannual racing events being held all around the World. One of the more
prominent races is the World Solar Challenge, which covers some 3100 km from
Darwin to Adelaide along the Stuart Highway. Australian adventurer Hans Tholstrup
organized the first WSC in 1987, and it is now a bi-annual event held in October. The
Sydney City Power SunRace traverses the eastern coast of Australia from Melbourne to
Sydney and is the equivalent of the American SunRace. The American SunRace is the
largest solar event held in the United States. The World Solar Rallye in Akita, Japan is
held every year in July on a purpose-built solar racing track named the Ogata Mura
-7-
2.The University of Queensland Solar Car
Solar Sports Line. Many other countries hold solar related activities to promote solar
energy as a new energy alternative to existing fossil-based energy.
The solar car racing event is the most exciting part of solar car development.
Not only do competing teams have the opportunity to showcase to the world the ability
of solar energy, but have a lot of fun simply making the car perform optimally
regardless of impeding conditions. There is great satisfaction when seeing months of
hard work finally being paid off, as the solar car races through the finish line. The idea
of a solar car race is to reach the finish as fast as possible, obeying the race regulations
at all times to avoid time penalties.
For long endurance races such as the WSC, a convoy of cars accompanies the
solar car. One support vehicle usually has onboard computers and radio equipment for
data and voice interchange with the solar cars’ driver and telemetry system. Team
members ride in a scout car and place wooden boards over cattle grids so that the solar
cars’ tuned suspension is not put under great mechanical stress. In the 96 WSC,
SunShark had an RACQ representative who was able to lend assistance in mechanical
breakdowns. In races such as the World Solar Rallye in Akita, the racing track
consisted of a 30km round circuit, allowing no room for support vehicles. Telemetry
data, which was logged for an entire lap had to be transmitted in a short burst when the
car was in range of the receiving base station antenna. During the normal course of a
race, the drivers must be changed at regular intervals and a number of media stops are
usually anticipated.
There are two aspects that are essential for a highly competitive entry. A major
aspect of succeeding in a solar car race is to have a highly efficient and reliable system.
This can be accomplished by designing an aerodynamic structure made from
lightweight materials and choosing efficient electrical components. The other aspect,
which is equally important, is to have an effective race strategy. In a race situation, a
race strategy team determines an optimal speed to run the car at, depending on current
weather conditions (e.g. solar insolation, cloud cover, rain), past weather/race data (e.g.
rain patterns, road profiles) and vehicle parameters (e.g. battery state of charge, rolling
-8-
2.The University of Queensland Solar Car
A decision was made by the newly formed team early next year to participate in
the 1997 World Solar Rallye (WSR) in Akita, Japan. With only minor electrical and
mechanical modifications being made to the car in order to comply with race
regulations, the team and car were ready to compete at the Ogata Mura Solar Sports
Line in Akita. After 5 days of racing in sweltering heat, the car finished in identical
form as the WSC : ranked fifth overall and class winner of the silicon cell/lead-acid
battery category. Major electrical enhancements and some mechanical improvements
are currently underway in preparation for a large testing run near the end of 1998 and
the Sydney CitiPower Sunrace in January. The next WSC has been scheduled for
October 1999 and the team hopes to have a greatly superior car than in previous years
for this major solar event.
-9-
2.The University of Queensland Solar Car
Photovoltaic
Solar Maximum Peak Battery
Array Power Trackers Bank
(MPPT’s)
(120V DC)
The central node of the electrical system is the high voltage (HV) bus. Physically it
may simply consist of a connection point or short strip of copper, however it is at this
point that the flow of current is distributed to all components. The main electrical
components are described in the next section.
2.3.1 Batteries
The primary energy source for the vehicle is the battery bank. The battery bank
usually consists of a number of individual batteries connected in series or parallel. Each
battery in the bank is typically 6 or 12V, and multiple batteries are connected in series
or parallel to obtain the desired system voltage. A single battery is actually made from
multiple “cells” contained within the battery housing. A sealed lead acid type showing
- 10 -
2.The University of Queensland Solar Car
- 11 -
2.The University of Queensland Solar Car
The capacity of batteries set out by race rules and regulations is too small for a
solar car to fully depend on during a race. Energy must be obtained from the sun by a
solar array to supplement the energy taken from the batteries. Under maximum
insolation levels, the solar array can sometimes supply ample energy, and the excess
simply flows back into the batteries. The solar array consists of a configuration of solar
photovoltaic cells, usually encapsulated to protect against the elements and damage.
The encapsulation of cells also increases the overall efficiency of the array. This is
achieved by carefully designing anti-reflective coatings and materials to maximize the
light energy captured. General categories of solar cells include amorphous, multi-
crystalline and mono-crystalline cells. Some types of solar cells include screen printed,
buried contact cells (BCC), laser-grooved cells and passive emitter reflective layer
(PERL). A screen printed mono-crystalline cell showing the fine metal fingers and
busbars which collect the energy
from the surface of the cell is shown
in Figure 3. The cell shown has a
rated efficiency of ~16.5%.
Commercially manufactured cells
are available with maximum
efficiencies in the order of 26%,
however cells have been produced
with peak efficiencies of 30-35%
under laboratory conditions. Solar
cells convert sunlight (photons) to
- 12 -
2.The University of Queensland Solar Car
output of 1kW. The new array should have higher efficiency cells and enhanced
encapsulation materials, with an expected power output of 1.5kW.
The output voltage of the PV array varies widely with changing sunlight
intensities, incident sunlight angles and PV cell temperature. As previously discussed,
the battery voltage may also fluctuate, and the PV array may be forced to operate at the
voltage depicted by the
battery. This can result in a
degraded power output from
the PV array, because the
voltage may not correspond
to the maximum power
point of the cells. The
maximum peak power
tracker (MPPT) modules
The motor controller is designed to convert the electrical energy obtained from
the batteries and solar array to suitable power waveforms to drive the motor. The motor
controller used in the solar car is designed to drive a Permanent Magnet Brushless DC
(PM-BLDC) motor. The driver becomes part of the speed regulation loop as the torque
- 13 -
2.The University of Queensland Solar Car
produced in the motor can be controlled via controls in the cockpit. A more thorough
explanation of the motor controller is given in chapter 4.
2.3.5 Motor
• Very high efficiency characteristics over a large power range (98.2% recorded for
an optimized Halbach magnet arrangement).
• Require minimal maintenance, due to elimination of mechanical commutator and
brushes.
• Long operating life and higher reliability.
• No brushes means no arcing which can be paramount when working in flammable
gas locations.
• Number of motor geometry’s possible (e.g. interior permanent magnet or surface
magnet arrangements).
• High power density and torque to inertia ratio give a fast dynamic response.
• No brushes eliminates need for a high rotor inertia.
• Speed restrictions due to the traditional mechanical commutator are eliminated.
- 14 -
2.The University of Queensland Solar Car
The basic electrical system shown in Fig. 1 can be enhanced with the addition of
telemetry systems and support circuitry. The main aim of the telemetry system is to
calculate an optimal speed and/or power to run the car. One of the tasks performed is to
record data such as bus voltages and motor currents. The existing telemetry in the
SunShark solar car consisted of a signal conditioning board and telemetry board able to
transmit sampled data to the support vehicle via radio modems. It is envisaged the
support vehicle computers will be able to determine an optimal speed of operation, and
even take control of the car, by factoring in all relevant aspects which directly influence
the systems’ performance.
The power supply is responsible for converting the bus voltage down to supply
voltages for the circuitry. The current system converts 120V to +/-15V, 8V and 5V.
The power supply is usually a switch mode type to keep losses to a minimum.
The photovoltaic array for solar cars is very dependent on weather conditions.
Although the sun has as much energy as a million hydrogen bombs, a fractional amount
of that energy actually reaches the Earth’s surface. Furthermore, the amount of energy
received from the sun by a photovoltaic solar array depends upon multiple factors such
as cloud cover, angle of incident sunlight, cell temperature and cell efficiency. Due to
the obvious difficulties in obtaining energy from the sun, any wasted energy (i.e. energy
that is not contributing to the forward motion of the car) is regarded as a limiting factor
on the maximum speed obtainable from the system. For the SunShark solar car,
approximately every kilogram of vehicle weight relates to rolling friction power loss
increasing by 1W. Mechanical systems and frames can be made lighter by using
different materials in an attempt to reduce rolling friction power loss. There are a
number of methods in which electrical systems can be made more efficient. Through
careful circuit design with energy efficient components, substantial power savings can
be made. The heating losses due to current flow in conductors can become substantial
- 15 -
2.The University of Queensland Solar Car
in high power parts of the circuitry. It is advisable in this case to use over-rated cables
to help bring the conductor resistance and hence power loss down. Layout of
components is also important to reduce conductor lengths and parasitic inductive
elements. In a solar car race, the maximum velocity of the solar car is limited by the
efficiency of the system and race weather conditions. Since the weather conditions on a
race are at best highly unpredictable, in some instances a solar car may be fully reliant
on the batteries for power. At the end of the day, the performance of a solar car is
heavily determined by the overall efficiency of the system.
The existing motor consisted of a PM-BLDC motor with toroidal flux. The
motor had no iron in either its rotor or stator and consisted of a number of cylindrical
magnets with poles opposing one another, fixed around the circumference of the rotor.
The winding were arranged so as to enclose the magnets of the rotor in a “C” or “U”
shape. The windings and the coils formed a toriodal shape, thus the name toriodal flux
(or T-Flux) motor. The back EMF waveform was of a sinusoidal shape, due to the
nature of its construction. The motor required a transmission system consisting of a
toothed drive belt. The motor was supplied from Lillington Manufacturing.
The nominal input voltage to the motor controller was 120VDC. The controller
used trapezoidal phase current excitation waveforms. A PWM chip (NE5568) was used
together with a ROM (N82S123AN) programmed with a commutation truth table to
decode the hall effect signals from the motor, and provide excitation to the correct
phases. All logic circuitry was supplied power using a linear 5V regulator, which has
an efficiency of ~50%. The inverter stage was a common three phase H bridge design,
using three paralleled MOSFET's (IRFP260) in one switch, i.e. a total of 18 MOSFET’s.
The MOSFET’s had transient suppressing metal oxide varistors (MOV) to clamp the
voltage over each MOSFET switch to a safe level. DC link capacitors (12 X 220uF
- 16 -
2.The University of Queensland Solar Car
standard electrolytic) were used in the DC link. The MOSFET gates were driven by an
IR2130 3-phase bridge driver chip. All three lower inverter switches had a 20k ohm
resistor connected in parallel, which meant each time the upper switches were activated,
0.72 W power dissipation occurred. A simple shunt resistor was used to measure the
constant current in the DC bus, instead of in the DC link. Driver controls consisted of
two potentiometers: one to adjust speed and the other to adjust the current limit value.
A direction switch was also available however care had to be exercised when moving at
fast speeds to not bump the switch in the opposite direction, otherwise excess currents
would flow and destroy the controller and possibly the motor.
The most undesirable aspect of the previous controller was the characteristic of
the driver control. The controller was speed controlled, which meant the driver had to
basically guess where to position the potentiometer for a certain desired speed. This
caused a lot of concentration by the driver as the speedometer had to be constantly
monitored and potentiometer adjusted to obtain the desired speed. Moreover the speed
ramp was not a linear function of potentiometer position, but had a slow response at low
speeds and a fast, uneven response at moderate to high speeds. This made fine
adjustment of speed a large problem. It was discovered that potentiometers are not
always fully reliable devices, and a number had to be replaced during the course of the
race. The controller experienced a number of IC faults during the 96 WSC race,
probably due to the high temperature levels. Care had to be taken if the hall effect plug
was to come out, because the controller would set the speed to maximum.
The new motor is made by CSIRO/UTS and is of the permanent magnet type. The
motor features two rotors, has no iron loss and is of an axial field construction. The
motor is specifically designed to fit inside the wheel of a solar car which has a number
of distinct advantages over the original reduction belt system:
- 17 -
2.The University of Queensland Solar Car
• All drive transmissions (e.g. indirect shaft coupling, chain, belt) are eliminated.
This can result in savings of up to 15%(dependent on drive train configuration) of
the total motor output energy in a conventional drive train arrangement, which
would have usually been lost as heat and noise.
• No need to replace broken belts/chains or dust entering transmission system.
• Better aerodynamic performance due to streamlined design.
• Motor can be sealed against dust and water
A number of improved features are to be designed into the new motor controller
to increase overall efficiency, reliability and safety:
- 18 -
2.The University of Queensland Solar Car
The new motor controller is designed for a more intuitive control interface and
safer operation. The controller will contain robust features and be fully self contained.
It is envisaged the overall efficiency of the system will be improved, and the average
speed of the car can be increased.
- 19 -
3. MOTOR CONTROL LITERATURE
- 20 -
3. Motor Control Literature
the use of diagrams. The circuit in most cases was put under a simulation and results
were compared with the actual measured values. Many of the articles obtained are from
the IEEE and IEE publications.
Reference articles [7] and [9] discuss a controller using MOSFET switches with
in-built current sensing (used IRC644, 14A cont. 250V). These MOSFET’s are referred
TM
to by International Rectifier (IR) as HEXSense devices, as they contain integrated
shunt resistors, which can detect the current passing from the drain to the source. This
results in a more compact design and eliminates the need for external shunt resistors or
hall effect current transducers which results in an immediate weight saving. This type
of MOSFET was researched into, however none were found with the required voltage
rating. The only HEXSense TM devices that were found were of the 3-pin type (TO-220
case style). If 3 such devices were placed together in parallel to reduce on-state losses,
a total of 18 current readings would need to be converted using an analog to digital
converter (ADC), which would quickly clutter the available ADC channels on a
microprocessor. The controller mentioned in articles [7] and [9] can operate the motor
in all four quadrants of the torque-speed plane, i.e. forward and reverse motoring and
forward and reverse regeneration. Trapezoidal phase current excitation with 120 degree
switch conduction intervals are used so that current only flows in two of the phase
currents at any one time.
An important comment in [7] as to the position of the current sensors for current
feedback and regulation is made. The most simple method is a resistive shunt on the
DC bus. Although a simple and relatively cheap method of current detection, it cannot
detect dangerous circulating currents which may be developed in the phase windings
and power switches. This current build up can result in switch failure or
demagnetization of the rotor magnets. The only solution to this problem is to have
current transducers mounted in the phase windings so that the current may be monitored
and evasive action taken.
The controller in [7] and [9] contains separate commutation logic/control and
current regulation blocks. The commutation logic/control block was implemented with
- 21 -
3. Motor Control Literature
the Motorola MC33034 brushless motor controller chip. The MC33034 has inputs from
the rotor position sensors and driver control (start/stop and forward/reverse), and has
commutation signal outputs which feed into the Harris GS601 HVIC half-bridge gate
drive chip. Current regulation is achieved by difference summing a current command
signal (from the driver), and the current feedback signal (from one of the lower
switches). This difference voltage represents the current error, and the GS601 driver
chip minimizes the error by varying the switches’ PWM duty cycle, effectively
regulating the current to the desired value. The current control algorithm is simple in
principle. In this case a fixed off time, TL is used. The PWM frequency is determined
by the following formula:
E 1
f PWM = 1 −
VS TL
where f PWM = PWM frequency,
E = back emf of the motor,
VS = supply voltage of supply,
TL = off time of the switches.
The accuracy of the relationship described by the formula starts to deteriorate at
low speeds when the motor phase resistive drop approaches the magnitude of the back-
EMF. Another current regulation algorithm is briefly mentioned, namely holding the
total PWM frequency constant, so that the current ripple varies with speed.
The one and two switch active regeneration schemes are presented in article [9].
The two switch active scheme is preferred over the one switch active scheme at low
speeds as it is not as sensitive to the back EMF amplitude. Both methods take
advantage of the energy stored in the motor windings and transfer this energy back to
the supply. A simple speed detector circuit which works on the principle of providing a
pulse for every transition of the hall effect sensors is described. The frequency of the
pulses is proportional to the motor speed according to the following formula:
- 22 -
3. Motor Control Literature
p
f rotation = nv ( Hz )
120
where f rotation = frequency of the pulses,
p = no. rotor poles
n = number of commutations per electric cycle (typically = 6),
v = motor speed in revolutions per minute.
Some articles such as [15], [19] and [32], discussed the developments in
brushless DC motors and described how a particular motor was built for the “Desert
Rose” solar racing car. The articles discuss an axial flux permanent magnet brushless
DC motor designed for an in wheel drive on a solar car. The axial flux geometry was
found to have advantages over the common radial flux geometry by reducing volume
limits and having the ability to change the air-gap between stator and rotor. Increasing
the air-gap increases the copper loss as the torque constant decreases, but decreases the
iron loss as the flux density reduces. The main author of these articles was Dean
Patterson of the Northern Territory University. Dean Patterson also has written a
journal article on the electrical system design for a solar powered vehicle [29], which
made interesting reading material as the system could be compared with our own
system and comparisons made.
Article [4] describes some common dc drive failures and how to design a control
system which can sense the failure and continue to operate normally. The results are
presented both using a simulation and measured results.
- 23 -
3. Motor Control Literature
Article [31] presents a bi-directional dc/dc converter which can control the DC
link voltage and control regenerative braking of an electric vehicle. An explanation
follows that describes how the converter can switch currents in both forward and
reverse directions. Motor current ripple is claimed to be reduced by constantly
changing the DC link voltage under different operating conditions.
- 24 -
4. T HEORY
There are a number of configurations for the brushless DC motor, however all
operate on the same principal. There are three main components that make up such a
motor:
Stator Winding : The stator is usually wound in a three phase wye (or star)
connection. Three phase windings are usually sufficient to control most motors,
however more than three phase windings are common, and simply require additional H-
bridges and commutation circuitry. There is the option with the CSIRO motor to use
more than three phases as each phase is broken up into multiple sections. There is also
the option to connect the windings in a delta configuration, however this may introduce
unwanted circulating currents flowing around the windings. The stator of the CSIRO
motor is shown in Figure 5. Each of the three phase windings are distributed in a
- 25 -
4. Theory
- 26 -
4. Theory
which are placed on either side of the stator and are kept separated by special rims. The
stator will be held stationary and fixed to the trailing arm. Both rotor magnet rings are
fixed to the wheel rim, and rotate with the movement of the tyre.
Hall Effect Sensors : Hall sensors are a popular choice for rotor position
feedback in brushless DC drives, reasons being they are cheap and do not require
complex processing algorithms. Hall sensors are more suited for use with trapezoidally
controlled motors, as sinusoidal machines usually require a higher resolution sensor
such as a shaft encoder or transducer. The actual sensor is usually a N-doped InSb
semiconductor, which in the presence of a magnetic flux, an electromotive force causes
free flowing electrons to move to one side of the semiconductor which causes a
potential to form on the output terminals. In most hall elements manufactured, a
voltage regulator, amplifier
and schmitt trigger are all
integrated inside the one
device. The hall effect
sensors are glued to a PCB
which is located inside the
motor. The PCB can be
adjusted manually to align
the stator coil position with
the hall effect position. The
PCB with the hall effect
Figure 7 : Hall Effect PCB of the CSIRO Motor sensors mounted is shown in
Figure 7.
Three hall effects give output six different states for one full electrical cycle,
which is usually sufficient for most motor control applications. There are two possible
ways of positioning the hall effect sensors around the axis. The hall elements can either
placed at 60 or 120 electrical degree intervals (.i.e. the hall code changes every 60 or
120 electrical degrees). The hall effects to be used are configured to change every 60
electrical degrees. One electrical cycle is equal to 360 electrical degrees, and is defined
- 27 -
4. Theory
as when the hall sequence starts to repeat. The hall effect sequence can be represented
in Figure 8. Since the motor has 40 poles, for one revolution of the motor, each hall
sensor will experience 20 north's and 20 south's (i.e. 20 high and 20 low level outputs).
The mechanical separation of the magnets and hall effect sensors can be calculated
easily from knowing the number of magnets and poles. One mechanical cycle is equal
to one entire revolution of the motor or 360 mechanical degrees. One electrical cycle
no. electrical degrees in one cycle 360
repeats every = = 18 mechanical degrees.
no. poles/2 20
The main electrical parameters of the CSIRO motor are presented in Appendix C.
- 28 -
4. Theory
= 101.898 km/hr.
Thus a battery bank of 120V should be sufficient and will leave a small amount for
overtaking.
- 29 -
4. Theory
Each of the MOSFET’s contain an intrinsic diode which has a reverse recovery
time comparable to that of a discrete diode placed in parallel with the MOSFET. The
diodes will be referenced with the same numbering as the MOSFET’s, i.e. SW1 has a
corresponding diode D1, and so on.
4.2.1 Commutation
Commutation is the process of reading the hall effect sensor code, which gives
an indication of the position of the rotor. If the position of the rotor is known, then the
positions of the magnets are also known. To create a continuous rotation of the motor,
the correct phases must be switched on and off in the correct sequence so that the
applied voltage is in synchronism with the rotor position. Depending on the magnitude
of the current command, different magnitude torque can be applied to the motor. There
are two basic schemes of commutating a BLDC motor.
- 30 -
4. Theory
1
Note : Both high and low MOSFET’s of the same phase are never switched on at the same time.
- 31 -
4. Theory
- 32 -
4. Theory
2
Note : Both high and low MOSFET’s of the same phase are never switched on at the same time.
- 33 -
4. Theory
- 34 -
4. Theory
Current
+ Error
∑ Controller BLDC
Motor
-
Current Current Feedback
Command
This feedback signal is subtracted from the desired current input from the driver,
and a current error then propagates to the controller. This provides a mechanism for the
controller to accurately current limit by trying to keep the current error as close to zero
as possible. The actual current limiting is achieved using a PWM scheme for the
switching MOSFET’s. The audible range for humans is approximately between 6kHz
and 20kHz, so a PWM frequency above ~20kHz is sufficient to avoid an annoying
whine when switching.
- 35 -
4. Theory
trapezoidal current, is that there are many frequency components which make up a
trapezoidal waveform, and these components only contribute to losses in the motor.
Motor Related Torque Ripple : causes the torque waveform to be rounded during the
commutation intervals. This is caused mainly by magnetic flux leakage paths between
adjacent rotor magnet poles. This torque ripple can be minimized by careful motor
design. See label 1 in Figure 13.
Inverter Related Torque Ripple : The first of this type of ripple is caused by a current
imbalance when current is being switched between active phases. Sharp torque spikes
can be produced and are experienced every 60 electrical degrees. Special PWM
switching techniques can be used to reduce this ripple. See label 2 in Figure 13.
- 36 -
4. Theory
The second inverter related torque ripple is directly proportional to the high
frequency PWM ripple in the phase currents and produces the fast torque oscillation
(see label 3 in Figure 13.). This ripple is not usually a problem because the inertia of
the solar car usually filters out the ripple.
At high speeds, phase current and motor torque can decrease abruptly when the
supply voltage equals the combined back emf of the two conducting phases. Continued
high speed operation is possible by gradually extending the conduction time from 120
electrical degrees to 180 electrical degree conduction.
- 37 -
4. Theory
Te =
3p
2
[
λm .iq + id iq ( Ld − Lq ) ]
where Ld, Lq are the stator phase inductance’s.
When the device is in the off state, the drain is insulated from the source by the
p-type region, however when a potential voltage is applied to the gate terminal, current
is allowed to flow freely between drain and source. A MOSFET’s characteristic
waveforms at turn-on and turn-off is shown in Figures 16 and 17 respectively.
- 38 -
4. Theory
The device’s switching speed is largely effected by the size of the gate-to-source
capacitance. This capacitor has to be charged and discharged in one switch on and
switch off cycle. A summary of the turn-on sequence is as follows:
1) The MOSFET is initially turned off with no gate voltage present. At time 0, the
gate voltage reaches the threshold gate voltage, Vth, and drain current starts to rise.
2) Between time 1 and time 2 : Gate-Source voltage waveform deviates from it’s
original trajectory due to :
a) Series source inductance develops a voltage due to the rising drain current and
causes the gate-source voltage to decrease, and
b) The decreasing drain-source voltage is reflected across the drain-gate
capacitance. A discharge current flows through this capacitor causing an increase in the
capacitive load as seen by the driver. The voltage across the source impedance
increases thus causes a retardation of gate-source voltage.
3) Time 2-Time 3 : Drain current increases further due to the reverse recovery of
the free-wheeling diode.
4) Time 3 : The free-wheeling diode starts to support the drain-source voltage and
the rate of fall of the drain-source voltage is mostly dependent on the Miller effect. It is
at this point that the MOSFET has a maximum power loss due to a large current passing
through the device and a large voltage present across the device’s terminals. Due to the
falling drain-source voltage, the drain current settles out to the current determined by
the load and this causes the gate-source voltage to drop.
- 39 -
4. Theory
5) Time 4 : The MOSFET is completely turned on and the gate-source voltage rises
rapidly to the “open circuit” value.
There are two main power losses to consider when looking at the total power
loss in a power MOSFET. Refer to the MOSFET data sheet in Appendix B:
Static On Loss : The power loss due to the resistance between the drain and source.
This power loss decreases as more MOSFET’s are paralleled together.
Pon = I2xRx(duty cycle) = (13.9)2x0.022x50% = 2.13 W.
Dynamic (Switching) Loss : The power dissipated when the MOSFET is changing
conduction state. This loss stays ~ constant when paralleling other MOSFETs.
Psw = (Vds)x(Id)x(∆t)x(fsw) = 120x13.9x200x10-9x20k = 6.67 W.
Gate Drive Requirements : the gate drivers must supply enough charge to the
MOSFET gate to enable the gate-source capacitance to charge and the device to turn on.
The power requirements increase when more MOSFET’s are paralleled.
P = VxI = VxQxf = (10V)x(190nC)x(20k) = 38 mW.
- 40 -
4. Theory
- 41 -
4. Theory
- 42 -
5. HARDWARE DESIGN STAGE
This section details the process in designing the hardware of the motor
controller. A similar device should be able to be constructed based on the information
given here. The motor controller consists of two PCB boards: a high voltage board and
a control board. Each board will be described separately.
The power stage of the motor controller comprises all of the high voltage
components. It was decided to place all such components on the one PCB so that
potentially fatal high voltage kept confined to the one board, and didn’t have to be
routed across boards. The major components on this board are the MOSFET H-bridge,
driver circuits for the MOSFET’s and high voltage capacitors. There are a number of
auxiliary circuits also placed on the board. Most of them have something to do with the
high power section, therefore it was convenient to include these circuits on the same
board as the other components. These include bus voltage measurement, temperature
- 43 -
5. Hardware Design Stage
sensing of the MOSFET heatsink and two phase current sensing circuits. These circuits
are described in more detail in section 5.1.2. The PCB contained positive and negative
battery terminals on one end of the PCB and three phase connections on the other end.
The interface to the control board was through a 20 pin IDC connector. MOSFET drive
signals, power supply and sensor readings were sent through this connector, as
described in section 5.2.
The most important issues to consider when designing the high power part of the
motor controller are, in order of priority, as follows:
1) Reduce Stray Inductance : Any conductor of finite length will possess some
form of inductance. Stray inductance, especially in a circuit switching large currents
(i.e. large di/dt), may slow down turn-off of the MOSFET’s and produce unwanted
oscillations. One method of reducing stray inductance, and in some cases stray
magnetic flux (i.e. EMI), is to minimize the effective loop in which current flows. In
other words, forward and returning current paths have to be as close to one another as
possible. The upper limit to reducing stray inductance is the use of bus bars : copper
strips, with a thin insulator sandwiched between them. The first design of the motor
controller inverter section used copper busbars with a thin insulate sheet between layers.
Power components were to bolt onto the copper, however it was later abandoned due to
difficulties in construction and insulating problems.
2) Reduce Power Loss : An envisaged source of power loss is to use PCB tracks.
A calculation waas carried out to determine the power loss in a PCB track (dimensions
4mm wide, 0.0034 mm thick and 80mm long), carrying 13.9 A of (nominal) current.
R = pL/A = 1.7x10-8x80/(0.0034x4) = 100u ohms.
Where p is the resistivity of copper = 1.7x10-8 ohm x metre.
This indicates that using a PCB with wide tracks should pose no problem with losses.
- 44 -
5. Hardware Design Stage
5.1.2 Sensors
The bus voltage circuit simply works from a voltage divider consisting of
resistors R37-R39 inclusive. The divider has a ratio of exactly 0.025, so that if
Vin=120V, Vout=3V and if Vin=200V, Vout=5V. Resistors R37 and R38 are not
simply replaced by a single resistor for safety reasons. If either R37 or R38 were to
become short circuit, the other resistor would still act as a voltage divider and prevent
the full bus voltage propagating through to the rest of the system and destroying
components. Capacitor C21 simply filters the input signal to remove any voltage spikes
- 45 -
5. Hardware Design Stage
which may be present on the bus. Diodes D4 and D5 are schottky type diodes and are
designed to clamp the input signal from 5V+Vd to 0V-Vd. The op-amp is configured as
a voltage follower and simply acts as a buffer. The output of this circuit under normal
operating conditions is 0-5V which corresponds to a bus voltage of 0-200V DC.
- 46 -
5. Hardware Design Stage
Resistive Shunt
Advantages : cheap, readily available, no power supply required
Disadvantages : non-isolated, relatively high power dissipation with large current draw,
becomes inaccurate if shunt becomes hot.
A hall current transducer was chosen over a traditional resistive shunt because :
• Cost was not a major issue
• Isolation was required and which meant using an isolated op-amp with a
conventional shunt resistor, and
• A power supply was already supplying +/-15V for another current transducer used.
To effectively measure the phase currents of all three phases, two identical
circuits were used to measure the phase currents of phases A and B. The current in the
third phase, C, was readily determined by applying the simple Kirchoff’s current law to
the star configuration of the phase windings (i.e. IphaseA+IphaseB=IphaseC).
- 47 -
5. Hardware Design Stage
measured, so that the voltage output ranged from –5V(-50A measured) to +5V(+50A
measured). The analogue-to-digital converter on the SH1 only accepts an analogue
voltage of between 0-5V, thus the sensor’s output had to be scaled accordingly.
Resistors R44 and R45 are of equal value and form a voltage divider. In this
configuration, the input voltage to the op-amp still ranges from 0-5V, however 0V
denotes –50A measured, 2.5V denotes 0A measured and 5V denotes +50A measured.
Diodes D6 and D7 are schottky type diodes and are designed to clamp the input signal
from 5V+Vd to 0V-Vd. The op-amp is configured as a voltage follower and simply
acts as a buffer. The output of this circuit under normal operating conditions is 0-5V
which corresponds to a measured phase current of –50 to +50A DC.
Manufacture of this part was fairly straightforward. The PCB was designed
using Protel Advanced PCB CAD software. Due to the nature of high power on the
PCB, all high power tracks were set to 10mm wide where possible. Power supply
tracks to the driver chips were set to 1mm and other tracks set to 0.5mm. Pad sizes
were set to 2mm where possible so that components had a large area to solder to,
making the PCB more reliable. Since the final PCB was fairly simple and contained no
smaller tracks than 0.5mm,
the electronics workshop at
university was able to
manufacture the PCB. To
increase the current
capacity of the tracks, all
copper tracks were tinned.
A solder through lacquer
completed the manufacture
of the PCB.
- 48 -
5. Hardware Design Stage
The most important factor when designing the PCB was the layout of
components, especially the high power devices. A logical layout was used, having the
battery connection on one end of the PCB and the motor connections at the other end.
The finished design is shown in Figure 18. The position of the capacitors was not
critical, however were placed close to the battery input. Each MOSFET “switch” is
comprised of three MOSFETS placed in a row. A compact way of achieving this was to
mount them vertically in line with pins through the board.
All high power connections to the MOSFET were placed under the board so that
no vias had to handle high current. All drive connections to the MOSFET was achieved
on the top of the board using surface mount devices(SMD’s). The final layout of
MOSFET’s resulted in a compact layout which helps to reduce the inductance due to
large current flow. The position of the Metal Oxide Varistors (MOV’s) was not critical,
however were placed close to the device they intend to protect : the MOSFETS. A
- 49 -
5. Hardware Design Stage
LM35 temperature sensor (case T0-92) was mounted to the heatsink by simply gluing
the case down. The TO-92 case style was preferred to a surface mount version
available, due to anticipated difficulties in mounting the SMD to the heatsink without
shorting the pins on the heatsink. Connections to the sensor were made through a three
wire connector which plugged into the PCB.
The driver chips were placed as close as practical to the MOSFET’s and
auxiliary components to the IR2110 were able to be placed very close to the IC. To
minimize inductance in the drive signals running between the microprocessor and the
driver chips, twisted pair cable should be used. Due to the way the PCB’s were
constructed, the two cables were made so that they ran close together. In the IDC20
plug which connects the two boards, each 2nd wire is connected to ground, so that every
signal wire runs next to a ground wire. Special attention is made on the PCB to have a
ground track running directly opposite a signal track.
The control stage comprises the SH1 microprocessor and it’s auxiliary
components, serial communications, sockets for hall effect input and output to power
board and some signal conditioning circuitry. The serial communications port forms
two primary duties. Power is supplied from the power board through the serial link and
is then distributed throughout the controller. Voltage is supplied at +/-15, 8 and 5V.
The second is a half duplex communication link between the motor controller and the
telemetry board. The input signals from the telemetry board are as follows, and are all
represented as a digital word:
- 50 -
5. Hardware Design Stage
Forward/Reverse Selector Switch : This switch forms part of the driver controls
and simply implies which way the driver would like to motor. This signal likewise
is sent as a digital word, where 0x0000 represents forward and 0xFFFF reverse.
Brake : To indicate to the motor controller that the driver is pressing the brake
calipers, two miniature switches are inset into either caliper. When the driver starts
to place pressure on the caliper, the switches are activated via a simple strip of metal
which runs along the front of the caliper. This signal likewise is sent as a digital
word, where 0x0000 represents brakes not activated and 0xFFFF brakes activated.
A socket is also set up to accept hall effect inputs and thermistor resistance from
the motor. Power is supplied to the hall effect devices also via this socket. A 20-pin
IDC connector forms the interface to the other PCB as described earlier in the chapter.
MOSFET drive signals are output, two signal conditioned phase currents, bus voltage
and MOSFET temperature are input and power supplied to the other PCB on this
socket. A two pin connector is mounted on the board so that the fan may be
conveniently plugged and unplugged from the PCB.
The schematic was drawn using Protel and was spread over three sheets (see
Appendix A for schematic printouts). The three sections will each be given a short
description:
- 51 -
5. Hardware Design Stage
Power arrives at the motor controller from the serial port. The fuse and the
“trans-zorb” transient suppressor provides a degree of protection against continued
excessive current draw and overvoltage respectively. Capacitors C2 and C23 are
standard decoupling values for the 5Vsupply. Capacitors C3 and C24 are used in
conjunction with the cooling fan supply, and are designed to absorb the relatively large
current draw of the fan at startup. Decoupling capacitors for the +/- 15V supplies are
found on the other PCB.
The MAX483 with associated decoupling capacitor C13 forms the serial
interface chip which runs on the RS485 protocol. Two output pins are only needed to
interface the chip to the outside world. As a general rule, 100 ohm resistors are used in
- 52 -
5. Hardware Design Stage
series to the SH1 for all digital and analogue input and output lines. This simply
provides some protection for the microprocessor, as the resistors limit to some extent
any current into or out of the SH1. Resistors R1 to R10 inclusive perform this function.
The 20 pin IDC was wired exactly the same as the corresponding IDC on the other
board so that the boards could be mounted above one another and a cable could run
directly from one to the other. JP5 was included incase optoisolation was needed
between the SH1 and the driver chips. The optoisolation simply provides added
protection to the SH1, however it was felt this was not required and would consume
power unnecessarily. In the case the optoisolation is required, a patch PCB can be fitted
into the socket and optoisolation chips fitted.
The hall effect signals are a open collector output thus require pull-up resistors
to 5V. Resistors R26 to R27 inclusive provide this function, and a value of 1k ohm
resulted in clean output. Each hall signal is then filtered using a simple RC series
network before being cleaned further by a pair of schmitt triggers. Decoupling
capacitor for the schmitt trigger is C18. The motor temperature sensing circuit
consisted of a Wheatstone bridge and a LM358 op-amp configured as a differential
amplifier. The thermistor resistance formed one arm of a Wheatstone bridge along with
resistors R18 to R20 inclusive and R32. Variable resistor R32 is for fine calibration of
the output temperature. The resistor values around the op-amp were calculated as
follows:
The thermistor is a non-linear device, it’s resistance having an exponential response
approximately equal to:
Rthermistor = 0.016e 3977 T where Rthermistor is the resistance in ohms across the
thermistor terminals.
T is the temperature of the thermistor in Kelvin (273 +T =
temperature in degrees).
This is plotted in Figure 20, and shows the expected resistance values at key
temperature points.
- 53 -
5. Hardware Design Stage
35000.00
25000.00
20000.00
15000.00
10k ohm @ 25 degrees C
10000.00
508 ohm @ 110 degrees C 194 ohm @ 150 degrees C
5000.00
0.00
103
109
115
121
127
133
139
145
1
7
13
19
25
31
37
43
49
55
61
67
73
79
85
91
97
Temperature (degrees C)
The PCB was designed using Protel software and measured a small 137x69mm.
The PCB had to be
manufactured out of
University as 0.25mm
tracks were used and a
solder mask was necessary
for the surface mount
components. A silkscreen
was also printed onto the
PCB showing placement
of components. All
- 54 -
5. Hardware Design Stage
shown in Figure 21. The main issues when soldering surface mount components using
the soldering station were:
1) Hold the component down and place and sparingly place the solder paste over
the component pins.
2) Hold the hot air gun a fair distance from the PCB to dry the solder paste out to
avoid spreading the paste over the board and then move in closer and bring the paste to
melting point. The solder mask repels the melted solder and is attracted to the
component pins.
As an extra precaution, a piece of plastic was fitted under the fuses to avoid shorting to
any tracks or vias.
- 55 -
6. SOFTWARE DESIGN STAGE
Although the code has not been fully completed at the time of writing this thesis,
it should be working at the time of demo day. Software flowcharts are included where
necessary.
A block diagram of the system is shown in Figure 22. Block 1 represents the
driver controls. The torque input passes through a block with gain K before entering
block 2. The gain is simply a linear scaling factor to convert the commanded torque to
a commanded current. The other driver controls input to block 2 is the forward/reverse
switch and the brake command. Block 2 is an algoritm that determines the correct
division of current to the three phases. This algorithm receives position feedback from
the hall effects in the motor. Block 9 is a lookup table which receives the hall effect
codes and converts them to a sequence of MOSFET states using the commutation truth
- 56 -
6. Software Design Stage
table. The circles labelled 3 represent differentiators. The output is the difference
between the commanded current from the driver and the actual current sensed in the
phase windings at the ellipse marked 7. Block 8 simply calculates the current in all
three phase windings from the current feedback from two phase windings. The
difference in current from stage 3 is a current error, and is an indication as to the
discrepancy between the actual and commanded current. The three error signals are fed
into block 4 which determines the ITU register values. Block 5 produces the PWM
output signals which are generated using the ITU in the SH1. Block 6 represents the
MOSFET H-bridge which outputs a three phase waveform to the motor.
2
4 5 6
3 7
8
10
1
9
K BLDC
MOTOR
The controller must be able to drive the motor in all four quadrants. The quadrants can
be presented diagrammatically on the torque-speed plane as in Figure 23.
- 57 -
6. Software Design Stage
Speed
Forward Forward
Regeneration Motoring
(Braking)
2 1
Torque
3 4
Reverse
Reverse
Regeneration
Motoring
(Braking)
The main program is the control loop which ultimately determines the switching
state of the MOSFET’s. A number of subroutines, some described below multitask with
the main program. The SH1 does not do full multitasking, but assigns a very small time
period to all subroutines and programs running, and keeps cycling through these.
- 58 -
6. Software Design Stage
6.3.1 Regeneration
- 59 -
6. Software Design Stage
Figure 24:One Switch Active Topology Figure 25:Two Switch Active Topology
Lab represents the combined inductance’s of phases A and B and Vab represents
the combined back emf of phases A and B. The circuit operation is described below:
6.3.2 Brake
- 60 -
6. Software Design Stage
When the brake is pressed, the program will halt and set the current input to a
large regenerative setting. A speed control loop determines whether the car has
completely slowed down, and stops the car from rolling back.
6.7 Commutation
A simple lookup table located in memory will be used to translate hall effect
codes into MOSFET switching states.
- 61 -
6. Software Design Stage
If the bus voltage exceeds a certain limit which approaches the maximum
MOSFET drain-source voltage, the MOSFET’s will have to be disabled until the over
voltage condition has subsided. This will most likely occur during regeneration.
- 62 -
7. DISCUSSION
7.1 Discussion
All hardware design was completed, however the software has not been
completed as of this hand in date. It is hoped this will be operational by the demo day.
- 63 -
8. CONCLUSIONS
Although the new motor controller is a large improvement over the previous
controller, providing a more efficient control of the motor, there are a number of
projects that may form a thesis or small project for any future people interested in the
area of motor control. The projects include:
- 64 -
8. Conclusions
A Current Transducer : In the current motor controller, two current transducers are
used to measure the individual phase currents. One disadvantage with the sensors used,
was that they required dual supplies (+/- 15V DC) so that the output was able to swing
both in the positive and negative directions. This is particularly undesirable in most
cases when trying o interface with a microprocessor’s A/D port, which only accepts 0-
5V DC input. It should be possible to develop custom made transducers that work from
a single supply, (e.g. 5V DC), measure current in both directions and output voltage in
the range 0-5V. This sensor can then be used to measure all current sensing
requirements throughout the car, resulting in significant energy saving especially when
sensing large currents, as compared with the standard shunt resistor method.
Switching Algorithms and Advanced Features : The current design can be easily
modified especially in the code. New switching algorithms may be found which will
improve efficiency of switching. Other features may be added onto the board easily, as
each pin not used on the SH1 is brought out to jumper pins.
- 65 -
8. Conclusions
The development of the future’s clean vehicles (i.e. vehicles which do not emit
potentially harmful greenhouse gases) has a brighter future thanks to solar car vehicles.
Solar cars are, at the present day, simply primarily racing vehicles and have no direct
commercial applications. Their restriction is mainly from the limitations of the slowly
emerging technology, namely photovoltaic solar energy. It is envisaged however, that
the innovations and discoveries made through solar cars will spark new ideas and
products to develop the clean cars of the future. Of course the automobile industry will
not be the only organization to benefit from the spin-offs from solar cars. The work has
far reaching applications in solar houses, remote area power systems (RAPS) and space
applications to name a few examples.
- 66 -
Appendices
APPENDICES
- 67 -
Appendices
APPENDIX A: SCHEMATIC
AND PCB DESIGNS
- 68 -
Appendices
APPENDIX B: MOSFET
DATA SHEETS
- 69 -
Appendices
APPENDIX C: CSIRO/UTS
MOTOR SPECIFICATIONS
- 70 -
Appendices
APPENDIX D: MICROCOMPUTER
PROGRAM LISTINGS
- 71 -
Appendices
APPENDIX E: ACCOMPANYING
COMPUTER DISK
MAIN PROGRAM
SCHEMATIC FILES
PCB FILES
- 72 -
Bibliography
BIBLIOGRAPHY
Books
[33] Crowder, R. M., Electric Drives and their Controls, Oxford : Oxford University
Press, 1995.
[34] Kenjo, T., Power Electronics for the Microprocessor Age, Oxford : Oxford
University Press, 1994.
[37] Rashid, M. H., Power Electronics : Circuits, Devices and Applications, 2nd Ed.,
Prentice Hall International Inc., 1993.
Journal Articles
[1] Jahns, T. M., “Torque Production in Permanent-Magnet Synchronous Motor
Drives with Rectangular Current Excitation,” IEEE Transactions on Industry
Applications, vol. IA-20, no. 4, pp. 803-13, July/August 1984.
- 73 -
Bibliography
[4] Wallace, A. K., Spee, R., “The Simulation of Brushless DC Drive Failures,”
PESC ‘88 Record, pp. 199-206, April 1988.
[6] Morimoto, S., Takeda, Y., Hirasa, T., Taniguchi, K., “Expansion of Operating
Limits for Permanent Magnet Motor by Current Vector Control Considering Inverter
Capacity,” IEEE Transactions on Industry Applications, vol. 26, no. 5, pp. 866-71,
September/October 1990.
[7] Jahns, T. M., Becerra, R. C., Ehsani, M., “Integrated Current Regulation for a
Brushless ECM Drive,” IEEE Transactions on Power Electronics, vol. 6, no. 1, pp.
118-26, January 1991.
[8] Low, T., Lee, T., Tseng, K., Lock, K., “Servo Performance of a BLDC Drive
with Instantaneous Torque Control,” IEEE Transactions on Industry Applications, vol.
28, no. 2, pp. 455-62, March/April 1992.
[9] Becerra, R. C., Ehsani, M., Jahns, T. M., “Four-Quadrant Brushless ECM Drive
with Integrated Current Regulation,” IEEE Transactions on Industry Applications, vol.
28, no. 4, pp. 833-41, August 1992.
- 74 -
Bibliography
[12] Chan, C. C., Jiang, J. Z., Xia, W., Chau, K. T., “Novel Wide Range Speed
Control of Permanent Magnet Brushless Motor Drives,” pp. 539-46, 1995.
[13] Lia, K., Hsiao, C., “Modelling and Implementation of a Resonant DC-Link
Inverter Driving a Permanent Magnet Synchronous Servo System,” pp. 370-5, 1995.
[15] Patterson, D. J., Spee, R., “The Design and Development of an Axial Flux
Permanent Magnet Brushless DC Motor for Wheel Drive in a Solar Powered Vehicle,”
IEEE Transactions on Industry Applications, vol. 31, no. 5, pp. 1054-61, 1995.
[17] Tuckey, A. M., Patterson, D. J., “Brushless DC Machine Controller for a Kinetic
Energy Tidal Generator – Progress in Implementation, and Results,” pp. 323-8.
[18] Gasser, S. C., Cochrane, I. C., “High Efficiency PWM-VSI for a Solar-Electric
Racing Car,”, pp. 353-8, 1995.
[19] Patterson, D. J., “Recent Advances in the Design and Construction of Axial Flux
Permanent Magnet Machines,” National Engineering Conference ‘The Darwin
Summit’, pp. 435-9, 1996.
[20] Caricchi, F., Crescimbini, F., Honorati, O., Napoli, A. D., Santini, E., “Compact
Wheel Direct Drive for EVs,” IEEE Industry Applications Magazine, pp. 25-32,
November/December 1996.
- 75 -
Bibliography
[21] Chung, S., Kim, H., Youn, M., “A New Instantaneous Torque Control of PM
Synchronous Motor for High Performance Direct Drive Applications,” IEEE
Proceedings, pp. 721-27, 1997.
[22] Gair, S., Hredzak, B., Eastham, J. F., “Design of Advanced Electric Drives and
Torque Control Methodologies for Electric Vehicles,” EVS 14 Conference, Transport
Research Institute, Napier University and Dept. Electrical and Electronic Engineering,
University of Bath, pp. 1-10.
[23] Sato, Y., Fujita, K., Yanase, T., Kinoshita, S., “New Control Methods for High
Performance PM Motor Drive Systems,” EVS 14 Conference, Fuji Electric Corporate
Research and Development Ltd., pp. 1-9.
[24] Chan, C.C., Chau, K.T., Chan, D. T. W., Yao, J. M., “Soft Switching Inverters
in Electric Vehicles,” EVS 14 Conference, Dept. Electrical and Electronic Engineering,
The University of Hong Kong, pp. 1-10.
[25] Kogure, S., Kawabata, Y., Yamada, E., Kanamori, A., “Development of Motor
Control Technology for Electric Vehicles,” EVS 14 Conference, Toyota Motor
Corporation, pp. 1-14.
[27] Xu, C. H., Schroder, D., “Modelling and Simulation of Power MOSFET’s and
Power Diodes,” PESC ’88 Record, pp. 76-83, April 1988.
[28] Liang, Y., Gosbell, V. J., “Diode Forward and Reverse Recovery Model for
Power Electronic SPICE Simulations,” IEEE Transactions on Power Electronics, vol.
5, no. 3, pp. 346-56, July 1990.
- 76 -
Bibliography
[29] Patterson, D. J., “Electrical System for a Solar Powered Vehicle,” Recordings of
st
21 Annual IEEE Power Electronics Specialists Conference PESC ‘90, pp. 618-22,
1990.
[30] Fardoun, A. A., Fuchs, E. F., Huang, H., “Modeling and Simulation of an
Electronically Commutated Permanent-Magnet Machine Drive System Using SPICE,”
IEEE Transactions on Industry Applications, vol. 30, no. 4, pp. 927-37, July/August
1994.
[31] Caricchi, F., Crescimbini, F., Noia, G., Pirolo, D., “Experimental Study of a
Bidirectional DC-DC Converter for the DC Link Voltage Control and the Regenerative
Braking in PM Motor Drives Devoted to Electrical Vehicles,” IEEE Applied Power
Electronics Conference APEC 1994, pp. 381-86, 1994.
Internet Resources
- 77 -