top of page

Electric Vehicle with BLDC Motor Drive in MATLAB

2 days ago
6 min read

Electric Vehicle with BLDC Motor Drive in MATLAB


𝐈𝐧𝐭𝐫𝐨𝐝𝐮𝐜𝐭𝐢𝐨𝐧

The Electric Vehicle with BLDC Motor Drive in MATLAB model demonstrates the operation of a battery-powered electric vehicle supported by a solar PV source. The system combines a BLDC motor drive, battery energy source, PV charging system, speed controller, Hall-sensor-based commutation, and charging control logic in MATLAB/Simulink.


Electric Vehicle with BLDC Motor Drive

Electric Vehicle with BLDC Motor Drive in matlab
₹10,000.00₹5,000.00
Buy Now


The model is useful for understanding:

  • BLDC motor speed control

  • Electric vehicle power consumption

  • Battery charging and discharging

  • Solar-assisted EV operation

  • Battery SOC monitoring

  • PV power variation

  • Hall sensor based electronic commutation

  • Automatic PV charging control

The complete system clearly shows how available solar energy can supply the EV load and charge the battery, while the battery automatically supports the motor when PV generation becomes insufficient.

𝐒𝐲𝐬𝐭𝐞𝐦 𝐎𝐯𝐞𝐫𝐯𝐢𝐞𝐰

The MATLAB/Simulink model mainly consists of:

  • Solar PV panel

  • Battery

  • PV charging controller

  • DC bus

  • Electric vehicle load

  • BLDC motor

  • Three-phase inverter

  • Hall sensor decoder

  • Speed PI controller

  • Battery SOC monitoring

  • Voltage, current, and power measurement blocks

The battery and solar PV source are connected to the common electrical system supplying the EV load and BLDC motor drive.

Main System Parameters

Parameter

Value / Condition

Battery voltage

380 V

Battery capacity

48 Ah

Initial battery SOC

50%

Maximum EV input power

Approximately 2900 W

Additional EV load

Approximately 1000 W

Maximum speed reference

2000 rpm

Simulation time

5 s

PV charging SOC limit

100%

Battery voltage charging limit

Approximately 442 V

Speed controller

PI controller

Motor type

BLDC motor

𝐖𝐨𝐫𝐤𝐢𝐧𝐠 𝐏𝐫𝐨𝐜𝐞𝐬𝐬

The system operates according to the available PV power, battery condition, and EV demand.

1. Solar PV Power Generation

The PV panel generates electrical power according to the applied solar irradiance.

The model measures:

  • PV voltage

  • PV current

  • PV power

When sufficient PV power is available, the PV source can simultaneously:

  • Supply power to the electric vehicle

  • Charge the battery

2. Battery Operation

The battery acts as the main energy-storage source.

Depending on the difference between PV generation and EV demand, the battery operates in different modes.

Operating Condition

Battery Behaviour

PV power greater than EV demand

Battery charges

PV power approximately equal to EV demand

Battery approaches idle condition

PV power lower than EV demand

Battery discharges

PV power unavailable

Battery supplies the EV

Battery fully charged

PV charging is disconnected

This automatic transition demonstrates practical power sharing between the renewable source and the battery.

𝐏𝐕 𝐂𝐡𝐚𝐫𝐠𝐢𝐧𝐠 𝐂𝐨𝐧𝐭𝐫𝐨𝐥

The solar charging controller monitors two important battery parameters:

  • Battery SOC

  • Battery voltage

The PV source is allowed to charge the battery when:

  • Battery SOC is below 100%

  • Battery voltage is below the selected upper voltage threshold

When the battery reaches the full-charge condition, the controller disconnects the PV charging path.

Charging Logic

SOC Condition

Battery Voltage Condition

PV Charging

SOC < 100%

Voltage < 442 V

ON

SOC = 100%

Voltage near or above limit

OFF

Battery requires energy

Safe voltage range

ON

Battery fully charged

Upper voltage reached

OFF

This protects the battery from unnecessary overcharging.

𝐁𝐋𝐃𝐂 𝐌𝐨𝐭𝐨𝐫 𝐃𝐫𝐢𝐯𝐞

The electric vehicle uses a BLDC motor drive.

The drive contains:

  • Three-phase inverter

  • BLDC motor

  • Hall sensor signals

  • Hall signal decoder

  • PI speed controller

  • Switching logic

  • Motor current and back-EMF measurement

The inverter converts the DC supply into the required phase excitation for the BLDC motor.

The switching sequence is determined according to the motor rotor position obtained through Hall sensor signals.

𝐂𝐨𝐧𝐭𝐫𝐨𝐥 𝐒𝐭𝐫𝐚𝐭𝐞𝐠𝐲

The BLDC motor speed is controlled using closed-loop speed regulation.

The actual motor speed is continuously measured and compared with the reference speed.

The speed error is processed by a PI controller.

The controller output is combined with the decoded Hall sensor information to generate the appropriate inverter switching pulses.

Control Flow

Reference Speed → Speed Comparison → PI Controller → Switching Logic → Inverter → BLDC Motor

At the same time:

Hall Sensors → Decoder → Commutation Logic → Inverter Switching

This arrangement allows the motor to follow the commanded speed profile.

𝐒𝐩𝐞𝐞𝐝 𝐑𝐞𝐟𝐞𝐫𝐞𝐧𝐜𝐞 𝐏𝐫𝐨𝐟𝐢𝐥𝐞

The motor speed reference is varied during the simulation to study acceleration, steady-speed operation, and deceleration.

Time Period

Speed Reference

0 to 1.5 s

0 → 2000 rpm

1.5 to 3.5 s

2000 rpm

3.5 to 5 s

2000 → 0 rpm

Speed Behaviour

  • During the first interval, the motor accelerates.

  • During the middle interval, the motor maintains approximately 2000 rpm.

  • During the final interval, the reference is reduced toward zero.

This allows the dynamic response of the BLDC motor controller to be evaluated.

𝐒𝐨𝐥𝐚𝐫 𝐈𝐫𝐫𝐚𝐝𝐢𝐚𝐧𝐜𝐞 𝐕𝐚𝐫𝐢𝐚𝐭𝐢𝐨𝐧

The PV irradiance is intentionally varied during the simulation.

The described irradiance levels include approximately:

Operating Stage

Irradiance

High solar condition

1000 W/m²

Reduced solar condition

800 W/m²

Lower solar condition

500 W/m²

Weak solar condition

300 W/m²

Very low solar condition

100 W/m²

This variation helps demonstrate the effect of changing solar availability on PV output power and battery operation.

𝐏𝐨𝐰𝐞𝐫 𝐅𝐥𝐨𝐰 𝐎𝐩𝐞𝐫𝐚𝐭𝐢𝐨𝐧

The model demonstrates several important power-flow conditions.

High PV Power

When PV generation is sufficiently high:

PV → Electric Vehicle

and

PV → Battery Charging

The battery SOC therefore increases.

Reduced PV Power

When PV power decreases:

PV + Battery → Electric Vehicle

The battery supplements the available solar generation.

Very Low or Zero PV Power

When solar generation becomes unavailable:

Battery → Electric Vehicle

The battery becomes the primary source supplying the motor drive and vehicle load.

𝐁𝐚𝐭𝐭𝐞𝐫𝐲 𝐎𝐩𝐞𝐫𝐚𝐭𝐢𝐧𝐠 𝐌𝐨𝐝𝐞𝐬

The battery changes operating mode according to system power balance.

PV Condition

EV Demand

Battery Mode

High PV

Low/medium

Charging

PV ≈ demand

Balanced

Idle / near-zero power

Low PV

High demand

Discharging

No PV

EV operating

Full load support

Full battery

Any charging excess

Charging disabled

This behaviour is important for understanding energy coordination in solar-assisted electric vehicles.

𝐒𝐢𝐦𝐮𝐥𝐚𝐭𝐢𝐨𝐧 𝐌𝐞𝐚𝐬𝐮𝐫𝐞𝐦𝐞𝐧𝐭𝐬

The model provides several scopes for observing system performance.

PV Measurements

  • PV voltage

  • PV current

  • PV power

Battery Measurements

  • Battery voltage

  • Battery current

  • Battery power

  • Battery SOC

Electric Vehicle Input Measurements

  • EV input current

  • EV input power

  • DC bus voltage

BLDC Motor Measurements

  • Rotor speed

  • Stator current

  • Back EMF

  • Electromagnetic torque

These waveforms make it easy to analyse both the electrical and mechanical behaviour of the system.

𝐒𝐢𝐦𝐮𝐥𝐚𝐭𝐢𝐨𝐧 𝐑𝐞𝐬𝐮𝐥𝐭𝐬

The simulation demonstrates the dynamic interaction between the PV source, battery, and BLDC motor.

PV Performance

As irradiance decreases:

  • PV current decreases

  • PV power decreases

  • Available renewable power becomes lower

Battery Performance

When excess PV power is available:

  • Battery charging current is observed

  • Battery SOC increases

When PV power becomes insufficient:

  • Battery current changes according to discharge operation

  • Battery begins supporting the EV load

EV Input Power

The electric vehicle continues to receive the required power even when PV output changes because the battery compensates for the power deficit.

Motor Speed Response

The BLDC motor:

  • Accelerates toward 2000 rpm

  • Maintains the commanded speed

  • Decelerates as the speed reference decreases

Motor Electrical Waveforms

The model also demonstrates:

  • BLDC phase current

  • Trapezoidal back EMF

  • Rotor speed variation

  • Electromagnetic torque response

These waveforms are useful for studying BLDC motor commutation and drive performance.

𝐓𝐰𝐨 𝐁𝐚𝐭𝐭𝐞𝐫𝐲 𝐒𝐎𝐂 𝐂𝐨𝐧𝐝𝐢𝐭𝐢𝐨𝐧𝐬

The model can be tested under different initial SOC conditions.

Case 1: SOC = 50%

With the initial SOC set to 50%:

  • PV power charges the battery when excess power is available.

  • PV simultaneously supplies the EV where possible.

  • The battery supplies additional power when PV generation decreases.

Case 2: SOC = 100%

With the SOC set to 100%:

  • Battery charging is prevented.

  • The controller disconnects the PV charging path when the upper battery condition is reached.

  • The battery remains protected from further charging.

This comparison clearly demonstrates the operation of the charging controller.

𝐊𝐞𝐲 𝐅𝐞𝐚𝐭𝐮𝐫𝐞𝐬

  • 380 V battery-based EV system

  • 48 Ah battery capacity

  • Solar PV assisted electric vehicle operation

  • BLDC motor drive

  • PI-based motor speed control

  • Hall sensor based electronic commutation

  • Variable speed reference

  • Variable solar irradiance

  • Automatic battery charging control

  • Battery SOC protection

  • PV voltage, current, and power measurement

  • Battery voltage, current, power, and SOC monitoring

  • EV input power measurement

  • Rotor speed observation

  • Back-EMF waveform analysis

  • Stator current monitoring

  • Automatic transition between charging, idle, and discharging modes

𝐀𝐩𝐩𝐥𝐢𝐜𝐚𝐭𝐢𝐨𝐧𝐬

This MATLAB/Simulink model is suitable for studying:

  • Electric vehicle drive systems

  • BLDC motor control

  • Solar-assisted electric vehicles

  • Battery energy management

  • Battery charging strategies

  • Renewable energy integration

  • Electric propulsion systems

  • Hall sensor based BLDC commutation

  • EV power-flow analysis

  • Battery SOC based charging control

  • Motor speed regulation

  • PV-battery coordinated operation

It is useful for students, researchers, engineers, trainers, and MATLAB/Simulink learners working in electric mobility and renewable-energy applications.

𝐖𝐡𝐲 𝐓𝐡𝐢𝐬 𝐌𝐨𝐝𝐞𝐥 𝐈𝐬 𝐔𝐬𝐞𝐟𝐮𝐥

This simulation combines the important parts of an electric vehicle energy system within a single MATLAB/Simulink environment.

Users can observe how:

  • Solar irradiance affects PV generation

  • PV power affects battery charging

  • Battery SOC determines charging permission

  • Battery power compensates for reduced PV output

  • BLDC motor speed follows the reference command

  • Hall sensor signals control electronic commutation

  • EV power demand changes the overall energy balance

This provides a clear understanding of both energy-side operation and motor-drive control.

𝐂𝐨𝐧𝐜𝐥𝐮𝐬𝐢𝐨𝐧

The Electric Vehicle with BLDC Motor Drive in MATLAB model provides a complete simulation platform for analysing a solar-assisted battery electric vehicle.

The model demonstrates BLDC motor speed control, battery charging and discharging, SOC-based charging protection, changing solar irradiance, EV power demand, Hall sensor commutation, and PV-battery power sharing.

When solar power is sufficient, the PV source supports the EV while charging the battery. As PV generation decreases, the battery progressively supplies the required power. When the battery reaches its full-charge condition, the PV charging path is automatically disconnected.

Overall, the model provides a simple and effective way to understand BLDC motor drives, electric vehicle power flow, solar integration, battery behaviour, and closed-loop speed control using MATLAB/Simulink.

Comments


bottom of page