All Courses
All Courses
Courses by Software
Courses by Semester
Courses by Domain
Tool-focused Courses
Machine learning
POPULAR COURSES
Success Stories
Objective: Create a MATLAB model of electric car which uses lithium-ion battery and suitable motor. Choose suitable blocks from Simscape or Powertrain block set. Implement the vehicle speed control using PI controller and generate brake and accelerator commands. Avoid using readymade driver block for speed control. …
Kolli Surya Teja
updated on 20 May 2021
Objective: Create a MATLAB model of electric car which uses lithium-ion battery and suitable motor. Choose suitable blocks from Simscape or Powertrain block set. Implement the vehicle speed control using PI controller and generate brake and accelerator commands. Avoid using readymade driver block for speed control.
System level configuration:
Drive cycle:
PID controller subsystem:
Sum Block:
This block subtracts feedback velocity from reference velocity.
This output is given to pid controller.
PID Controller:
Parameters:
The output from the sum block is given to this block.
based on the PID, the output is generated.
Saturation Block:
Parameters:
Acceleration:
Deceleration:
This block helps to limit the output signal from pid controller and separate deceleration and acceleration values.
The output from these blocks is sent to a transfer function then these are provided to motor controller block.
Motor Controller Subsystem:
The Controlled Voltage Source block represents an ideal voltage source that is powerful enough to maintain the specified voltage at its output regardless of the current flowing through the source.
The output voltage is V = Vs, where Vs is the numerical value presented at the physical signal port.
Electrical input ports — The block calculates the duty cycle based on the reference voltage across its ref+ and ref- ports. This modeling variant is the default.
PS input — Specify the duty cycle value directly by using an input physical signal port.
For the Electrical input ports variant of the block, the demanded duty cycle is
100∗Vref−VminVmax−Vmin%
where:
Vref is the reference voltage across the ref+ and ref- ports.
Vmin is the minimum reference voltage.
Vmax is the maximum reference voltage.
This block is used to change the polarity of the voltage applied across the DC motor so as to run the motor in forward and reverse direction as per the input command.
Motor Subsystem:
Battery Subsystem:
Vehicle Body Subsystem:
Result Plot:
Dashboard:
Results Plots:
Reference Velocity vs Vehicle Velocity:
As per above plot, we can see 0 - 40kmph is achieved in 14sec.
Distance Travelled (km):
Distance Travelled is 1.64km
Motor RPM:
SOC (%):
Battery SOC dropped to 97.25%
Average Energy Consumed (wH):
Average Power Consumed (kW):
Conclusion:
MATLAB model of electric car which uses lithium-ion battery and suitable motor is created.
Leave a comment
Thanks for choosing to leave a comment. Please keep in mind that all the comments are moderated as per our comment policy, and your email will not be published for privacy reasons. Please leave a personal & meaningful conversation.
Other comments...
Week 8 & 9 - Four Bar Mechanism
Modify either the Bistop function or the motion curve that we apply to the revolute joint to stop the trunk lid exactly when the trunk lid comes in contact with the body of the car. Solution: Model with graphics imported: Default Motion curve: Motion vs Time_s Hyperview results: at t=3.11sec. collision is detected.…
13 Jan 2022 06:28 AM IST
Week 4 Project - Simple Crank Mechanism
Question 1 Simulate the simple crank mechanism using cylinders (diameter = 2m) in a 2D plane (XY) as shown in the figure below In the case shown above, Revolute joints are located at P0 and P1, What type of joint must be given at P2 (Joint C) so that the system doesn't have redundancy issues? NOTE: Joint C is a type of…
13 Jan 2022 06:26 AM IST
Week 1 - Free Falling
OBJECTIVE: To Simulate and plot a freefalling body (point mass) of mass 1 kg and inertial properties 1 kgm2 in the y-axis with simulation time of 2sec THEORY: Free Falling Object: The term "free fall" refers to an object falling freely with no forces operating on it other than gravity. Mathematical equation for free…
08 Jan 2022 07:35 AM IST
Problem Set-1 c Week 11Challenge : Transient Handling
The following table contains information about two vehicles FWD passenger car: Code: clear all close all clc l = 2.538984 ; %Wheelbase (m) a = 0.890016; %cg to front axle (m) b = l-a; %cg to rear axle (m) m = 907.18474; %Mass (kg) jz = 1128 ; %moment of inertia (kg-m^2) cf = 61171.9437; %front cornering stiffness…
29 Dec 2021 06:59 AM IST
Related Courses
Skill-Lync offers industry relevant advanced engineering courses for engineering students by partnering with industry experts.
© 2025 Skill-Lync Inc. All Rights Reserved.