Final Project: Electric Rickshaw modelling
| Final Project: Electric Rickshaw modelling |
AIM : To create a detailed MATLAB model of an electric rickshaw (three wheel passenger vehicle).
OBJECTIVE :
- Rear wheel driven by PM brushed typed motor.
- Energy Consumption calculation.
- Temperature rise of motor & controller calculation.
THEORY :
Block Diagram of an EV :-
![]() |
Taking a look at each block -
1 - Vehicle Body.
![]() |
- R is Rotational input port from motor, V is Rickshaw Speed as output to scope using Goto block.
- It is modeled using 3 tires block and and one vehicle body block. [Rear Wheel Drive]
- Vehicle Body Block - It has 2 physical system (PS) input ports headwind Speed (W), Inclination (beta).
|
3 PS output ports Vehicle Velocity (V), Normal Force Front (NF), Normal Force Rear (NR). It represents 2 axle vehicle body in logitudinal motion (i.e. vertical motion is absent). H port - mechanical translational conserving port represents horizontal motion. It is connected to all the tires representing 2 axle. W port - modelled using PS Constant block with 0 value. beta port - modelled using PS Constant block with 0 value. NF port - connected to front tire. NR port - connected to 2 rear tires. It can be parametered using body mass, aerodynamic drag, road inclination. |
|
For this model :- Mass = 600 kg. Frontal area = 2 `m^2` Air density = 1.3 `(kg)(/m^3)` All other parameters are kept default. |
![]() |
- Tire Block - It has 3 input ports, H : mechanical translational conserving port for wheel hub, through which thrust developed by tire is applied to vehicle.
|
A : mechanical rotational conserving port for the wheel axle. connected with Follower gear of Simple Gear block. N : physical signal port that applies normal force acting on tire. S : PS output port - reports tire slip. They are terminated here with PS Terminator block as they are not considered in this model. It is built from Tire-Road Interaction (Magic Formula). |
|
For this model :- Peak Longitudinal force parameter is used. Rolling Resistance = 0.015 All other parameters are kept default. |
![]() |
- Simple Gear Block - Port (B) Base & (F) Follower are mechanical rotational conserving port.
|
B is connected to Motor output, F is connected to Wheel Axle at A port of tire. They specify the relation between B & F rotation direction with the Output shaft rotates parameter. It represents a fixed-gear ratio. |
|
For this model :- Gear ratio = 7.5 All other parameters are kept default. |
![]() |
2 - Motor.
|
![]() |
|
For this model :- Motor block is parametirised by rated load and speed. No load Speed = 7500 rpm Rated Speed = 7000 rpm Rated Load = 8 kW Rated DC Supply = 330 V. All other parameters are kept default. |
![]() |
- Temperature Sensor Block - It measures temperature in a thermal network.
|
It has 3 ports A & B : Temperature is positive when the temperature at A is greater than at B. A port is connected to motor and B is connected to Thermal Reference block. T : It is physical signal port that reports temperature difference across the sensor. Its signal is sent to Temperature Scope via Goto block. |
3 - Battery.
![]() |
- 1 is input port from Power Converter, 3 output are taken from bus selector viz. SOC, Current & voltage via Goto block.
- SOC is given to Scope, Current & voltage are given input to Energy Meter.
- It is modelled using a Battery block, Controlled Current Source block, Bus Selector.
|
It converts the input physical signal to a Simulink output signal. Since the converter circuit is modelled using blocks from different library, it is used to connect to simulink library. |
|
It maintains the specified current through it regardless of voltage across it. The battery is drained as per the requirement from the DC motor, which is input to this block. |
|
It accepts a bus as input and gives multiple output signals. 3 output from battery are SOC, Current & Voltage. |
|
Battery for this model :- Nomial Voltage = 330 V. Rated Capacity = 120 Ah. All other parametes are kept default. |
![]() |
4 - Power Converter.
![]() |
- 2 Input ports : (1) Acceleration & (2) Deceleration from Longitudinal Driver block.
- 3 output ports : (1) Current signal to Battery block. (2) & (3) positive and negative terminal input for DC motor.
- Power converter is modelled using a Controlled PWM Voltage Block, H-Bridge Block, Current Sensor Block, Controlled Voltage Source Block, Solver Configuration Block, Temperature Sensor Block, Electrical Reference Block. (From Simscape Library)
- Converter Temperature is output to Temperature Scope via Goto block.
|
It creates a PWM voltage across PWM and Ref ports . Output voltage is zero when the pulse is low, and is equal to Output voltgae when pulse is high. Duty cycle is set by the input value. Its input is taken from Controlled Voltage source at ref+ and ref- ports, and output is given to H-bridge from PWM and REF ports. |
|
For this model :- Simulation mode = Averaged. (considering simulation time constraint) Output Voltage Amplitude = 5 V. |
![]() |
|
It represents a motor drive driven by the Controlled PWM voltage block. Hence both block should be in same simulation mode. (either PWM or Averaged). 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. It has 4 input ports - PWM port : takes PWM voltage input from PWM block. REF port : It is a reference port. REV port : It reverses output voltage polarity when its input is greater than Reverse Threshold voltage. BRK port : It conducts the Freewheeling Diode when its input is greater than the Braking Threshold voltage. Thus enabling regeneration. It has 2 output ports - (+) & (-) polarity for motor. |
|
For this model :- Simulation mode = Averaged. Regenerative Braking = Enabled. Output Voltage = 330 V. All other parameters are kept default. |
![]() |
|
It converts current measured in electrical branch into physical signal propotional to the current. Ports (+) & (-) : conserving electrical ports. Port I : PS port that outputs current. |
|
It maintains the specified voltage at its output regardless of current passing through it. It has one input port - that takes PS value. |
|
It helps connect Simulink library block to PS block. In this model Acceleration & Deceleration are inputs from Longitudinal Driver (Simulink Library) connected to PS Controlled voltage source. |
|
It specifies the solver parameters for model simulation. Each physical network requires solver settings information for simulation. |
|
It measures temperature in a thermal network. It has 3 ports A & B : Temperature is positive when the temperature at A is greater than at B. A port is connected to motor and B is connected to Thermal Reference block. T : It is physical signal port that reports temperature difference across the sensor. Its signal is sent to Temperature Scope via Goto block |
|
It represents electrical ground. |
5 - Longitudinal Driver.
- It is a speed tracking controller for generating normalized acceleration and braking commands based on reference and feedback velocities.
|
Velocity Reference which takes input reference velocity. In this model it is taken from Drive Cycle. Velocity Feedback which takes input from feedback to be compared with reference velocity. Grade which gradeability input. |
|
Acceleration command, Deceleration Command and Info. Acceleration command is given as input to Power Converter Block, which controls the voltage applied to the motor. Deceleration command is also given as input to Power Converter Block, which enables the power converter to regenerate / or feed power back to battery. |
- Info is terminated in this model, as it is not needed.
|
For this model :- Control type = PI (Proportional & Integral Gain) Proportional Gain (Kp) = 15 Integral Gain (Ki) = 2.5 Grade = 0. |
![]() |
6 - Drive Cycle.
![]() |
- This block has 1 input and 2 output viz. V reference and Gradability.
- It has Drive Cycle Source block, Multiport Switch block, and Constant block.
- Input 1 is used to switch among the 3 cycles.
- Multiport switch routes the signal according to to our selection.
- 3 Drive Cycles are used to test the e-rickshaw.
- Constant block is used to specifiy 45 kmph / 12.5 mps speed input to the vehicle.
SIMULINK MODEL :-
- All above blocks have been connected respectively to build this model.
![]() |
![]() |
- Display Block - It is used to display the numerical values of SOC, Distance travelled and Energy Consumption.
- Scope Block - It is used to display the graph of Drive Cycle vis-a-vis Vehicle output, SOC & Temperature.
- Powergui Block - It sets the simulation type, simulation parameters and preferences. Continuous simulation type is used.
- Distance Calculator Block -
|
It is used to display the distance travelled by the vehicle for a given drive cycle. It is modelled using a Integrator block, constant block, Divide block. Output speed / velocity (m/s) is integrated to get the Distance and is divided by 3600 seconds to get distance in Kilometers. |
![]() |
- Energy Meter Block -
|
It is used to calculate the energy consumed during a drive cycle by the rickshaw. It is modelled using an integrator block, product block, divide block. Formula employed here is `E = (A*V)/t` |
![]() |
OBSERVATIONS :
- IM 240 Drive cycle.
The simulation was run for 240 seconds and measurements are noted across it.
| Drive Cycle Graph | Measurements | |||
![]() |
Distance Travelled : 0.88 km.
Energy Consumed : 440 W.
SOC : 99%
|
- Blue line shows the original Drive Cycle and Yellow line shows the Vehicle cycle.
- As both the lines are overlapping, it is evident that the vehicle follows the desired path of the Drive Cycle 1 input.
| SOC Graph | Temperature Graph |
![]() |
![]() |
- In SOC graph, as and when the vehicle is decelerating battery getting recharged is clearly seen.
- In temperature graph, both Motor and Converter's temperature goes on increasing.
Motor Temp. = 300 K; Converter Temp. = 315 K.
2. Japenese 10-15 Drive Cycle.
The simulation was run for 660 seconds and measurements are noted across it.
| Drive Cycle Graph | Measurements | |||
![]() |
Distance Travelled : 1.165 km.
Energy Consumed : 650 W
SOC : 98.55%
|
- Blue line shows the original Drive Cycle and Yellow line shows the Vehicle cycle.
- As both the lines are overlapping, it is evident that the vehicle follows the desired path of the Drive Cycle 2 input.
| SOC Graph | Temperature Graph |
![]() |
![]() |
- In SOC graph, as and when the vehicle is decelerating battery getting recharged is clearly seen.
- In temperature graph, both Motor and Converter's temperature goes on increasing.
Motor Temp. = 300 K; Converter Temp. = 316 K.
3. User Defined cycle.
| Drive Cycle Graph | Measurements | |||
![]() |
Distance Travelled : 104 km.
Energy Consumed : 4 kW.
SOC : 3.25 %
|
- Blue line shows the original Drive Cycle and Yellow line shows the Vehicle cycle.
- As both the lines are overlapping, it is evident that the vehicle follows the desired path of the Drive Cycle 3 input.
- Settling time for vehicle is around 40 seconds after which it tracks the desired/ reference speed for 100km.
| SOC Graph | Temperature Graph |
![]() |
![]() |
- The SOC graph is linear here, as the vehicle is running at constant speed for 100 km, battery recharging is not possible as clearly seen.
- In temperature graph, both Motor and Converter's temperature goes on increasing. In fact, as the motor was running at constant speed its temperature shoots up almost linearly.
Motor Temp. = 730 K; Converter Temp. = 335 K.
CONCLUSION :
| Drive Cycle / Parameters | DISTANCE (km) | SOC (%) | ENERGY CONSUMED (kW) |
| 1- IM240 | 0.88 | 99 | 0.44 |
| 2- Japenese 10-15 | 1.165 | 98.55 | 0.65 |
| 3- User Defined | 104 | 3.25 | 4 |
As the vehicle is following desired path and desired response to the Drive cycles, while discharging the battery when accelerated and charging the battery when brakes are applied to it, it can be concluded that the model is successful.


































