Professional Documents
Culture Documents
MTP Synopsis Report
MTP Synopsis Report
Of
Dual Degree
in Electrical Engineering
with Specialization in Instrumentation and Signal Processing
by
Navneet Soni
(15EE35018)
1
1. Introduction
Increasing environmental and safety concerns, along with rising gasoline prices, are driving a
worldwide shift in the automotive industry towards the development of green intelligent
transportation systems. Today, E-rickshaws are seen as the leading contender to displace existing
fleets of gasoline-powered auto’s, but there are some issues with the present existing e-rickshaw
like the efficiency of the motor, battery, and inverters; safety of the vehicle and prediction of
remaining drive range.
At present, the existing e-rickshaws available in Indian market have no regenerative braking
feature, so the whole braking energy is lost. Further, there is also no supervisory monitoring unit
that continuously monitors all the units of the vehicle for the vehicle to run in a safe and efficient
manner, and there is no reliable remaining drive range estimation feature
The aim of this project is to design an Integrated Vehicle Control Unit (VCU) and Motor Control
Unit (MCU) for e-rickshaw that can monitor all the unit of the vehicle like Motor, Power
Inverter, Battery Management System(BMS), Battery Charger and High-Voltage protection
control. So, the overall efficiency of the motor, controller, and battery pack can improve. The
safety of the vehicle also improves through high-voltage control units. The safety of the
high-voltage units is one of the most critical aspects of the electric vehicle due to events like a
short circuit, vehicle crushing, or some other unpredicted event, which may cause fire or some
unpredicted fault. So under such circumstances, VCU will isolate the battery from other
electrical units to decrease the impact of these events. VCU is also used to estimate the vehicle's
remaining drive range based on the past drive cycle and presently stored electric energy in the
battery using present SOC and SOH of the battery pack.
The Motor Control Unit (MCU) works as an intermediate model between the Vehicle Control
Unit (VCU) and the inverter. Basically, its work is to control the motor based on the torque
command from the VCU and present motor parameters like rotor position and motor current
feedback. It will generate sine PWM for three-phase inverter MOSFETs. In the MCU, we used
Field Oriented Control (FOC) method to generate the control signal for the power inverter to run
the three-phase BLDC motor.
For this work, an Integrated VCU and MCU logic model is designed, and it is integrated with the
electric vehicle plant model that consists of the e-rickshaw mechanical model, BLDC motor,
Power inverter, Power relays, and cooling actuator.
2
2. Vehicle Control Unit (VCU)
An effective electric Vehicle Control Unit is the key to ensure the safe and efficient operation of
electric vehicles.
VCU receives the sensors and driver input signals, including pedal inputs, vehicle speed signals,
and other inputs, manages the system energy, commands the driver demanded torque to
powertrain, coordinates the control of vehicle components, achieves fault diagnosis and
determines the overall vehicle drivability.
The Complete VCU is divided into three parts, Torque Control with power management, Vehicle
Safety Control, and Remaining drive range estimation. The torque control part calculates the
required torque from the motor based on acceleration command from the driver, and considering
current Vehicle and battery parameters and finally sends the required torque command to the
Motor Control Unit (MCU). The safety control block monitors all the units of the vehicle like
Battery Management System (BMS), Motor Control Unit (MCU), High-Voltage Circuit Breaker,
Battery Charger Controller, and PreCheck Control block. These blocks generate control signals
based on the drive input parameters, BMS and MCU present parameters, and then send these
control signals to the vehicle plant module. The remaining drive range estimation block is used
to estimate how long the vehicle can run based on present battery parameters and reference drive
cycle.
Main Functions of VCU:
● Vehicle operating mode judgment based on Key input and vehicle status (PreCheck).
● Vehicle drive: VCU calculates the required torque based on input from the accelerator,
brake, speed, and present value of operating parameters.
● Energy recovery control: In a regenerative mode, based on brake input and SOC, VCU
estimates required negative torque and shares it between the mechanical brake and
electric brake with an estimated ratio, so maximum energy recovered and vehicle stop in
the minimum distance.
● Vehicle thermal management: of the battery pack, Traction Motor, and Motor
controller with the help of cooling source.
● Battery Charging control: To enable or disable the charging of the battery based on the
charger parameters and battery present parameters with the help of a relay that is placed
between the Charger connection and battery unit.
3
● Safety monitoring under high-voltage: Continuously monitors the health of the battery
unit from BMS, motor, and the power inverter.
● Power-on/off control under high-voltage: VCU includes control of features like high
voltage interlock system (HVIL), emergency stop button.
○ The HVIL circuit travels through each High voltage system in such a way that if
something should go wrong in the High voltage circuit the HVIL circuit will
break effectively by closing contractors and isolating the battery unit from the rest
of the vehicle.
○ A disconnect switch for the centralized HVIL is also made accessible to service
personnel and first responders to bring the high-voltage system to a safe state.
● Vehicle fault diagnosis and response with the help of the On-Board Diagnosis (OBD)
controller.
4
2.2. Torque control function:
The main need of the torque control block is to calculate the required torque from the motor and
required electric power to generate the amount of torque based on the accelerator and brake
pedal input, and parameters of the vehicle like present vehicle speed, etc.
Then after calculating the required torque from the motor, we also find the max possible torque
that can be supplied by the motor at present speed of the motor based on torque-speed
characteristic curves and max required power from the motor efficiency map. Both are calculated
based on the present battery parameters and speed of the vehicle and then compared with the
required calculated torque.
The total torque developed by the traction motor is distributed into four parts, to balance the
rolling resistance force, aerodynamic drag, grading resistance, and acceleration or deceleration
force.
M v * dV /dt = F t − (F r + F w + F g)
Where,
𝝆 = air density
Af = Vehicle frontal area
CD = aerodynamic drag coefficient
Vw = wind speed on the vehicle moving direction
Ft = traction force
Mv = Total Vehicle mass
V = Vehicle speed
g = gravitational acceleration
5
Fig. 2: Torque Management Simulink Block Diagram
The torque control block is divided into two parts. One is the calculation of required torque
based on the given accelerator and brake pedal input and present speed of motor and vehicle. The
second part is a power management block that generates a command for the Motor Control Unit
based on calculated required torque, required power for motor to generate calculated torque, the
efficiency of the motor at present speed of the motor and calculated torque, present battery
parameters and present speed of the motor.
6
Here we have designed five safety control block, these are
The safety control block used to monitor all the subunits of the electric vehicle like Battery
Management System (BMS), Motor Control Unit (MCU), High-Voltage Circuit Breaker Control,
Battery Charger Control, and PreCheck Control block. These blocks generate the control signal
based on the drive input parameters, BMS, and MCU present parameters. Then apply these
control signals on the dynamic model of the electric vehicle.
The safety control block continuously samples the battery operating parameters, motor operating
parameters, battery charger parameters, driver control input parameters like start key, manual
high voltage circuit breaker, etc. Then each separate block processes these parameters and
generates the control signal based on some conditions.
7
Fig. 3: Complete Safety Control Simulink model
The safety control blocks not always remain active all the time. Each block becomes active with
conditions like the precheck block, only functioning at the starting of the vehicle for a few
microseconds and then gets inactive for the entire drive. The BMS monitor, MCU monitor, and
HVIL control block are activated once the Key_in input is active and executed in the cycle with
a fixed time period. The battery charging control block becomes active when the external battery
charger gets connected, and the charger terminal voltage is higher than the set threshold.
8
2.4. Drive Range Estimation:
The E-Rickshaw is a type of vehicle that runs purely on battery power. The battery pack for
Battery Electric Vehicle (BEV) has lower energy density than fossil fuel, resulting in a shorter
drive range in a single charge than the conventional vehicle of the same weight. Moreover, BEVs
have lengthy battery charging time and limited charging infrastructure. Due to the limited driving
range of BEVs, we need to have a more accurate remaining drive range for the vehicle. So the
driver will know the approx remaining drive range, that without recharging the battery, how
much distance an electric vehicle can run, and the driver plans their future ride or recharge the
battery.
Here the method for estimation of remaining drive range we use the two different predefined
drive cycles named optimistic and pessimistic drive cycle.
The Optimistic drive cycle design considering less speed variation, no grading, and standard road
conditions. The Pessimistic drive cycle design considering high-speed variation, finite grading,
and worst road condition.
Here we have considered the effect of motor efficiency, inverter efficiency, and battery
efficiency during the calculation of required energy for the drive cycle. So, finally, we get the
two estimated drive ranges, from the optimistic estimation we get higher than the pessimistic
estimation, the difference between them will not be too large. So we will get a span of drive
range based on that user may plan the journey.
9
stator reference voltages which are the outcome of the current PI controllers.
Functions of MCU,
● Calculate Motor speed and rotor position using Hall sensor inputs.
● Generate Control signal for Inverter MOSFETs based on the Motor torque command,
rotor position, and motor phase current using Field Oriented Control (FOC) method.
● It also monitors Inverter working and generates fault signals.
Fig. 4: Schematic diagram of Field Oriented Control with inverter and motor interface
The electromagnetic(EM) torque is one of the very important output components that calculates
the motor’s mechanical dynamics , like rotor position and speed of the motor.
Generally, the rate of change of stored magnetic energy is not compulsorily to be zero. Based on
the above outcomes, the formula derivation of the electromagnetic(EM) torque is given as
follows. The dynamic formulas of the BLDC can be written as
V = [R] * i + [L] * p * i + [G] * W r * i
By pre multiplying above equation by the transpose of the current vector, the instantaneous
input power is
where
[R] : matrix contains of resistive components of the stator winding
[L] : matrix contains of the multiplying coefficients of the derivative operator p
[G] : matrix has components that are the multiplying coefficients of the electrical rotor speed,
10
Wr
The given term it * [R] * i represent the stator & the rotor resistive losses. The another term
it * [L] * p * i represent the rate of change of magnetic energy stored. Therefore, what remains
left of the power component should be equal to the air gap power that is given by the term
it * [G] * W r * i . From the basics, we come to know that the motor air gap power is to be
associated with the rotor speed. The air gap power of the motor is the multiplication of the
mechanical rotor speed & air gap or electromagnetic(EM) torque. Now, the air gap torque, Te, is
obtained from the terms involving the rotor speed, ωm, in mechanical rad/s, as given by,
where P is given as the number of motor poles. Canceling speed on both the sides of the above
equation leads to an electromagnetic(EM) torque that is written as
T e = (p/2) * it * [G] * i
The above factor 3/2 is introduced on the right-hand side of the above equation between the
3-phase and 2-phase BLDC power equivalence condition.
Here the q component of the motor current represents torque and d component represents the
magnetic flux of the motor. Let us assume that the stator flux current element is zero by keeping
the torque angle, zero, i.e., r ids = 0, we get the electromagnetic(EM) torque as
The control system of the drive id is used to calculate the respective current element references
from the flux & torque references given via the drive's speed control.
I q Ref = (2/3) * (2/p) * [1/ λaf ]
11
Fig. 5: The MCU Simulink model
To keep the measured stator current elements at their reference values, the proportional-integral
(PI) controllers are used,
Vq : Iq_Ref - Iq
Vd : Id_Ref - Id , (given, Id_Ref =0, assuming motor speed always remain below the base
speed)
The pulse-width modulation (PWM) of the variable-frequency drive(VFD) explains the Inverter
MOSFETs switching signal according to the stator reference voltages that are the outcome of the
PI current controllers.
12
provides a communication platform for all the control units through the CAN bus. The MCU
used to generate the required drive pulses signal for the inverter MOSFETs.
The VCU gets the BMS parameters through the CAN communication bus, which is established
between the VCU and BMS microcontroller.
The VCU gets the BMS parameters through the CAN communication bus, which is established
between the VCU and BMS microcontroller.
The complete Integrated VCU and MCU code will be flashed into a 16-bit, Ti F28379D
LaunchPad which also has the UART and CAN interface that we needed. To power this
microcontroller we need a 3-3.3V power supply for that we used Linear regulator
TPS70933DRVR which takes input voltage 5 - 30V.
13
The VCU and BMS communicated through CAN Bus, CAN connection established using
Simulink Vehicle Communication toolbox with .dbc file that was created using kvaser dbc
editor.
A BMS monitors the state of the battery as represented by various parameters, such as:
● Voltage: the complete battery pack voltage, individual cell voltage, maximum &
minimum cell voltage.
● Temperature: the median temperature, coolant input temperature, output coolant
temperature, or individual cells temperatures.
● State of Charge (SOC) or the term depth of discharge (DOD) used to indicate the level of
charge of the battery unit.
● State of health (SOH), a usually-defined parameter of the left capacity of the battery as
percentage(%) of the original capacity that decreases with the life of the battery.
● Max allowed charging current
● State of Safety (SOS)
● Current: current in or out of the batter
14
● Charging current limit calculation
● Battery SOC estimation
● Battery fault detection
● Battery Power loss estimation
The result of all the control units of Integrated VCU and MCU with a dynamic model of electric
vehicle needs to be analyzed with a reference or expected signal. Here we used two different
modes one is using the reference drive cycle as the reference vehicle speed and another is manual
drive control using the direct accelerator and brake pedal input.
The required torque commanded by the motor is limited by the present battery discharging,
charging current capacity, motor operating efficiency, required power to provide the calculated
torque, and other battery operating conditions.
15
Fig. 8: Calculated required torque based on input control and the present vehicle parameters plot for the given drive
cycle
The difference between the Calculated required torque and actual Motor torque, seen to be
significant because of the amount of power required to generate calculated required torque from
the motor also depends upon the present battery operating parameters that controlled by the
VCU’s power management block is not able to supply due to some battery limitations.
Fig. 9: The three-phase reference voltage for the PWM generator Simulink model
16
6.3. Battery discharging and charging
At the running mode of the vehicle, the battery charges through regenerative braking. In the
regenerative mode, based on brake input and SOC; VCU estimate required negative torque and
shares it between the mechanical brake and Electric brake with an estimated ratio, so maximum
energy recovered and vehicle stop in the minimum distance.
Fig. 10: Battery SOC, Battery current and Battery output or input power plot for the used drive cycle
Here we can see that during regenerative braking the part of breaking energy comes back to the
battery and the battery SOC decreases during positive battery output current and increases during
negative battery output current, but the increase in SOC is not clearly shown in the plot because
it’s too small.
17
Fig. 11: Estimated remaining drive range with battery SOC and vehicle speed plot
Here the test was done using two different methods, using reference speed drive cycle and taking
control input (KeyIn, accelerator, brake, reverse, etc ) directly from the user.
18
Fig. 12: Reference and actual vehicle speed and Torque Command to the motor and actual torque generated by the
motor for the given reference drive
Here in reference speed drive mode, speed plot the green plot represents the vehicle reference
speed and orange plot represents the actual vehicle speed, and in the torque plot the violet plot
represents the Motor torque command calculated by VCU and the blue plot represents the Actual
torque supplied by the motor. From the above plot we can say that the actual vehicle speed is
able to track the reference vehicle speed with the error that is small with respect to the reference
or actual vehicle speed. Similarly for the manual drive mode the required reference torque
command calculated based on the accelerator, brake, reverse drive, and the present vehicle speed
and the maximum required reference torque limited by a peak threshold (here it is 6 Nm).
19
Fig. 13: Reference torque control, power inverter line voltage and pulse power inverter control pulse signal plot for
the given reference drive cycle
Here the reference torque command is limited by the timer that limits the torque command if the
signal remains above the threshold for a long time or if the motor or battery temperature increase
above the threshold, it also limits the rate of change of motor torque command.
Here the battery load current not the same as we expected or that we get in Matlab Simulink SiL
testing, because the .dll file that we generated for Qtronic Silver are generated in Matlab 2018a
and the Integrated VCU and MCU model running in Matlab 2019a and motor model that we
used in SiL testing (in Matlab 2019a) is not available for the same BLDC motor model, so we
used different BLDC motor model.
Here we used two different Matlab models because the .dll file for the Qtronic Silver is can only
be generated in the 2018a Matlab version and for the Co-Simulation the Raptor Matlab toolbox
not able to run in 2018a Matlab version so, we used Matlab 2019a version.
20
Fig. 14: Reference vehicle speed and actual vehicle speed, Battery load current and battery SOC plot for the given
Reference drive cycle
Here the initial SOC is taken as 80% and is also the Maximum SOC for healthy Li-ion Battery
and the minimum SOC is 20%.
Fig.15: The vehicle speed, Battery Load current and Estimated drive Range plot for the given reference drive cycle
21
7. Conclusion
The implementation and performance of a complete Integrated VCU and MCU logic, integrated
with a dynamic model of the e-rickshaw has been demonstrated. The whole control block
including torque control, power management, vehicle safety control, and the drive range
estimation blocks have been tested for the given drive cycle, and manual control drive. All the
VCU and MCU units are tested and analyzed in Model in Loop (MiL) testing (In Matlab
Simulink), Qtronic Silver Software (MiL, generally used by automotive engineers to integrate
and test control software virtually) testing and Software in Loop (Qtronic Silver and Raptor
Simulink Co-Simulation) testing. Almost all the results obtained are reliable and meet the
expectation of the vehicle.
Further, it is targeted to first test Hardware in Loop (HiL) with Bosch GCM-1793-196-1505
ECU to test all the functionality of the control logic and to know about the required memory and
other specifications that have to in the microcontroller for the final design.
Subsequently C-code will be generated from the simulated Integrated VCU and MCU logic
model, and then it will be flashed into the 16-bit Dual-core Ti F28379D LaunchPad for testing
with the actual vehicle model that consists of all the control input source, battery, BLDC motor,
Power Inverter, connectors and relays, and other required hardware devices. Then we will
analyze the whole system and try to make it simple, small, and cost-efficient, so it will be
suitable for e-rickshaw.
8. References:
[1] Thomas D. Gillespie, “Fundamentals of Vehicle Dynamics,” Society of Automotive
Engineers, jnc, 400 Commonwealth Drive, Warrendale, PA 15096-0001
[2] Mehrdad Ehsani, Yimin Gao, Sebastien E. Gay, Ali Emadi, “Modern Electric, Hybrid
Electric, and Fuel Cell Vehicles,” CRC Press LLC, 2000 N.W., ISBN 0-8493-3154-4.
[3] Chan, C. C., “An Overview of Electric Vehicle Technology,” Proceedings of the IEEE, Vol.
81(9): 1202-1212, 1993, DOI: 10.1109/5.237530.
[4] Chew KW and Yong YR, “Effectiveness Comparison of Range Estimator for Battery
Electric Vehicles,” Adv Automob Eng 2016, DOI: 10.4172/2167-7670.1000128
[5] Chien-Ming Tsengy, Wenshen Zhouz, “Data Extraction from Electric Vehicles through
OBD and Application of Carbon Footprint Evaluation,” Technical report, 2017
[6] “Generalized Electric Vehicle Control Unit,” EVTV LLC, Technical report, 2014
22
[7] Mohd K. Hassan, T. A. Tengku Mohd, Ishak bin Aris, B. S. KSM Kader Ibrahim, “A
Review of Energy Management System in Battery Electric Vehicle with Hybrid Electrical
Energy Source,” FEIIC-International Conference on Engineering Education and Research 2015
[9] Roscher, M. A., W. Leidholdt and J. Trepte, "High-efficiency energy management in BEV
applications." International Journal of Electrical Power & Energy Systems, 2012, 37(1): 126-130
[10] Eberle, Ulrich; von Helmolt, Rittmar (14 May 2010). "Sustainable transportation based on
EV concepts: a brief overview". Energy & Environmental Science. 3 (6): 689.
doi:10.1039/c001674h. ISSN 1754-5692. Retrieved 8 June 2010.
[11] Rao, G. S., Rao, G. K., Sivanagaraju, S., Murthy, G.R. K., & Sudheer, B. C. N. S. (2011).
Automated battery management system for electric/hybrid electric vehicle. International Journal
of Electric & Hybrid Vehicles, 3(2), 123-137.
[12] Lu, L., Han, X., Li, J., Hua, J., & Ouyang, M. (2013). A review on the key issues for
lithium-ion battery management in electric vehicles. Journal of Power Sources, 226(3), 272-288
[13] Chen, C., Man, K. L., Ting, T. O., & Lei, C. U. (2012), Design and realization of a smart
battery management system. Lecture Notes in Engineering & Computer Science, 2196(1),
1173-1176
[14] B. Sakhdari, N. L. Azad, “An Optimal Energy Management System for Battery Electric
Vehicles,” IFAC-PapersOnLine 48-15 (2015) 086–092
[15] Hardware Design Considerations for an Electric Bicycle Using a BLDC Motor, Texas
Instruments Application report, SLVA642A–June 2014–Revised June 2019
[16] BLDC Motor Control with Hall Sensors Based on FRDM-KE02Z, Freescale Semiconductor
Application note, Document Number:AN4776, Rev 0, 07/2013
[17] Dr. Praveen Kumar, Prof. S. Majhi, “Introduction to Hybrid and Electric Vehicles - Web
course,” NPTEL Lecture, https://nptel.ac.in/courses/108103009/#
[18] R. Krishnan, “Permanent Magnet Synchronous and Brushless DC Motor Drive,” ISBN
978-0-8247-5384-9
23