Challenge

Project-1: Modelling an electric Car with Li-ion battery

Project 2

AIM : To Create a MATLAB model of electric car which uses lithium ion battery and suitable motor.

PROCEDURE :

(1) Vehicle Body Subsystem Model :

  • Motor will produce the rotational output which will give to the vehicle body and transmission system. The rotational output is taken by the gear system here to maintain the constant speed throughout the transmission without any loss in speed from the motor to tires.
  • Below is a diagram that is how it is how it inside the vehicle body and transmission system and in the main design, it is referred just only as a transmission system.
  • The gear output is given to axels of Rear tires, in the circuit it is shown that gear is connected to Rear wheels and front tire is free to rotational motion, thus vehicle moves forward. N is the normal force caused by the tires and it is given to the vehicle body normal force port.
  • The vehicle body has an H-Hub, S- Tire slip, N- Normal force, A- axel connection, wind velocity, inclination angle. The tires hub is connected as a common node to the vehicle body.
  • The vehicle body wind velocity is connected to a constant block and the beta-inclination angle is connected to another constant block where we can assign wind velocity and inclination angle as per requirement. Velocity is the output port where we can get at which speed the vehicle is moving. The velocity is taken out to the get the distance travelled and state of charge.


Vehicle Body Parameters :

  • Vehicle body mass, Centre of gravity distance values and aerodynamic drag variables are modified.
  • Pitch dynamics are kept ON with other variable values as default values.

Tire :

  • 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. Physical signal port M accepts a four element vector corresponding to the B, C, D, and E Magic Formula coefficients.

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. Output shaft rotates in in same direction of input shaft.
  • Base is connected to the Motor shaft and the follower is connected to the Rear wheel derive.

Vehicle Body :

  • This block basically represents a two-axle vehicle body in longitudinal motion. The block accounts for - body mass, aerodynamic drag, road incline, weight distribution between axles due to acceleration road profile.
  • Here, the connection H is the mechanical translational conserving port hub. NF & NR correspond to the output ports for normal reaction forces on front axle and rear axle wheels respectively.
  • Connection V represents the actual output translational velocity of the vehicle. beta is the road inclination angle & W corresponds to the headwind speed (headwind - direction opposite to that of vehicle). The gross weight is given to be 600 kg.
  • The geometric parameters of the vehicle are given as -

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

DC Motor :

  • This block represents the electrical and torque characteristics of a DC motor includes Thermal port to sence the temperature of 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 flow 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.

  • The Motor controller will get input from the longitudinal driver. Its tasks are to control the speed of the motor and drive according to the input of the driver. Majorly motor controlled we designed had two main parts named PWM voltage generator and H-Bridge.
  • Input 1 is getting from the accelmd of a longitudinal driver, and it is given to a controlled voltage source block where it is input to the controlled PWM voltage. Controlled PWM voltage will generate a PWM signal in such a way that H-bridge will generate the required voltage to operate the DC motor for the given driver input.
  • PWM voltage block negative reference and REF are grounded and REF of H-bridge respectively. H-bridge is a motor controller that has IGBT components aligned in the shape of H
    and will operate only two at a time respectively to the input of the signal from the PWM block.
  • When deceleration occur this H-bridge will give an output from the positive and negative terminals of it. These negative & positive terminals are later connected to the DC motor and battery. All these components are the simscape electrical components so they need a connection to the solver configuration block which helps to solve the simulation.

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. Select Simulation mode as Averaged.

Instead of Longitudinal driver, which is a Simulink inbuild block, we are using a PID controller with a feedback loop taken from the Vehicle body.

The PID controller output is provided to the controlled voltage source to drive the vehicle.

Three drive cycles are used here. 1) The FTP75 2) Wide Open Throttle 3) Custom drive cycle.

FTP 75 :

Wide Open Throttle (WOT) :

The Overall Simulink Model

Outputs

With FTP75 Drive cycle

With Wide open throttle Drive cycle

With a custom drive cycle made to run 100 km distance in a constant speed of 45kmph

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.