Final Project: Electric Rickshaw modelling
- Create a detailed MATLAB model of an electric rickshaw
Objective: To create a MATLAB model of electric rickshaw (three-wheel passenger vehicle) for the following details
- Rear wheels driven by PM brushed type motor
- Assuming the efficiency points of motor controller and motor
- Create an Excel Sheet of all input and assumed data
- Results: Show Energy Consumption, temperature rise of motor and controller for 100KM constant speed driving at 45 kmph.
Electric Vehicle: An All-electric vehicle also called a Battery Electric Vehicle (BEV), uses one or more electric motors instead of an internal combustion engine. The vehicle uses a large traction battery pack to power the electric motor and must be plugged in to a wall outlet or charging equipment, also called electric vehicle supply equipment (EVSE). Because it runs on electricity, the vehicle emits no exhaust from a tailpipe and does not contain the typical liquid fuel components, such as a fuel pump, fuel line, or fuel tank.
Key Components of an All-Electric Vehicle
EVs have 90% fewer moving parts than an ICE (Internal Combustion Engine) car.
Battery: Store the energy required to run an EV. The higher the rating of the battery, the higher the range.
Electric Motor: Using power from the battery pack, this motor drives the vehicle's wheels. Some vehicles use motor generators that perform both the drive and regeneration functions.
Power electronics controller (Inverter): 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.
Charge port: The charge port allows the vehicle to connect to an external power supply in order to charge the battery pack.
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.
Thermal system (cooling): This system maintains a proper operating temperature range of the engine, electric motor, power electronics, and other components.
Transmission (electric): The transmission transfers mechanical power from the electric motor to drive the wheels.

Vehicle Modelling:
- In order to be able to estimate the performance of an electric vehicle, it is very important to have a proper model of it.
- The electric vehicle model is very complex as it contains many different components. Each component needs to be modelled properly in order to prevent wrong conclusions.
- The design or rating of each component is a difficult task as the parameters of one component affect the power level of another one.
- There is therefore a risk that one component is rated inappropriately which may make the vehicle unnecessarily expensive or inefficient. Therefore, System level configurations are necessary.
Block-Diagram:

Simulink Model of Electric Vehicle:
Simulink Blocks used:
- Drive Cycle Source
- Longitudinal Driver
- Controlled PWM voltage
- Constant Voltage Source
- H-Bridge
- DC Motor
- Vehicle Body
- Tire (Magical Formula)
- Simple Gear
- Current Sensor
- Controlled Current Source
- Battery
- Electrical Reference
- Mechanical Rotational Reference
- Multiport Switch
- Integrator
- Divide
- Bus Selector
- Constant
- Display
- Scope
- Solver
- PS-Simulink Converter
- Power gui
- From Workspace
System Level Modelling of E-Rickshaw

Assumed Parameters
|
S. No |
Parameters |
Value |
|
1 |
PWM frequency |
5000 Hz |
|
2 |
Input Voltage for 100% Duty cycle |
1 V |
|
3 |
Output Voltage Amplitude |
5 V |
|
4 |
Rated load of the Motor |
10 kW |
|
5 |
Rated DC Supply Voltage |
300 V |
|
6 |
Gear Ratio |
4 |
|
7 |
Gross Weight of the Vehicle |
400Kg |
|
8 |
Frontal Area |
2 m2 |
|
9 |
Drag Coefficient |
0.3 |
|
10 |
Air Density |
0.6 kg/m3 |
|
11 |
Rolling Radius |
0.3 m |
|
12 |
Rolling Resistance |
0.015 |
|
13 |
Battery Capacity |
150 Ah |
Vehicle Body

A three-wheel drive model of an E-Rickshaw is developed. One wheel place at the front portion and the other two placed at the rear portion. As it is a Rear-Wheel-Drive Vehicle The rear wheels were controlled by an DC motor which is controlled by H bridge. The vehicle body placed on the three wheels of the drive with initial parameters of environments like wind, inclined and throttle. For simplicity grade, environmental factors are considered negligible. Before performing the modelling of the four-wheel electric vehicle drive train, we finalize the parameters and behaviour of the vehicle body. The vehicle parameters are chosen to be Settings.

Tire:

This block represents the longitudinal behaviour of a highway tire characterized by the tire magic formula. 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 the physical signal input port that applies the normal force acting on the tire. Connection S is a physical signal output port that reports the tire slip.

Drive Cycle:
A drive cycle is typically represented by a series of data points which plots vehicle speed against time. Driving cycles are produced to assess the performance of vehicles in various ways, including fuel consumption and pollutant emissions. This is being modelled in MATLAB using drive cycle source.


Longitudinal Driver:

Longitudinal driver block is a parametric longitudinal speed tracking controller for generating normalized acceleration and braking commands based on reference and feedback velocities.
Longitudinal driver block includes a velocity feedback, velocity input, acceleration command and deceleration command.

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

H-Bridge Circuit

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.

DC Motor

The dc motor block is used to represent the electrical and torque characteristics of the motor. Motor parameters are specified directly or derived from rated load and stall torque.

Simple Gear:

This Simple Gear Block represents an ideal nonplanetary, fixed gear ratio gear box. The gear is determined as the ratio of the input shaft angular velocity to that of the output shaft.

Battery:

This Battery block implements a generic dynamic model that represents most popular types of rechargeable batteries. Here we used Lithium-ion type of battery.

Controlled Voltage Source:

This block provides the necessary voltage that is required for the vehicle. The Controlled Voltage Source block converts a Simulink input signal into an equivalent voltage source. The generated voltage is driven by the input signal of the block. We can initialize the Controlled Voltage Source block with a specific AC or DC voltage. If we want to start the simulation in steady state, the Simulink input must be connected to a signal that begins the simulation as a sinusoidal or DC waveform that corresponds to the initial values.
Controlled Current Source:

Similar to voltage block this block produces an ideal current that is powerful enough to maintain the specified current regardless of the voltage across it.
Working
In this model input signal or drive cycle data is given to longitudinal driver block. The controlled PWM signals generate PWM signals for turning ON and turning off the switches in H bridge rectifier which controls the motor circuit. Th motor gives the required torque output and velocity output can be fed back to the longitudinal driver. The speed of vehicle and output velocity of the vehicle can be compared in the scope.
Now we run the simulation for different Drive cycles and observe the results in the scope.
Case-1 FTP75 Drive Cycle with run time of 2474 seconds
Drive Cycle: FTP75
Run Time: 2474 Sec
Distance Travelled:5.639 km
Now we run the simulation for 2474 seconds and check the output results
Vehicle Speed and temperature scope:

- From this scope we can see two signals. The blue signal indicates the drive cycle data and the yellow signal represents the vehicle body speed.
- The longitudinal driver successfully maintains the drive cycle data, processes it and controls the vehicle's speed according to the reference speed.
- This graph overlaps each other during acceleration and deceleration.
- The Motor temperature and Controller temperature has been increased with the increase in run time of the vehicle.
Voltage, Current and SOC Scope

- SOC graph shows how the state of battery varies over the drive cycle time.
- Initially the battery SOC is 100% and reached to 98.09%.
- As the simulation starts the charge of the battery gets decreased and when vehicle is in braking mode there will be little rise in the graph. Which is nothing but the regenerative braking mode is in action.
- There will a fall of SOC after the simulation.
Distance Travelled

Case-2 WOT Drive Cycle with run time of 30 seconds
Drive Cycle: WOT
Run Time: 30 Sec
Distance Travelled:0.1086 km
Vehicle Speed and temperature scope:

- The Vehicle tries to follow the WOT signal but unable to reach the top given top speed with the default PI controller values.
- During acceleration the speed of the vehicle increases and tries to catch the given reference speed in exponential and decreases its speed exponentially during deceleration
- The Motor temperature and Controller temperature has been increased with the increase in run time of the vehicle.
Voltage, Current and SOC Scope

- SOC graph shows how the state of battery varies over the drive cycle time.
- Initially the battery SOC is 100% and reached to 99.85%.
- As the simulation starts the charge of the battery gets decreased and when vehicle is in braking mode there will be little rise in the graph. Which is nothing but the regenerative braking mode is in action.
- There will a fall of SOC after the simulation.

Case-3 Constant Speed of 45 Kmph with run time of 28800 seconds
Drive Cycle: Constant Block of 12.5m/s
Run Time: 28800 Sec
Distance Travelled:100.7 km
Now we run the simulation for 28800 seconds and check the output results
Vehicle Speed and temperature scope:

- From this scope we can see two signals. The blue signal indicates the drive cycle data and the yellow signal represents the vehicle body speed.
- The longitudinal driver successfully maintains the drive cycle data, processes it and controls the vehicle's speed according to the reference speed.
- This graph overlaps each other
- The Motor temperature and Controller temperature has been increased with the increase in run time of the vehicle.
Voltage, Current and SOC Scope

- SOC graph shows how the state of battery varies over the drive cycle time.
- Initially the battery SOC is 100% and reached to 70.43%.
- As the simulation starts the charge of the battery gets decreased and when vehicle is in braking mode there will be little rise in the graph. Which is nothing but the regenerative braking mode is in action.
- There will a fall of SOC after the simulation.
Distance Travelled

Case-4 Constant Speed of 45 Kmph with run time of 28800 seconds
Drive Cycle: WOT Drive Cycle 12.5m/s
Run Time: 28800 Sec
Distance Travelled:100.7 KM
Now we run the simulation for 28800 seconds and check the output results
WOT Drive Cycle Data

Vehicle Speed and temperature scope:

- From this scope we can see two signals. The blue signal indicates the drive cycle data and the yellow signal represents the vehicle body speed.
- The longitudinal driver successfully maintains the drive cycle data, processes it and controls the vehicle's speed according to the reference speed.
- This graph overlaps each other
- The Motor temperature and Controller temperature has been increased with the increase in run time of the vehicle.
Voltage, Current and SOC Scope

- SOC graph shows how the state of battery varies over the drive cycle time.
- Initially the battery SOC is 100% and reached to 70.73%.
- As the simulation starts the charge of the battery gets decreased and when vehicle is in braking mode there will be little rise in the graph. Which is nothing but the regenerative braking mode is in action.
Distance Travelled
