Challenge

Final Project: Design of an Electric Vehicle

Q. 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

Ans:

What is EV?

‘EV’ stands for electric vehicle. They’re not just better for the environment – they’re also great cars to own and drive.

  • With no clutch or gears EVs can accelerate smoothly and quickly so they often feel like you’re driving a sports car.
  • A fully electric car has fewer moving parts, so you’ll spend less on maintenance.
  • They’re very cheap to run because you won’t use much – or any – petrol or diesel.
  • Charge overnight at home – while you’re sleeping….

An EV that’s fully electric runs on a rechargeable battery powering an electric motor. It’s defined by what it doesn’t have – and doesn’t need:

  • No petrol, diesel or oil
  • No exhaust
  • No clutch or gears
  • No spark plugs
  • No roaring noise or vibrations

There are only around 20 moving parts in an electric engine, compared with nearly 2,000 in an ICE (internal combustion engine), so your EV will need a lot less maintenance. You won’t need a tune-up or oil change, and your fully electric car is so quiet you won’t disturb the neighbours when you come home late or drive out early.

Plug your EV into your home power supply and it fully recharges overnight – enough for an average day’s driving in most models. If you’re on the motorway or climbing a lot of hills you’ll use up your battery faster, but travelling downhill or braking recharges it.

Just like a fuel gauge, your dashboard tells how much battery life there is, and even better, you’ll see how many kilometers you can travel. When you drive a fully electric car, you’ll have smooth acceleration, quiet travelling, low running costs – and zero emissions. You can enjoy your music and appreciate the scenery without any engine noise or smell to get in the way.

Block diagram:

Drive cycle: A driving cycle is a series of data points representing the speed of a vehicle versus time. Driving cycles are produced by different countries and organizations to assess the performance of vehicles in various ways, as for instance fuel consumption, electric vehicle autonomy and polluting emissions. 

Driver controller: The controller transforms the battery's direct current into alternating current (for AC motors only) and regulates the energy flow from the battery. ... In the early electric vehicles with DC motors, a simple variable-resistor-type controller controlled the acceleration and speed of the vehicle. 

Power converter: In electric engineering, a DC to DC converter is a category of power converters and it is an electric circuit which converts a source of direct current (DC) from one voltage level to another, by storing the input energy temporarily and then releasing that energy to the output at a different voltage. 

Motor: Today, majority of the electric cars are utilizing DC motors (4 kW and less power). Induction Motor is an exceptionally well known AC motor. A considerable lot of the advanced power EV (more than 5kW), utilize Induction Motors.

Battery: Most plug-in hybrids and all-electric vehicles use lithium-ion batteries like these. Energy storage systems, usually batteries, are essential for hybrid electric vehicles (HEVs), plug-in hybrid electric vehicles (PHEVs), and all-electric vehicles (EVs). 

Vehicle body: Car bodies are most often made of steel, which is strong and durable, but also pretty heavy—especially for electric power to move on its own. 

EV model in simulink:

Explaination of blocks used in model: 

  • Drive cycle source:

 

The Drive Cycle Source block generates a standard or user-specified longitudinal drive cycle. The block output is the specified vehicle longitudinal speed, which you can use to:

  • Predict the engine torque and fuel consumption that a vehicle requires to achieve desired speed and acceleration for a given gear shift reference.

  • Produce realistic velocity and shift references for closed loop acceleration and braking commands for vehicle control and plant models.

  • Study, tune, and optimize vehicle control, system performance, and system robustness over multiple drive cycles.

Drive cycles from predefined sources. By default, the block includes the FTP–75 drive cycle.

  • Slider gain:

           

The Slider Gain block performs a scalar gain that you can modify during simulation. Modify the gain using the slider parameter.

  • Multiport switch:

        

Pass through the input signals corresponding to the truncated value of the first input. The inputs are numbered top to bottom (or left to right). The first input port is the control port. The other input ports are data ports.

  • Motor Controller:

(i) H - Bridge:

     

This block represents an H-bridge motor drive. The block can be driven by the Controlled PWM Voltage block in PWM or Averaged mode. In PWM mode, the motor is powered if the PWM port voltage is above the Enable threshold voltage. In Averaged mode, the PWM port voltage divided by the PWM signal amplitude parameter defines the ratio of the on-time to the PWM period. Using this ratio and assumptions about the load, the block applies an average voltage to the load that achieves the correct average load current. The Simulation mode parameter value must be the same for the Controlled PWM Voltage and H-Bridge blocks.

If the REV port voltage is greater than the Reverse threshold voltage, then the output voltage polarity is reversed. If the BRK port voltage is greater than the Braking threshold voltage, then the output terminals are short circuited via one bridge arm in series with the parallel combination of a second bridge arm and a freewheeling diode. Voltages at ports PWM, REV and BRK are defined relative to the REF port.

If exposing the power supply connections, the block only supports PWM mode.

(ii) Controlled PWM Voltage:

        

This block creates a Pulse-Width Modulated (PWM) voltage across the PWM and REF ports. The output voltage is zero when the pulse is low, and is equal to the Output voltage amplitude parameter when high. Duty cycle is set by the input value. Right-click the block and select Simscape->Block choices to switch between electrical +ref/-ref ports and PS input u to specify the input value.

At time zero, the pulse is initialized as high unless the duty cycle is set to zero or the Pulse delay time is greater than zero.

The Simulation mode can be set to PWM or Averaged. In PWM mode, the output is a PWM signal. In Averaged mode, the output is constant with value equal to the averaged PWM signal.

(iii) Controlled voltage source:

   

The block represents an ideal voltage source that is powerful enough to maintain the specified voltage at its output regardless of the current passing through it. The output voltage is V = Vs, where Vs is the numerical value presented at the physical signal port.

  • Longitudinal driver:

     

A parametric longitudinal speed tracking controller for generating normalized acceleration and braking commands based on reference and feedback velocities.

Use the external actions to input signals that can disable, hold, or override the closed-loop commands determined by the block. The block uses this priority for the input commands: disable, hold, override.

  • DC motor:

   

This block represents the electrical and torque characteristics of a DC motor.

The block assumes that no electromagnetic energy is lost, and hence the back-emf and torque constants have the same numerical value when in SI units. Motor parameters can either be specified directly, or derived from no-load speed and stall torque. If no information is available on armature inductance, this parameter can be set to some small non-zero value.

When a positive current flows from the electrical + to - ports, a positive torque acts from the mechanical C to R ports. Motor torque direction can be changed by altering the sign of the back-emf or torque constants.

  • Battery:

   

This block models a battery. If you select Infinite for the Battery charge capacity parameter, the block models the battery as a series internal resistance and a constant voltage source. If you select Finite for the Battery charge capacity parameter, the block models the battery as a series internal resistance plus a charge-dependent voltage source.

  • Transmission system:

  • Simple gear:

  

Represents a fixed-ratio gear or gear box. No inertia or compliance is modeled in this block. You can optionally include gear meshing and viscous bearing losses.

Connections B (base) and F (follower) are mechanical rotational conserving ports. Specify the relation between base and follower rotation directions with the Output shaft rotates parameter. Optionally include thermal effects and expose thermal conserving port H by right-clicking on the block and selecting Simscape block choices to switch between variants.

  • Tire (magic formula):

  

Represents the longitudinal behavior of a highway tire characterized by the tire Magic Formula. The block is built from Tire-Road Interaction (Magic Formula) and Simscape Foundation Library Wheel and Axle blocks. Optionally, the effects of tire inertia, stiffness, and damping can be included.

Connection A is the mechanical rotational conserving port for the wheel axle. Connection H is the mechanical translational conserving port for the wheel hub through which the thrust developed by the tire is applied to the vehicle. Connection N is a physical signal input port that applies the normal force acting on the tire. The force is considered positive if it acts downwards. Connection S is a physical signal output port that reports the tire slip. Optionally expose physical signal port M by setting Parameterize by to Physical signal Magic Formula coefficients.

  • Vehicle body:

  

Represents a two-axle vehicle body in longitudinal motion. The block accounts for body mass, aerodynamic drag, road incline, and weight distribution between axles due to acceleration and road profile. The vehicle can have the same or a different number of wheels on each axle. Optionally include pitch and suspension dynamics or additional variable mass and inertia. The vehicle does not move vertically relative to the ground.

Connection H is the mechanical translational conserving port associated with the horizontal motion of the vehicle body. The resulting traction motion developed by tires should be connected to this port. Connections V, NF, and NR are physical signal output ports for vehicle velocity and front and rear normal wheel forces, respectively. Wheel forces are considered positive if acting downwards. Connections W and beta are physical signal input ports corresponding to headwind speed and road inclination angle, respectively. If variable mass is modeled, the physical signal input ports CG and M are exposed. CG accepts a two- element vector representing the x and y distance offsets from vehicle CG to additional load mass CG. M represents the additional mass. If both variable mass and pitch dynamics are included, the physical signal port J accepts the inertia of the additional mass about its own CG

  • PS constant:

  

This block creates a physical signal constant, the Constant parameter accepts both positive and negative values. The block output is a physical signal port.

  • Battery State of Charge (SOC):

      

  • Rate Transition: 

Handle data transfer between different rates and tasks.

  • Gain:

The Gain block multiplies the input by a constant value (gain). The input and the gain can each be a scalar, vector, or matrix.

  • Discrete-Time integrator:

Use the Discrete-Time Integrator block in place of the integrator block to create a purely discrete model.

  • Subtract:

The Sum block performs addition or subtraction on its inputs. The Add, Subtract, Sum of Elements, and Sum blocks are identical blocks. This block can add or subtract scalar, vector, or matrix inputs. It can also collapse the elements of a signal and perform a summation.

  • Constant:

Output the constant specified by the 'Constant value' parameter. If 'Constant value' is a vector and 'Interpret vector parameters as 1-D' is on, treat the constant value as a 1-D array. Otherwise, output a matrix with the same dimensions as the constant value.

  • Distance calculation:

  • Integrator:

The Integrator block outputs the value of the integral of its input signal with respect to time.

  • Divide:

The Product block outputs the result of multiplying two inputs: two scalars, a scalar and a nonscalar, or two nonscalars that have the same dimensions.

  • Scope:

The real-time Scope block acquires data in chunks of size Number of samples from the real-time application that is executing on the target computer.

  • Display:

Display input values. If the incoming signal is of type string, the 'Numeric display format' parameter selection does not affect the display of the string.

  • Voltage sensor:

The block represents an ideal voltage sensor, that is, a device that converts voltage measured between any electrical connections into a physical signal proportional to the voltage.

Connections + and - are conserving electrical ports through which the sensor is connected to the circuit. Connection V is a physical signal port that outputs voltage value.

  • Current sensor:

The block represents an ideal current sensor, that is, a device that converts current measured in any electrical branch into a physical signal proportional to the current.

Connections + and - are conserving electrical ports through which the sensor is inserted into the circuit. Connection I is a physical signal port that outputs current value.

  • Controlled current source:

The block represents an ideal current source that is powerful enough to maintain the specified current through it regardless of the voltage across it. The output current is I = Is, where Is is the numerical value presented at the physical signal port.

  • PS-Simulink and Simulink-PS Converter:

Converts the input Physical Signal to a Simulink output signal.

Converts the Simulink input signal to a Physical Signal.

  • Mechanical rotational reference:

This block represents a mechanical rotational reference point, that is, a frame or a ground. Use it to connect mechanical rotational ports that are rigidly affixed to the frame (ground).

  • Electrical reference:

Electrical reference port. A model must contain at least one electrical reference port (electrical ground).

Simulink Results:

 

Total distance travelled is 5.96 Km.

FTP-75 Drive cycle:

As represented on the plot given above the yellow curve shows the drive cycle data, as we know that the FTP-75 Drive cycle operates on the full throttle for some seconds and then the drive cycle is turned to 0 this in case operates the vehicle and accelerates the car at the top speed for the initial stage and throttles the car at the maximum, though the vehicle is unable to match the speed of the vehicle with the drive cycle but it is running at its peak and then comes the phase where the acceleration is left now the vehicle is operated on the free wheeling mode, the vehicle is not powered and the vehicle runs on the speed which is sustained. The important point to note here is the vehicle does not come to rest in 2474 seconds, the vehicles speed is reduced but it does not come to 0.

The vehicle is operated as per the battery specifications as mentioned above on the specifications, the battery voltage supplied as the major source is 300 V and the motor used is the DC Motor in the overall operation the efficiency is been measured and as the operation of the cycle is operated at a specified duration of the FTP-75 the same is been experienced.

The overall distance travelled by the vehicle is 5.9 kms in a duration of 2474 seconds.

Result of Battery SOC:

It is noted that the the Charge of the battery started from 100% at the initial level and during the operation of the vehicle for 2474 seconds using the FTP-75 Drive Cycle which has its peak throttle after the initial range the discharge occured/noted from the battery are until the high throttle was applied and it was been accelerated the battery got dishcharged at 94% and after the acceleration was been released the battery started recharging as the regenerative energy comes into action. The regenerative braking effectively charges the battery by 1% in the same duration where the vehicles acceleration pedal was been taken off and free wheeling.

Current taken by the battery:

Conclusion:

The EV model has been created with necessary block components using the SIMULINK software. The simulation has produced the results of the velocity of the vehicle, current flowing from the battery and state of charge as well as the distance travelled in the simulation time. The EV model was able to follow the commands given byreference velocities from the drive cycle data. The distance travelled by EV model was 5.96 kms and it used FTP-75 drive cycle. The SOC of the battery was discharged efficiently upto 89% from full charge. This model has also  included some features like regenerative braking which was evident in the current scope and state of charge scope.

----------------------------------x------------------------------------------x------------------------------------

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.

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.