top of page

Solar PV Battery Driven Electric Vehicle in MATLAB

1 hour ago
7 min read

Solar PV Battery Driven Electric Vehicle in MATLAB


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

The Solar PV Battery Driven Electric Vehicle in MATLAB model demonstrates how a solar photovoltaic source and battery energy storage system can work together to supply a DC motor drive used as an electric vehicle load.


Solar PV Battery Driven Electric Vehicle

Solar PV Battery Driven Electric Vehicle in MATLAB
₹8,000.00₹4,000.00
Buy Now

The model is developed in MATLAB/Simulink and combines:

  • Solar PV generation

  • Transformerless buck-boost conversion

  • MPPT control

  • Battery energy storage

  • Bidirectional DC-DC conversion

  • DC bus voltage regulation

  • PMDC motor drive

  • Solar-to-battery and battery-to-motor power management

The main objective is to extract the maximum available solar power while maintaining a regulated 90 V DC bus for reliable motor operation.

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

The complete system consists of the following major sections:

  • Solar PV array

  • Transformerless buck-boost converter

  • P&O MPPT controller

  • PWM generator

  • Battery bank

  • Bidirectional DC-DC converter

  • DC bus voltage controller

  • PMDC motor

  • Measurement and monitoring section

The basic power flow is:

Solar PV → Buck-Boost Converter → DC Bus → PMDC Motor

At the same time:

Battery ↔ Bidirectional DC-DC Converter ↔ DC Bus

The battery can therefore either absorb excess solar energy or supply additional power when PV generation decreases.

𝐒𝐲𝐬𝐭𝐞𝐦 𝐒𝐩𝐞𝐜𝐢𝐟𝐢𝐜𝐚𝐭𝐢𝐨𝐧𝐬

Solar PV Parameters

Parameter

Value

Approximate PV array maximum power

1830 W

Single-panel maximum power

≈ 305 W

Open-circuit voltage

44.8 V

Voltage at maximum power point

35.59 V

Short-circuit current

8.95 A

Current at maximum power point

8.57 A

Series-connected panels

2

Parallel strings

3

Standard irradiance

1000 W/m²

Standard temperature

25°C

With the selected series-parallel arrangement, the PV array can generate approximately 1.83 kW under standard operating conditions.

𝐓𝐫𝐚𝐧𝐬𝐟𝐨𝐫𝐦𝐞𝐫𝐥𝐞𝐬𝐬 𝐁𝐮𝐜𝐤-𝐁𝐨𝐨𝐬𝐭 𝐂𝐨𝐧𝐯𝐞𝐫𝐭𝐞𝐫

A key feature of this model is the use of a transformerless buck-boost converter between the PV array and DC bus.

Unlike a conventional converter designed only for step-up or step-down operation, this topology can operate in both modes.

Main functions

  • Steps the PV voltage up when required

  • Steps the PV voltage down when required

  • Interfaces the PV array with the DC bus

  • Supports maximum power extraction

  • Responds to variations in solar irradiance

  • Eliminates the need for a transformer in the DC conversion stage

This makes the converter suitable for renewable-energy-fed electric drive applications where the PV operating voltage changes continuously.

𝐌𝐏𝐏𝐓 𝐂𝐨𝐧𝐭𝐫𝐨𝐥

The PV converter is controlled using a Perturb and Observe MPPT algorithm.

The controller receives:

  • PV voltage

  • PV current

From these measurements, it determines the appropriate duty cycle for the converter.

The control sequence is:

PV Voltage + PV Current → P&O MPPT → Duty Cycle → PWM Generator → Buck-Boost Converter

The MPPT controller continuously adjusts the converter operation so that the PV array operates close to its maximum power point.

Why MPPT is required

Solar PV output changes because of variations in:

  • Solar irradiance

  • Temperature

  • Operating voltage

  • Connected load condition

Without MPPT, the available solar power may not be fully utilized.

𝐁𝐚𝐭𝐭𝐞𝐫𝐲 𝐄𝐧𝐞𝐫𝐠𝐲 𝐒𝐭𝐨𝐫𝐚𝐠𝐞

The battery provides energy support whenever the PV array cannot supply the complete motor demand.

Battery information

Parameter

Value

Battery capacity

40 Ah

Battery connection

Through bidirectional DC-DC converter

Main function

Charging and discharging support

Control objective

DC bus voltage regulation

The battery acts as an energy buffer between the PV source and motor load.

𝐁𝐢𝐝𝐢𝐫𝐞𝐜𝐭𝐢𝐨𝐧𝐚𝐥 𝐃𝐂-𝐃𝐂 𝐂𝐨𝐧𝐯𝐞𝐫𝐭𝐞𝐫

The battery is connected to the main DC bus through a bidirectional DC-DC converter.

This converter allows current to flow in both directions.

Charging mode

When PV power is greater than the motor requirement:

PV → Motor + Battery Charging

Discharging mode

When PV generation decreases:

PV + Battery → Motor

The converter therefore performs both charging and discharging functions depending on the instantaneous power balance.

𝐃𝐂 𝐁𝐮𝐬 𝐕𝐨𝐥𝐭𝐚𝐠𝐞 𝐂𝐨𝐧𝐭𝐫𝐨𝐥

The motor drive requires a stable supply voltage. Therefore, the DC bus is regulated around:

90 V

The control system measures the actual DC bus voltage and compares it with the reference value.

The control path is:

90 V Reference → Voltage Comparison → PI Controller → Duty Cycle → PWM → Bidirectional Converter

The battery converter then charges or discharges as required to maintain the DC bus close to the reference value.

DC Bus Control Parameters

Parameter

Value

DC bus reference

90 V

Controller

PI controller

Controlled converter

Bidirectional DC-DC converter

Main objective

Maintain stable motor supply voltage

𝐏𝐌𝐃𝐂 𝐌𝐨𝐭𝐨𝐫 𝐚𝐬 𝐄𝐥𝐞𝐜𝐭𝐫𝐢𝐜 𝐕𝐞𝐡𝐢𝐜𝐥𝐞 𝐋𝐨𝐚𝐝

The PMDC motor represents the propulsion load of the electric vehicle.

The motor receives energy continuously from either:

  • Solar PV

  • Battery

  • Solar PV and battery together

Because the DC bus is regulated, the motor can continue operating even when solar irradiance changes.

The model monitors:

  • Motor speed

  • Electromagnetic torque

  • Motor current

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

The complete operating sequence can be understood in the following steps.

  1. The PV array generates electrical power according to the available irradiance.

  2. PV voltage and current are supplied to the P&O MPPT controller.

  3. The MPPT algorithm determines the converter duty cycle.

  4. The PWM generator produces switching pulses for the transformerless buck-boost converter.

  5. The PV converter transfers maximum available solar power to the DC bus.

  6. The PMDC motor draws power from the DC bus.

  7. The DC bus voltage controller continuously monitors the 90 V bus.

  8. Excess PV energy is directed toward battery charging.

  9. When PV output decreases, the battery begins discharging.

  10. The bidirectional converter maintains the DC bus close to 90 V.

  11. The motor continues operating with comparatively stable speed, torque, and current.

𝐈𝐫𝐫𝐚𝐝𝐢𝐚𝐧𝐜𝐞 𝐓𝐞𝐬𝐭 𝐏𝐫𝐨𝐟𝐢𝐥𝐞

The simulation evaluates the system under changing solar conditions.

Simulation Time

Irradiance

0–5 s

1000 W/m²

5–10 s

500 W/m²

10–15 s

1000 W/m²

This changing irradiance profile is useful for observing how the PV array, battery, DC bus, and motor respond dynamically.

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

PV Performance

At approximately 1000 W/m², the PV system operates close to its rated maximum power.

Typical observed values include:

Variable

Approximate Value

PV voltage

Around 70 V

PV current

Around 25 A

PV power

Around 1.8–1.86 kW

The MPPT controller maintains the PV operating point close to the maximum power region.

Response from 0 to 5 Seconds

During the high-irradiance condition:

  • PV power is high.

  • The PV array supplies the PMDC motor.

  • Excess power is available for battery charging.

  • Battery current becomes negative according to the selected sign convention.

  • Battery SOC gradually increases.

  • DC bus voltage remains close to 90 V.

Power flow:

PV → Motor + Battery

Response from 5 to 10 Seconds

When irradiance decreases to approximately 500 W/m²:

  • PV power drops to roughly 900–950 W.

  • The PV source alone is no longer sufficient to meet the complete motor demand.

  • Battery current changes from negative to positive.

  • The battery enters discharging mode.

  • Battery SOC begins to decrease.

  • The battery supplies the power deficit.

  • DC bus voltage remains regulated close to 90 V.

Power flow:

PV + Battery → Motor

This demonstrates the role of battery storage in maintaining uninterrupted motor operation during reduced solar generation.

Response from 10 to 15 Seconds

When irradiance returns to 1000 W/m²:

  • PV power increases again to approximately 1.8 kW.

  • The PV system once again supplies the motor load.

  • Additional available energy charges the battery.

  • Battery current becomes negative.

  • Battery SOC begins increasing.

  • Motor operation remains stable.

Power flow:

PV → Motor + Battery Charging

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

Operating Condition

Battery Current

Battery Mode

SOC Trend

PV power greater than load demand

Negative

Charging

Increasing

PV power lower than load demand

Positive

Discharging

Decreasing

PV output restored

Negative

Charging

Increasing

This automatic transition between charging and discharging is one of the main advantages of the hybrid PV-battery configuration.

𝐌𝐨𝐭𝐨𝐫 𝐑𝐞𝐬𝐩𝐨𝐧𝐬𝐞

The simulation shows that the PMDC motor continues operating even during irradiance variation.

Typical observed motor performance includes:

Parameter

Approximate Behaviour

Motor speed

Around 1700 rpm

Torque

Maintained approximately constant after transient response

Motor current

Remains comparatively stable

DC supply

Maintained near 90 V

Small transient disturbances appear when the solar irradiance changes, but the battery and DC bus controller help stabilize the motor operation.

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

The Simulink model includes dedicated measurement blocks for observing system performance.

PV Measurements

  • PV voltage

  • PV current

  • PV power

Battery Measurements

  • Battery voltage

  • Battery current

  • Battery SOC

  • DC bus voltage

Motor Measurements

  • Motor speed

  • Motor torque

  • Motor current

These signals help analyze the complete energy flow and transient behaviour of the system.

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

The model uses two important control loops.

Control Section

Controller

Main Purpose

PV converter

P&O MPPT

Extract maximum available PV power

Battery converter

PI voltage controller

Regulate DC bus at 90 V

These two controllers work together to achieve both maximum renewable-energy utilization and stable motor operation.

𝐊𝐞𝐲 𝐅𝐞𝐚𝐭𝐮𝐫𝐞𝐬

  • Solar PV powered electric drive architecture

  • Battery-supported energy management

  • Transformerless buck-boost converter

  • Buck and boost operating capability

  • P&O MPPT control

  • 90 V regulated DC bus

  • Bidirectional battery charging and discharging

  • Automatic response to irradiance variations

  • Continuous PMDC motor operation

  • SOC monitoring

  • PV, battery, DC bus, and motor measurements

  • Dynamic simulation under changing solar conditions

  • MATLAB/Simulink-based implementation

𝐀𝐝𝐯𝐚𝐧𝐭𝐚𝐠𝐞𝐬

  • Improves utilization of available solar energy

  • Maintains motor operation during reduced irradiance

  • Allows excess solar energy to charge the battery

  • Supports bidirectional battery power flow

  • Maintains a nearly constant DC bus voltage

  • Reduces dependence on a single energy source

  • Demonstrates practical renewable-energy integration with electric drives

  • Provides a useful platform for testing MPPT and energy-management concepts

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

This model is useful for studying:

  • Solar-powered electric vehicles

  • PV-battery hybrid electric drives

  • Renewable-energy-based transportation

  • DC microgrid-fed motor drives

  • MPPT controller performance

  • Battery charging and discharging control

  • Bidirectional DC-DC converters

  • DC bus voltage regulation

  • Electric vehicle energy-management strategies

  • Renewable energy conversion systems

𝐖𝐡𝐚𝐭 𝐂𝐚𝐧 𝐁𝐞 𝐋𝐞𝐚𝐫𝐧𝐞𝐝 𝐅𝐫𝐨𝐦 𝐓𝐡𝐢𝐬 𝐌𝐨𝐝𝐞𝐥?

Students, researchers, and engineers can use this simulation to understand:

  • How PV power changes with irradiance

  • How MPPT extracts maximum solar power

  • How a buck-boost converter interfaces the PV array with a DC bus

  • How a battery compensates for reduced PV generation

  • How bidirectional converters control charging and discharging

  • How DC bus voltage can be maintained using PI control

  • How motor behaviour changes during source-side disturbances

  • How battery SOC varies according to charging and discharging conditions

𝐂𝐨𝐧𝐜𝐥𝐮𝐬𝐢𝐨𝐧

The Solar PV Battery Driven Electric Vehicle in MATLAB model demonstrates an effective hybrid energy system in which solar PV and battery storage jointly supply a PMDC motor.

The P&O MPPT controller extracts maximum available solar power through the transformerless buck-boost converter, while the bidirectional battery converter regulates the DC bus near 90 V.

When solar generation is high, the PV array supplies the motor and charges the battery. When solar irradiance decreases, the battery automatically provides the required additional power. As a result, the motor continues operating with stable speed, torque, and current despite changes in solar input.

This MATLAB/Simulink model provides a clear and practical platform for understanding solar PV conversion, MPPT, battery energy storage, bidirectional power flow, DC bus regulation, and electric vehicle motor operation.

Comments


bottom of page