Design of Vehicle Control Research and Development
Design of Vehicle Control Research and Development
Ying Zhao , Jinsen Hou, Chong Wang, Linlin Chen and Qun Sun
Abstract
A design of a pure electric vehicle controller research and development platform is presented in this article. Based on a
Freescale MC9S12XDP512 microcontroller with several I/O ports, the hardware of the controller together with a con-
troller area network communication interface to coordinate functionalities of each vehicle module is designed. The con-
trol strategy is modeled and verified by MATLAB/Simulink and AVL.Cruise softwares. The calibration of parameters is
verified by a 55 kW dynamometer machine with different test scenarios. Besides, comprehensive experiments are per-
formed and the results are obtained using the platform.
Keywords
Pure electric vehicle, vehicle controller unit, control strategy, controller area network communication, dynamometer
machine
Creative Commons CC BY: This article is distributed under the terms of the Creative Commons Attribution 4.0 License
(http://www.creativecommons.org/licenses/by/4.0/) which permits any use, reproduction and distribution of the work without
further permission provided the original work is attributed as specified on the SAGE and Open Access pages (https://us.sagepub.com/en-us/nam/
open-access-at-sage).
2 Advances in Mechanical Engineering
the movement of vehicles. Qin et al.7 proposed a new vehicle controller technologies can benefit a wide vari-
approach for vibration mitigation based on a dynamic ety of electric vehicle models and products in the
vibration absorbing structure for electric vehicles. Tang domestic market.
et al.8,9 proposed motor torque control methods to sup-
press the vibration of a dual-motor hybrid powertrain
during start-stop operation. For the energy manage- Overall design scheme
ment, the energy control strategies such as equivalent
The vehicle controller receives the operation informa-
consumption minimization strategy (ECMS),
tion from the driver, such as the accelerator pedal, the
Pontryagin’s minimum principle (PMP), and model
brake pedal, and the shift lever signals, and then the
predictive control (MPC) strategy are widely used in
driver’s intention and the corresponding operation are
the hybrid electric vehicles (HEVs),10–13 while the pure
determined based on the information. When the vehicle
electric vehicles are used less. However, the higher
is running, the vehicle output torque and the vehicle
energy efficiency of pure electric vehicle can be
status are sent to the motor control unit. When the
achieved by regenerative braking energy recovery.14 At
vehicle is started and stopped, the high and low voltage
the mean time of completion of energy and power con-
trol, it also monitors the actions of the lower level com- power, which is supplied by the external related equip-
ponents of the controller and provides the key ment, is controlled to turn on and off in sequence. The
functions of normal driving for the battery energy and start and running state of the motor controller and
braking energy feedback, network management, fault power management system are controlled to meet the
diagnosis and processing, and vehicle status monitor- vehicle control needs. To coordinate the working status
ing.15,16 For example, Van Mierlo and Maggetto15 pro- of each module, the vehicle controller is communicated
posed a recognition model to estimate the distance with other control units by the CAN (controller area
directly by training a deep neural network. In Guo network).
et al.,16 a novel control system of electric vehicles is The vehicle control system is shown in Figure 1,
proposed, which has been validated by the simulation which consists of vehicle controller, motor and motor
and experimental tests. controller, power battery, power battery management
The current research on vehicle controller is mainly system (BMS), fault diagnosis management unit, gear-
focused on regenerative braking control, traction force box, main reducer, auxiliary system, and other compo-
control, and so on. Although overseas vehicle control- nents. The auxiliary system includes steering motor and
lers are often produced by large automobile enterprises its controller, air conditioning motor and its controller,
with advanced technologies, they are mainly used for braking system, DC/DC, and so on. The battery is the
complex four-wheel drive and wheel motor drive pure power source of the whole vehicle and provides power
electric vehicles. For example, the vehicle controller of for all the equipment. The driver achieves the overall
Toyota mainly receives the driver’s operation signal control of the vehicle through the vehicle control
and the motion sensor signal. Then, it calculates these system.
signals by the control strategy and drives the left rear The CAN network topology is widely used in vehicle
wheel and the right rear wheel, respectively, through controls and can be shown in Figure 2, where the sys-
the left and right sets of motor controllers and inver- tem consists of two communication channels. Channel
ters.17 The vehicle controller of Nissan LEAF receives 1 is a high-speed CAN bus and channel 2 is a low-speed
electronic signals from the speed sensor and accelera- CAN bus. For power system components with high
tion pedal position sensor of the combination instru- real-time requirements, such as motor controller, BMS,
ment and controls the motor, generator, power cell, fault diagnosis system, and on-board charger, high-
solar cell, and regenerative braking system through the speed CAN bus connection is adopted, and the commu-
sub-controller.17 For single motor-driven pure electric nication rate can be up to 500 kbps. Low-speed CAN
vehicles, the functions are usually achieved by the bus is employed for the acquisition and feedback of
motor controller instead of vehicle controller. The cur- control signals with low real-time requirements in the
rent domestic studies on vehicle controllers are mostly vehicle, such as air conditioning, combination instru-
still in the experimental stage and achieve the hardware ment, cooling system, and vacuum booster pump brake
structure foundation preliminarily for vehicle controller system, and the communication rate can reach up to
development.18,19 In the domestic market, a few univer- 100 kbps. The fault diagnosis management unit is built
sities, such as Tsinghua University, Tianjin University, on the high-speed CAN bus, which is responsible for
and Beijing Institute of Technology, and other individ- the storage of vehicle fault information, the control of
ual enterprises have accomplished small quantities of fault signal lamp, and the information interaction with
production and managed sale of pure electric vehicle non-vehicle diagnostic instrument. As a high-voltage
controller products. Establishing a research and devel- safety management subsystem, the unit is responsible
opment platform to investigate more cost-effective for the state monitoring of high-voltage circuit (contact
Zhao et al. 3
resistance, insulation, pre-charging process, and main 1. Accelerator pedal signal. Based on the different
contactor), as well as the driving management of pre- degrees of the accelerator pedal, the vehicle con-
charging relay and main contactor. troller is used to calculate the whole speed or
This study is focused on the centralized motor drive torque requirements.
mode, which means the vehicle driving force is solely 2. Brake pedal signal. Based on the brake pedal sig-
provided by one motor. The motor driving force is nal, the power on and power off of the motor
transmitted to the wheels through the gearbox, main are controlled by the vehicle.
reducer, and differential unit to drive the vehicle. By 3. Gear signal. Based on the gear signal, the neu-
analyzing the gears, pedals, and other signals, the tral, forward, and reverse motions of the motor
motor speed or motor torque is controlled by the vehi- are controlled by the vehicle to achieve the vehi-
cle controller to enable driving of the vehicle. The cle forward and reverse driving.
basic signals required for the vehicle controller are as 4. Wheel rotational speed signal. Vehicle controller
follows: needs to collect the wheel speed signal to
4 Advances in Mechanical Engineering
Table 1. Number of ports of the vehicle controller. the battery electricity into 5 V DC power needed by the
ICs, there are two issues to be solved. The first is that
Module Number of channels the large voltage reduction from 24 to 5 V is difficult to
Digital input 12 convert using regular conventional power conversion
Digital input with frequency 4 ICs. The second is that the 500 kHz CAN signal is very
capturing sensitive to disturbances. In addition, it requires a pure
Digital output 12 power supply to avoid fluctuations, which means an
PWM output 8
Analog input 8
independent power supply should be provided for the
CAN bus communication 3 CAN module.
RS485 communication 1 Therefore, the controller is designed with two-level
24 V to 5 V power supplies 2 power supply modules. The higher level is shown in
PWM: pulse width modulation; CAN: controller area network.
Figure 3, which converts 24 V DC from the battery into
9 V DC by a switching power converter. To absorb
surge from the battery power and filter out fluctuations
and alternate components from the external circuit,
determine the driving state of the vehicle and to large capacitors and inductors are added in the front
perform closed-loop control of the wheel speed. end. TVS diode D01 is used to absorb surge power and
5. Speed signal. The speed signal is collected to avoid the damage of component surge pulse. PSU-24-9
help determine the vehicle driving state and for is the voltage conversion module. The capacitance and
display. inductance in the figure are mainly used for filtering.
Meanwhile, the IN4007 diode provides reverse connec-
Table 1 shows the number of ports required for this tion protection.
project, including digital input, output, analog input, The lower level power supply module is shown in
PWM (pulse width modulation) output ports, and three Figure 4, which is converted from 9 V DC into two sep-
CAN bus communication channels. The central pro- arate 5 V DC power sources. One way based on
cessing unit is based on Freescale MC9S12XDP512 LM2940 switching power IC is to obtain 5 V 2 W
microcontroller,20 which can satisfy the requirements of power, as shown in Figure 4(a), for the microcontroller
the vehicle controller development and commissioning and most of the other ICs. Another circuit in Figure
tasks greatly. 4(b) based on ASM1117 chip is to obtain stabilized 5 V
power for the CAN circuit only.
The microcontroller is based on a Freescale
Hardware design MC9S12XDP512 single chip computer and the mini-
The detailed pin definition of the vehicle controller is mum system is designed as recommended in the man-
presented in Table 2. Each CAN module consists of a ual.21 The CAN communication circuit is one of the
high channel and a low channel, which are respectively most important parts of the controller. Each of the
transmitted by two individual pins. Extra pins men- three CAN channels is based on one TJA105022 chip
tioned in Table 1 but not in Table 2 are reserved for using the circuit, as shown in Figure 5. TJA1050 is a
later usage. high-speed CAN transceiver.
The power, which is supplied to the vehicle control- As shown in Figure 6, the digital input circuit is pro-
ler, is provided by the 24 V vehicle battery. To convert tected by a TLP521 optical coupler. Most of the digital
Figure 4. Lower level power supply module: (a) Power supply for the control board and (b) Power supply for the CAN bus interface.
inputs are negative controls, which means when an As shown in Figure 7, the digital output circuit also
external switch is grounded, the 24 V DC current will uses TLP521 optical coupler to protect the microcon-
go through the left side of TLP521, leading to the right troller pins. The working principle is similar to that in
side also connected to the ground. Therefore, VCC Figure 6.
originally, applied on the microcontroller digital pin, Figure 8 shows an example of an analog input cir-
will be discharged by giving a logic change from high cuit. To remove fluctuations in the external signal, the
to low. TLP521 is a current-driven photocoupler, and input analog signal goes through a filter. Then it applies
the resistance in the figure is current-limiting. on the analog input pin of the microcontroller. To
6 Advances in Mechanical Engineering
remove high and low frequency noises, two capacitors Based on the electric vehicle dynamic performance
are set as 0.1 and 0.001 mF, respectively. The resistance index, the three-phase asynchronous motor with the
and capacitance in the figure make up the filter circuit. model HPQ7.5 ybe-72 is finally selected, with consider-
ation of the motor efficiency and reliability. The motor
rated power and peak power are 15 and 7.5 kW, respec-
Control strategies tively; the rated torque and peak torque are 26.5 and
The vehicle control strategies have been modeled in the 115 N m, respectively; and the rated speed and maxi-
MATLAB/Simulink and AVL.Cruise22–26 and sum- mum speed are 2700 and 5500 r/min, respectively, which
marized into torque control mode, as follows. meets the demand of power index design.
Zhao et al. 7
Figure 16. Vehicle speed membership function. Figure 17. Membership function of accelerating pedal opening
change rate.
ZS ZS ZS ZS ZS ZS
S M S S ZS ZS
M B M M S ZS
B ZB B B M S
HB ZB ZB ZB B M
the basis for the driving control application when the voltage is lower than 1.75 V, the regis-
based on the value of these analog signals. The ter returns a value of 0 (low level). Filtering is
analog acquisition is realized by the AD func- not needed for the digital ports. The vehicle
tion of the microcontroller. The AD module of controller reads digital signals from the charge
the microcontroller converts the input analog confirmation switch, braking switch, and
signal into digital quantity. The actual voltage other detection levels to control the vehicle.
value of the analog input can be obtained by The digital outputs are in a similar manner
reading the corresponding register. related to many relays to perform functional
2. Digital acquisition and output. The value of the controls.
digital acquisition is 0 and 1. When the supply 3. CAN bus driver. The CAN bus underlying driver
voltage is 5 V, the microcontroller contains hys- includes bus module initialization, the sending
teresis ranging between 1.75 and 3.25 V. When message program, and the receiving message
the voltage is higher than 3.25 V, the value program. The CAN module 1 and module 2
returned by the register is 1 (high level), and both use baud rate of 500 kHz.
Zhao et al. 13
Figure 26. The quality of the output CAN signal: (a) without using independent power supply and (b) using independent power
supply.
15. Van Mierlo J and Maggetto G. Innovative iteration algo- 24. Song L, Yang J, Liu H, et al. A simulation model of pure
rithm for a vehicle simulation program. IEEE T Veh electric vehicle based on ADVISOR. Heavy Veh 2016; 4:
Technol 2004; 53: 401–412. 15–16.
16. Guo J, Luo Y, Li K, et al. Coordinated path-following 25. Wu Q, Liu Z and Zong Z. Power performance simulation
and direct yaw-moment control of autonomous electric of pure electric vehicles based on ADVISOR. Light Veh
vehicles with sideslip angle estimation. Mech Syst Signal Technol 2010; 10: 13–16.
Pr 2018; 105: 183–199. 26. Deng Y, Wu H, Chen Y, et al. Research on reliability
17. Xiang Z. Progress of complete vehicle controllers for pure control for pure electric vehicles electronic accelerator
electric vehicles. Automot Electr 2011; 2: 1–5. pedal. J Hunan Univ 2016; 43: 16–24.
18. Ge Q. Research on VCU for pure electric vehicle. Master’s 27. Liu H, Guo W, Chu L, et al. Transient optimization of
Thesis, Hefei University of Technology, Hefei, 2012. drive control strategy for pure electric passenger car. In:
19. Yang Q. Research on controller for pure electric vehicle. International conference on electronic & mechanical engi-
Master’s Thesis, Beijing Jiaotong University, Beijing, neering and information technology, Harbin, China, 12–14
China, 2012. August 2011, pp.1025–1028. New York: IEEE.
20. MC9S12XDP512 data sheet, V2.17, July 2007, 28. Zhang Y and Liu H. Fuzzy logic torque control strategy
freescale.com for parallel hybrid electric vehicles. In: Eighth interna-
21. Philips Semiconductors. TJA1050 data sheet, September tional conference on fuzzy systems & knowledge discovery,
1999. Shanghai, China, 26–28 July 2011, pp.640–644. New
22. Jiang X. Modeling and simulation of regenerative brak- York: IEEE.
ing control for electric vehicle based on ADVISOR. Light 29. Schiele P and Durach S. New approaches in the software
Veh Technol 2007; 11: 23–26. development for automotive systems. Int J Veh Design
23. Bai D, Guo X and Ding L. Electric vehicle simulation 2002; 28: 241–257.
and parameter calculation based on ADVISOR. Sci
Technol Innov Appl 2016; 11: 44.