Challenge

Final Project: Design of an Electric Vehicle

Final Project: Design of an Electric Vehicle

Create a MATLAB model of electric car which uses a battery and a DC motor. Choose suitable blocks from Powertrain block set. Prepare a report about your model including following:

Objectives:

1. System level configurations

2. Model parameters

3. Results

4. Conclusion

AIM:

To create a MATLAB model of electric car which uses a battery and a DC motor by choose suitable blocks from Powertrain block set, and to prepare a detailed report of the model.

Introduction to Electric cars:

An electric car is a one powered by an electric motor rather than a traditional petrol/diesel engine. This electric motor is powered by rechargeable batteries that can be charged by common household electricity.

How does an electric car works ?

There are two types of EV technology: hybrid and pure electric.
Fully Electric Car
The main parts in an electric car are a rechargeable battery, controller and electric motor. First, the battery is powered. Then the controller converts the current from DC/AC or DC/DC as requiered by the motor so that it can be used by the motor. The motor converts electrical energy to mechanical energy.
Hybrid Car
The same technology exists in hybrid cars, alongside a small gasoline engine running a generator. This powers the car at cruising speed, and batteries provide extra power when accelerating. Batteries can recharge themselves when the car is decelerating or standing still. Hybrid technology means that your petrol goes much further, saving you money and reducing environmental impact.

Advantages of a BEV (Battery Electric vehicle):

  • Creates very little noise
  • Doesn't burn fossil fuels, instead uses rechargeable batteries
  • They produce no tailpipe emissions, so are better for the planet.
  • No exhaust, spark plugs, clutch or gears
  • Do not need much maintenance as they have fewer moving parts.
  • They often have a smoother drive than petrol cars.

Downsides of electric cars:

  • They can have a comparatively limited range. This depends on the model, the weather and the style of driving.
  • Depending on the car and the charger, they can take a long time to charge.
  • Batteries may need replacing after 5-10 years in order to retain efficiency. After a few thousand few charges, the battery will lose its ability to hold charge as effectively.
  • Not all parts of the country will have a charging point nearby (might be in future available)

Key Components of a Pure electric car:

Battery (all-electric auxiliary):
In an electric drive vehicle, the auxiliary battery provides electricity to power vehicle accessories.
Charge port:
The charge port allows the vehicle to connect to an external power supply in order to charge the traction battery pack.
DC/DC converter:
This device converts higher-voltage DC power from the traction battery pack to the lower-voltage DC power needed to run vehicle accessories and recharge the auxiliary battery.
Electric traction motor:
Using power from the traction battery pack, this motor drives the vehicle's wheels. Some vehicles use motor generators that perform both the drive and regeneration functions.
Onboard charger:
Takes the incoming AC electricity supplied via the charge port and converts it to DC power for charging the traction battery. It also communicates with the charging equipment and monitors battery characteristics such as voltage, current, temperature, and state of charge while charging the pack (Battery Management System).
Power electronics controller:
This unit manages the flow of electrical energy delivered by the traction battery, controlling the speed of the electric traction motor and the torque it produces.
Thermal system (cooling):
This system maintains a proper operating temperature range of the engine, electric motor, power electronics, and other components.
Traction battery pack:
Stores electricity for use by the electric traction motor.
Transmission (electric):
The transmission transfers mechanical power from the electric traction motor to drive the wheels.
SYSTEM LEVEL CONFIGURATION OF ELECTRIC CAR:
& PARAMETERS CONFIGURATION :
Here is the Simulink model of an Electric Car using blocks from powertrain blockset and some simulink blocks
Now We'll look in to each block in different sections of the model,
1) Longitudinal Driver with Drive Cycle Source,
2)Controlled PWM voltage Source, Motor Driver and a Motor
3) Transmission System &
4) Battery management system
1) Longitudinal Driver with Drive Cycle Source:

Drive cycle input:

Adrive cycle gives constant velocity computation. It is defined as the variation in speed with respect to time. It is mainly developed for the practical test of emissions. It is more realistic case of better modeling of energy and range of battery. Drive cycle source provide a user specified longitudinal drive cycle. NYCC is selected here as the drive cycle which is one of the standard drive cycles. The simulation stop time is set to 598 second s which is same as drive cycle time.

Longitudinal Driver:

A longitudinal driver is a simulated driving environment where whatever the velocity input is, they will be followed by the vehicle. It act in such a way that the difference between the 2 inputs (actual speed from the car and the reference speed from input drive cycle source) is minimized.

It is clear from the block above that there will be a reference velocity, feedback velocity, a grade option which is grounded or provided zero value ( as here) to terminate it. The other end consists of an acceleration command to drive the car, a deceleration command to give braking command when needed and a info part which is also not required thus terminated using a terminator block.

These are the parameter values for the given block:

Here Proportional Integral controllers are selected as the controller for minimizing the error. PI controllers are efficient and good in performance.

2) Motor& it's Controller:

It controls the motor action and is connected in between the vehicle body and longitudinal block and is also connected with the battery. It controls the speed of motor and control the charging and discharging of motor according to the motoring and braking option.

Controlled voltage source:

Controlled PWM voltage:

It represents Pulse Width Modulated voltage source. The block has 2 modeling variants for the simulation like PWM and averaged. To reduce simulation run time here it is selected as averaged.The block calculates the duty cycle based on the reference voltage across its positive reference and negetive reference ports. This modeling is default.

H- Bridge:

The H-Bridge block represents an H-bridge motor driver.

t is usually connected along with the PWM voltage controller block. It is mainly used to drive a particular load. Here the load is dc motor drive. Here also the simulation mode is set as averaged as same as the pwm voltage controller block. This applies the average the average of the demanded PWM voltage to the motor. Braking mode is involved when the voltage presented in the BRK port larger than the braking threshold voltage. PWM and ref ports are connected to respective ports of controlled pwm voltage block. REV is connected to REF port and grounded together. The positive and negetive terminal connected to the dc motor along with a current sensor.

Current sensor:

Is Used to sense the current across the connected terminals. It converts the current measured in any electrical branch into a physical signal propotional to the current.

DC Motor :

DC Motor block represents the electrical and torque characteristics of the motor. The positive and negetive terminals are connected to the Hbridge and the ground. C and R are the mechanical ports which are connected to the respective mechanical gear. There is a connection port across it to connect it further with the mechanical system. Connection port 4 is given to the shaft.

Mechanical rotational reference: Mechanical part of dc motor with C terminal is connected to mechanical rotational reference.

Solver configuration:

Here each physical network represented by a connected simscape block is connected to the solver configuration for the simulation to run properly. It specifies the solver parameters that the model needs before starting the simulation.

Electrical reference:

Each electrical block is connected to an electrical reference or a negetive ports are grounded together.

3) Transmission system:
It is basically the vehicle body subsystem which consists of a simple gear, vehicle tire, vehicle body.
Wheels are connected to the vehicle body of electric car.

Simple gear:

It represents a gear box that constaints the connected driveline axes of base gear and follower gear to co-rotate with a fixed ratio that we provide. We can choose the follower axis rotation which is either in same direction or in opposite direction. Here we are seleting rotation in same direction.

Tire :

It models a tire with longitudinal behaviour. The block can model tire dynamics in constant and variable pavement conditions. It models the tire as a rigid wheel tire combination in contact with the road and subject to slip.

Vehicle body:

It represents 2 axle vehicle body in longitudinal motion. It can have same or different number of wheels or tires on each axle. Here there is 2 wheels on each axle. The block accounts for body mass, aerodynamic drag, road inclination, road profile etc.Vehicle body is used as a control mechanism.

PS Constant bock:

This block generates physical signal of a constant value. Here there is 2 PS constant blocks used connected across W and Beta ports of veicle body.

4) Battery subsystem:

It consists of battery, controlled current source, rate transition block, gain block, discrete time integrator, add block, constant block, connection port.

Here we need a battery model SOC or state of charge with respect to the voltage and charging and discharging current. With this battery model we can update the depth of discharge of battery to know its draining.

Battery block is configured with parameters as follow,
Rate transition block: This block transfers the data from the output of a block operating at one rate to the input of a block operating at a different rate. In the above model it transfers data from the battery current to calculate the SOC of the battery.
The Gain block multiplies the input by a constant value. Here the value is given as 1/ (nominal value*3600).

Discrete time integrator:

It is used in place of a integrator block to create a purely discrete model. We can define initial conditions, input gain value, upper and lower limits on the integral.

Controlled Current Source
Distance travelled is measured in the scope in which the vehicle speed is obtained from the transmission subsystem and it is given to the integrator block which is again divide with 3600 to measure the distance in km.
RESULTS: After simulationg the above model with NYCC drive cycle, the following reults are obtained.
1.Vehcile ref. velocity & Actaul velocity of the vehicle:
From the plot below, vehicle always trying to follow the input reference velocity(Blue) provided through drive cycle source, but due to vehicle body weight, motor capacity, and other technical and environmemntal parameters we choosen, actual running speed of the vehicle is always lagging with input reference velocity.
2) Motor current:
3) Battery tate of charge SOC :
During the period of the drive cycle (598Sec), the vehicle battery is discharged from 100% to ~78%
From the SOC plot, we observe some times battery charge rising. this is because of regenerating braking by the motor controller.
2. Distance travelled by car: 0.56 km

Conclusion:

We have developed an electric vehicle model using simulink, powertrain blockset, and its performances with respect to the drive cycle velocity, battery SOC, and distance travelled are observed.
In this project inputs are drive cycle source as vehicle body and the out put as the battery voltage and the SOC. This is the simplest model of an EV and here we didn't considered gearshifting function with speed.
By simulationg the above model, we can also observe the amount of power required to travel a specific distance wihtout exceeding the minimum SOC of the battery.
Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.