Académique Documents
Professionnel Documents
Culture Documents
Submitted By:
Jay Manek (17BEE046)
Navin Khatri (17BEE054)
I must acknowledge the strength, energy and patience that almighty GOD bestowed upon me to
start & accomplish this work with the support of all concerned, a few of them I am trying to
name here under.
I would like to express my deep sense of gratitude to my Supervisor, Prof. Chirag Raval,
Assistant Professor of Electrical Engineering Department for his valuable guidance and
motivation throughout my study.
I would like to express my sincere respect and profound gratitude to Prof. (Dr.) S. C. Vora,
Professor & Head of Electrical Engineering Department for supporting and providing the
facilities for my seminar work.
I would also like to thank all my friends who have helped me directly or indirectly for the
completion of my seminar.
No words are adequate to express my indebtedness to my parents and for their blessings and
good wishes. To them I bow in the deepest reverence.
Navin Khatri
Jay Manek
|Institute of I
Technology, Nirma
University,
Ahmedabad
ABSTRACT
Electronic Speed Controller (ESC) is nowadays popular in Motor Control Application to control
the speed and position of motor. After the invention of Brushless DC Motor, ESC demand was
increased like anything as Brushless motors are used in many applications of Quad-copters and
Robotic drives. There are different ESCs are available in market but from that very few are
capable of doing traction control application in ESC. As the Traction Control is difficult to
implement in the Hardware that is why most ESCs come without Traction control in it. Field
Oriented Control (FOC) is the method of implementing Traction Control in Brushless Motors.
Also the FOC specifications changes with change in the specifications of motor and the FOC
specifications should be calculated accordingly.
Here, we have focused on the generalized ESC that can perform all the operations. A ESC,
which could be able to Calibrate that specification of motor and set the PID according to the
Motor and ESC which is able to Control position as well as speed of the Motor. Moreover the
ESC which could also control the Brushed DC Motor by utilizing the same Hardware, but just
little Change in the Firmware of the ESC. In this report everything is discussed about designing
aspects and hardware Problems while designing the same.
|Institute of II
Technology, Nirma
University,
Ahmedabad
LIST OF FIGURES
Figure No: Name of the Figure: Page No:
Fig. 3.1 Pipelining in ARM architecture 06
Fig. 3.2 Exception Handler 07
Fig. 3.3 Operation Mode Process 08
Fig. 3.4 Operation Mode Block-Diagram 08
Fig. 4.1 Selection of Microcontroller 10
Fig. 4.2 Programmer 11
|Institute of III
Technology, Nirma
University,
Ahmedabad
LIST OF NOMENCLATURE
Vi : Input Voltage
Vo : Output Voltage
ih : Harmonic Current
:
|Institute of I
Technology, Nirma
University,
Ahmedabad
LIST OF TABLES
Table No: Name of the Table: Page No:
Table. 1.1 ARM Microcontrollers manufacturer 02
Table. 2.1 Peripherals 04
Table.4.1 Functions of GPIO in LPC1769 13
|Institute of I
Technology, Nirma
University,
Ahmedabad
LIST OF ACHRONYMS
ESC :Electronic Speed Controller
BLDC :Brushless DC
MOSFET :Metal Oxide Semiconductor Field Effect Transister
PWM :Pulse Width Modulation
PID :Proportional Integral Derivative
:
SPSR :Saved Program Status Register
CPSR :Current Program Status Register
PC :Program Counter
SP :Stack Pointer
GPIO :General Purpose Input Output
CMSIS :Cortex Microcontroller Software Interface Standard
IDE :Integrated Development Environment
ICs :Integrated CIrcuits
SRAM :Static Random Accesss Memory
DRAM :Dynamic Random Access Memory
CU :Control Unit
TABLE OF CONTENTS
ACKNOWLEDGEMENT I
ABSTRACT II
|Institute of II
Technology, Nirma
University,
Ahmedabad
LIST OF FIGURES III
LIST OF TABLES IV
NOMENCLATURE/ABBREVIATIONS V
TABLE OF CONTENTS VI
CHAPTER 1: INTRODUCTION 1
1.1 Microcontrollers 1
1.2 ARM 1
1.1.1 What is ARM? 1
1.1.2 ARM Family Tree 1
1.3 ARM Microcontroller Manufacturer 2
3
CHAPTER 2: CORTEX-M: CORE + PERIPHERALS
2.1 Core 3
2.2 Peripherals 4
5
CHAPTER 3: ARCHITECTURAL OVERVIEW
3.1 Core Architecture 5
3.2 Pipelining 5
3.3 Exceptions 6
3.4 Operating Modes 7
3.5 Load-Store Model 9
CHAPTER 4: PROGRAMMING 10
4.1 Prerequisite 10
4.1.1 Selection of Microcontroller 10
4.1.2 Programmer 11
4.1.3 Software 12
4.2 Examples 12
REFERENCES 15
APPENDIX 16
|Institute of III
Technology, Nirma
University,
Ahmedabad
CHAPTER 1: INTRODUCTION
1.1: ESC -(Electronic Speed Controller)
Electronic speed controllers are used to control the speed of different types of motor. And based
on types of motors, there are different types of ESCs available in the market. So to understand
the ESC mechanism we will first go through the operation of different types of motor and based
on that we will classify the ESCs. After the classification of motors and ESC we will go towards
the actual circuitry. We have mainly focused on the Brushless motor ESC as it is most recent
trend and it is difficult to implement so we took it as challenge to make it on our own circuit
board. In the Actual circuit we will discuss about the different driver circuits and how to choose
between different driver circuits of Mosfet and we will also discuss the problems faced during
developing the circuits. Also we will discuss the control strategies and feedback used in the
ESCs. At the end we will also discuss about how can we combine all these things to make a
generalized solution. The solution product to control so many different types of motors in just
single ESC. So we will go step by step in this report according to our discussion above.
|Institute of 1
Technology, Nirma
University,
Ahmedabad
conducted, the direction of motor will changes. To change the speed of the motor we need to
change the voltages given to the motor terminals. PWM technique is used to control the voltages.
So as we increase the duty cycle of the conduction of Mosfet the Voltage across the motor
terminals also increases and vice-verse is also true.
1.2.2.2 Brushless ESC:
These ESCs are used to control the speed of BLDC motor. BLDC has several advantages over
conventional brushed motor, which are as following: BLDC motors has less vibration, high
efficiency, less noisy. The weight to power ratio of the BLDC motor is also good compared to
conventional brushed motor. in conventional brushed motor , spark may produced due to
commutation problem, but in BLDC motor this problem overcomes.
Working Principle of BLDC :
When DC supply is applied to coil, the coils are energized and create electromagnet. the
operation of BLDC is based on attraction and the repulsion between electromagnets and
permanent magnets. when coil A is energized, the coil A and magnet pole are attracted. In coil A
the current should be in such a direction that it produces direction of electromagnets ( N and S)
pole different than the Permanent magnet pole, which comes nearer to coil. In other words the
opposite poles of electromagnet and permanent magnet are attracted. when Magnetic pole rich to
coil A ,the next coil B must be energized, so again the electromagnets(stater coil) and permanent
pole are attracted.
But here draw back in this operation is that only one coil is energized at a time and other two coil
are free from supply. and hence output power of the motor is reduced.to overcome this
problem,the coil behind the pole are also energized, but in a such way that it will push the rotor
|Institute of 2
Technology, Nirma
University,
Ahmedabad
to perform repulsion between rotor and coil.to make this kind of operation , we have to supply
same polarity current in next coil. This operation produced high torque and more power output
compared to previous operation. Hence by applying this operation the BLDC produced higher
torque.
To operate BLDC how to know which coil is energized and when to energize? So, we use
electronic controller for this purpose. Sensor determines the position of the rotor, and based on
that controller designed. So we get to know when to energize which coil. In Most of the cases
hall effect sensor is used for this purpose. The out runner and in runner BLDC are available in
market.
As discussed above operation of BLDC motor, we have to create such types of wave form, so
that by applying waveform we can operate this motor directly. This types of waveform are
similar to 3 phase inverter. We have to use 120 degree conduction mode as it is most preferred in
the BLDC motor because of conduction time is such that it fits in all the operations.
To control the speed of the BLDC motor we need to know the position of the rotor and to find
the position of the rotor there are two techniques that can be used :
1. by using hall sensor or rotary encoders
2. by using back emf in free coil.
So according to the techniques used in controlling the motor there are also sub-types.
|Institute of 3
Technology, Nirma
University,
Ahmedabad
1. Sensored ESCs
2. Sensorless ESCs
|Institute of 4
Technology, Nirma
University,
Ahmedabad
As we can see clockwise direction from 1 to 6 has some hall sensor output which is different
then the anticlockwise direction from 6 to 1 as given in below table.
Step Anti-clockwise Clockwise
1 (0,0,1) (1,0,1)
2 (0,1,1) (1,0,0)
3 (0,1,0) (1,1,0)
4 (1,1,0) (0,1,0)
5 (1,0,0) (0,1,1)
6 (1,0,1) (0,0,1)
Table
|Institute of 5
Technology, Nirma
University,
Ahmedabad
If ESCs are supplied with batteries then Battery voltages should not be higher than the maximum
voltage that ESC can withstand. Continuously output of battery’s current need to be greater than
the ESCs Continuous current. Voltage ratings mainly depends on the components of ESC as well
as power source. E.g. maximum voltage withstand capacity of electronic switch. Voltage rating
of power source like SMPS and Ni-Cd or Li-PO batteries. As voltage on ESCs are sometimes
given in the form of number of cells to be connected in series. E.g. Input Voltage: 3S-6S Li-Po
or 6-20s Ni-Cd. Means its rated for 12-24Volts.Working voltage of the motor is depends on the
ESC, whilst the voltage of ESC is decided by the output of batteries. Hence the voltage of
batteries should be equal or less than the voltage of motor.
|Institute of 6
Technology, Nirma
University,
Ahmedabad
current devices due P-MOS current limitations. In this configuration both p MOSFET and n
MOSFET are used in the driving circuit of ESC. The limitation of P-Mosfet is less likely used as
it can only be used in low current devices due P-MOS current limitations.(refer figure )
Figure
And we can also use all the N-Mosfet instead
of the 3 P-MOS and 3 N-MOS. But Problem
with N-Mosfet is It requires VGS greater than
threshold Voltage as shown in figure. Which
is creating problem for the high side Mosfet
because the high side Mosfet does not have
source voltage is at floating voltage instead of
ground. so we use C-Mosfet configuration as
it is easy to implement.
Figure
|Institute of 7
Technology, Nirma
University,
Ahmedabad
There is Solutions available for this problem to use all 6 N-Mosfets for driver circuitry.
2.1.1 Using Isolated Power Supply for High side MOSFET driver:
Figure
Here Isolated Power Supply for high side Mosfet driver is used in the Figure which shows that
when the input to the high side Mosfet will be given with different power supply which is
connected to give VGS voltage greater than threshold voltage to gate of the high side Mosfet.
But this technique uses 2 power supply which is not applicable in every scenario or 2 power
supplies is not always a option to select. Where it could be done with single power supply so for
that purpose we will see another driving circuity which uses single power supply to drive 6 N
channel Mosfets which is Boot-strapping.
| |Institute of
7 Technology, Nirma 8
University,
Ahmedabad
Figure
| |Institute of
7 Technology, Nirma 9
University,
Ahmedabad
CHAPTER 3: CONTROL FACTORS OF
ESC
Most Challenging task in ESC is to implement the Field oriented Control (FOC) for Traction
Control Application. Traction control means Keeping the slip of motor nearly equal to 0.
In order to control the torque of dc motor, we have to control the current of the DC motor.
So to control the speed and torque of the motor. Following four steps must be done.
(1) Measure the current which is already flowing through motor.
(2) Compare the measured current, desired current and generate an error signal.
(3) Amplify the error signal to create correction voltage.
(4) Modulate the correction voltage into motor terminal.
| |Institute of
7 Technology, Nirma 10
University,
Ahmedabad
Step 2: Compare the measured current and desired current and generate an error signal.
Direct axis and quadrature axis. Means IS current represented in two vector Iq
And Id. And this can be done by forward park transformation.
And we need all current on d axis and q axis. Because as above all line current is perpendicular
to rotor flux. So we have to maintain value of Id equal to zero. As discussed above we have to
compare desired current and measured current. But these 2 are done separately. Means desired Iq
is compared with measured Iq . And desired Id is compared with measured Id .and also desired Id
is equal to zero. And we have to provide desired current according to desired torque and speed.
| |Institute of
7 Technology, Nirma 11
University,
Ahmedabad
| |Institute of
7 Technology, Nirma 12
University,
Ahmedabad
Step 3: Amplify the error signal to create corrections voltage.
In this step we error signal are amplified covered into V by pi converter. and we get two voltage
e.g. Vd and Vq.
Once this is done , we have to provide Vd And Vq provide to the The supply terminal. But the
problem is that we have 3 terminal at input. So we need to convert Vd and Vq. into three terminal.
and also Vd and Vq. are rotor axis reference frame. But supply should be provide on stationary
part. So these two voltage should apply on voltage frame. So we have to provide Vd and Vq to
reverse clark-park Transforms and it converts the rotor axis frame into stationary voltage frame.
Stationary voltage frame are Va and Vb. So Vq and Vd converted into the Va and Vb . this
calculation can be done by sine and cosine formulas. Va and Vb creates voltage vector V.
7
Hence this V should be desired one to provide our wanted speed. And accordingly three phase
regulated supply voltage be apply by this hole controlling technique.
This Process is Repeated 1000 times in 1 second to calculate the output. The Output of the result
is utilized by the microcontroller and the signal is then converted to the PWM pulses so these
pulses are fed to driver circuitry and this is how whole process works to control everything
7
CHAPTER 4: CONCLUSION AND
FUTURE SCOPE
Electronic Speed Controller are used in many applications like Quad-copters, Airplanes, UAV,
Electric cars, Electric bicycles, Drones, Robotic Drives, Mobile Robots etc. So from this aspects
we can conclude that the applications are so wide that it is used every where. In other words
every application which contain the use of motor, ESC is required there. if it is Brushed DC
motor then Brushed ESC is required and if it is Brushless DC motor then Brushless ESC is
required.
According to our study as Brushed ESC use 4 Mosfets and Brushless ESC uses 6 Mosfets to
control respective Brushed or Brushless motor. The control of Brushed motor can also be
performed by Brushless ESC as it is having 6 Mosfets and we only required 4 out of that, but the
only change required in the ESC is of Firmware. If we change the Program of the ESC it should
be able to work for Brushed DC motor.
Moreover ESCs could be revolutionize if there is only single ESC to control all the types of
motors that should include Brushed DC motor as well as Brushless DC motor. The Final Product
formed from the ESC is such that it has certain hardware and only Firmware change is required
to move from one motor to another motor. That kind of advanced product can revolutionize in
the world of ESC.
7
REFERENCES
(1) http://www.ti.com/lit/an/slyt762/slyt762.pdf
(2) http://www.ti.com/lit/gpn/ucc27714
(3) http://www.onsemi.com/pub/Collateral/FAN7081_GF085-D.PDF
(4) http://tahmidmc.blogspot.com/2013/02/n-channel-mosfet-high-side-drive-when.html?m=1
(5) https://www.infineon.com/cms/en/product/power/gate-driver-ics/high-side-drivers/
(6) https://cache.freescale.com/files/32bit/doc/brochure/BB3PHCRMSRART.pdf
(7) ti.com/lit/an/sprabq2/sprabq2.pdf
(8) https://www.electrical4u.com/field-oriented-control/
(9) http://vedder.se/2015/01/vesc-open-source-esc/
(10) https://www.switchcraft.org/learning/2017/3/15/space-vector-pwm-intro