top of page

MATLAB Simulation of 15 kW OFF grid PV battery System

Nov 1
7 min read

MATLAB Simulation of 15 kW OFF grid PV battery System


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

The MATLAB Simulation of 15 kW OFF grid PV battery System demonstrates the operation of a standalone solar photovoltaic system integrated with battery energy storage, DC loads, and AC loads.


MATLAB Simulation of 15 kW OFF grid PV battery System

MATLAB Simulation of 15 kW OFF grid PV battery System
₹12,000.00₹6,000.00
Buy Now


The complete system is developed in MATLAB/Simulink to study how solar PV power and battery storage work together under changing solar irradiance conditions.

This model is especially useful for understanding:

  • Solar PV array operation

  • Maximum power extraction

  • Battery charging and discharging

  • DC–DC converter control

  • Standalone inverter control

  • AC and DC load supply

  • Solar irradiance variation

  • PV and battery power sharing

  • Off-grid power management

Since the system operates in off-grid mode, there is no utility grid connection. The PV array and battery together maintain continuous power supply to the connected loads.

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

The simulated system contains the following major components:

  • 15 kW Solar PV Array

  • DC–DC Buck Converter

  • PV Charger Controller

  • Battery Bank

  • PV Disconnect Circuit Breaker

  • DC Load

  • Single-Phase Inverter

  • LC Output Filter

  • Inverter Controller

  • AC Load

  • Measurement and Monitoring Blocks

The overall energy flow is:

Solar PV → DC–DC Converter → DC Bus/Battery → DC Load

and

Solar PV/Battery → Inverter → LC Filter → AC Load

The battery acts as the main energy-storage element and balances the difference between available PV generation and load demand.

𝐏𝐕 𝐀𝐫𝐫𝐚𝐲 𝐒𝐩𝐞𝐜𝐢𝐟𝐢𝐜𝐚𝐭𝐢𝐨𝐧𝐬

The PV array is designed using multiple solar modules connected in series and parallel.

Parameter

Value

Single PV Module Power

193 W

Module Voltage

28.944 V

Module Current

6.68 A

Modules in Series per String

26

Parallel Strings

3

Approximate PV Array Rating

15 kW

Maximum PV Power at High Irradiance

≈15.08 kW

PV Array Operating Voltage

≈752.4 V

Reference Irradiance

1000 W/m²

The combination of 26 modules in series provides a high DC voltage, while the three parallel strings increase the total current and power capability of the PV array.

𝐁𝐚𝐭𝐭𝐞𝐫𝐲 𝐒𝐲𝐬𝐭𝐞𝐦

A battery bank is connected to the DC system for storing excess solar energy and supplying power when PV generation is insufficient.

Parameter

Value

Number of Batteries in Series

12

Individual Battery Voltage

42 V

Battery Bank Voltage

504 V

Rated Battery Capacity

200 Ah

Operating Modes

Charging / Discharging

The battery changes its operating condition automatically according to the difference between PV generation and load demand.

Battery operating conditions

  • PV power greater than load demand: Battery charges.

  • PV power lower than load demand: Battery discharges.

  • No PV generation: Battery supplies both AC and DC loads.

  • Increasing irradiance: Battery charging power can increase.

  • Decreasing irradiance: Battery gradually changes toward discharge operation.

This allows the standalone system to maintain power supply even when solar energy is unavailable.

𝐃𝐂–𝐃𝐂 𝐂𝐨𝐧𝐯𝐞𝐫𝐭𝐞𝐫

A buck DC–DC converter is used between the PV array and battery/DC bus.

Its main functions are:

  • Reduce the higher PV voltage to the battery-side voltage.

  • Regulate the energy transferred from the PV array.

  • Support maximum power extraction from the PV system.

  • Control battery charging.

  • Maintain controlled DC-side operation.

The PV array voltage can be around 750 V, while the battery operates at a lower voltage level. Therefore, the buck converter provides the required voltage conversion.

𝐂𝐡𝐚𝐫𝐠𝐞𝐫 𝐂𝐨𝐧𝐭𝐫𝐨𝐥𝐥𝐞𝐫

The charger controller uses measurements from the PV array.

Controller inputs

  • PV voltage

  • PV current

Controller output

  • Converter duty cycle

The generated duty cycle is supplied to the PWM generator, which produces the switching signal for the DC–DC converter.

The controller therefore determines how much solar energy is transferred toward the battery and DC system.

𝐏𝐕 𝐃𝐢𝐬𝐜𝐨𝐧𝐧𝐞𝐜𝐭 𝐂𝐨𝐧𝐭𝐫𝐨𝐥

A circuit breaker is included to connect or disconnect the PV array depending on its operating condition.

Condition

Threshold

PV Power

Less than 300 W

PV Voltage

Less than 50 V

Action

PV disconnected

When PV voltage and power become very low, the PV section is disconnected from the system.

This represents conditions such as:

  • Night-time operation

  • Very low solar irradiation

  • Insufficient PV generation

During these periods, the battery supplies the connected loads.

𝐃𝐂 𝐋𝐨𝐚𝐝

The DC bus can directly supply different DC appliances without requiring an inverter.

Typical examples include:

  • LED downlights

  • LED panel lights

  • Gate lights

  • DC lighting systems

  • Other low-voltage or DC-powered equipment

The model monitors:

  • DC load voltage

  • DC load current

  • DC load power

This provides a clear understanding of how the DC load behaves during varying PV and battery operating conditions.

𝐒𝐢𝐧𝐠𝐥𝐞-𝐏𝐡𝐚𝐬𝐞 𝐈𝐧𝐯𝐞𝐫𝐭𝐞𝐫

The inverter converts the DC energy supplied by the PV/battery system into AC power for household or standalone AC loads.

The simulated inverter section includes:

  • Single-phase inverter

  • LC output filter

  • Voltage measurement

  • Current measurement

  • Closed-loop inverter controller

  • PWM signal generation

The LC filter improves the quality of the inverter output by reducing switching-frequency components and producing a smoother AC waveform.

𝐀𝐂 𝐋𝐨𝐚𝐝𝐬

The standalone inverter can supply different AC loads such as:

  • Washing machine

  • Refrigerator

  • Ceiling fan

  • Air conditioner

  • Television

  • Water pump

  • Water heater

  • Water purifier

  • Rice cooker

  • Blender

  • Iron box

  • Microwave oven

  • CCTV equipment

The simulation monitors the AC load continuously to verify proper voltage and current regulation.

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

The inverter uses a closed-loop voltage and current control structure.

Voltage control loop

The AC load voltage is measured and processed by the controller.

The controller performs the required signal transformation and compares the measured voltage with the reference voltage.

The voltage error is processed through a PI controller to generate the required current reference.

Current control loop

The inverter current is measured and compared with the generated current reference.

The resulting current error is processed by another controller.

The controller generates the required modulation signal for the PWM generator.

The PWM pulses then control the inverter switches.

Main control sequence

Load Voltage Measurement → Voltage Control → Current Reference → Current Control → PWM Generation → Inverter Switching

This arrangement helps maintain a stable sinusoidal output voltage for the connected AC load.

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

The system operation can be understood in four important operating stages.

1. Low or Zero Solar Irradiance

When solar irradiation is very low:

  • PV generation becomes nearly zero.

  • PV array can be disconnected.

  • Battery enters discharge mode.

  • Battery supplies the DC load.

  • Battery also supplies the inverter.

  • Inverter supplies the AC load.

2. Increasing Solar Irradiance

As irradiance increases:

  • PV current increases.

  • PV power increases.

  • PV begins supplying the loads.

  • Battery discharge reduces.

  • Battery can gradually enter charging mode.

3. High Solar Generation

When PV generation exceeds load demand:

  • PV supplies AC and DC loads.

  • Excess solar power charges the battery.

  • Battery power changes according to the available surplus power.

4. Decreasing Solar Irradiance

When solar irradiation falls:

  • PV power decreases.

  • Battery charging reduces.

  • Battery changes from charging to discharging.

  • Battery compensates for the shortage in PV power.

This demonstrates the natural power-sharing behaviour required in a standalone PV-battery system.

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

The solar irradiance input is deliberately varied during the simulation instead of keeping it constant.

This helps reproduce changing environmental conditions and allows the user to observe:

  • Changes in PV voltage

  • Changes in PV current

  • Changes in PV power

  • Battery charging

  • Battery discharging

  • Battery SOC variation

  • AC-load performance

  • DC-load performance

The varying irradiance profile makes the simulation more useful for studying system behaviour under practical solar-power fluctuations.

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

Several electrical quantities are monitored during the simulation.

PV measurements

Quantity

Observation

PV Voltage

Changes with PV operating condition

PV Current

Increases with available solar energy

PV Power

Follows irradiance variation

Maximum Power

Approximately 15 kW

Battery measurements

Quantity

Observation

Battery Voltage

Remains near the battery operating range

Battery Current

Changes according to charging/discharging

Battery Power

Responds to PV-load power balance

Battery SOC

Varies according to energy exchange

AC-load measurements

Quantity

Observation

AC Voltage

Sinusoidal

AC Current

Sinusoidal under the simulated load

AC Load Power

Maintained according to load demand

RMS Voltage

Monitored

RMS Current

Monitored

DC-load measurements

Quantity

Observation

DC Load Voltage

Maintained by DC system

DC Load Current

Depends on connected load

DC Load Power

Continuously monitored

𝐁𝐚𝐭𝐭𝐞𝐫𝐲 𝐂𝐡𝐚𝐫𝐠𝐢𝐧𝐠 𝐚𝐧𝐝 𝐃𝐢𝐬𝐜𝐡𝐚𝐫𝐠𝐢𝐧𝐠 𝐁𝐞𝐡𝐚𝐯𝐢𝐨𝐮𝐫

One of the most important results of this model is the relationship between PV power and battery power.

PV Condition

Battery Condition

PV = 0 or very low

Discharging

PV increasing

Discharge power reduces

PV sufficient for load

Battery power approaches balance

PV higher than load

Charging

PV starts decreasing

Charging reduces

PV becomes insufficient

Discharging

Therefore, the battery automatically supports the power deficit and absorbs surplus solar energy.

𝐊𝐞𝐲 𝐅𝐞𝐚𝐭𝐮𝐫𝐞𝐬

  • 15 kW standalone solar PV system

  • PV and battery hybrid power supply

  • Variable solar irradiance input

  • Around 15.08 kW PV generation under high irradiance

  • PV voltage and current monitoring

  • Buck DC–DC converter

  • PWM-based charger control

  • PV low-power disconnect logic

  • 200 Ah battery storage

  • Battery charging and discharging operation

  • Battery SOC monitoring

  • Independent DC load connection

  • Single-phase inverter

  • LC output filter

  • Closed-loop voltage control

  • Closed-loop current control

  • AC voltage and current measurement

  • RMS voltage and current monitoring

  • AC and DC load power measurement

  • Completely off-grid operation

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

This MATLAB/Simulink model can be useful for studying:

  • Standalone solar power systems

  • Residential off-grid PV systems

  • Rural electrification

  • Solar-powered homes

  • Battery-supported renewable systems

  • PV charger control

  • Solar energy storage systems

  • Inverter control techniques

  • DC and AC hybrid load supply

  • Renewable energy laboratory studies

  • Microgrid control concepts

  • PV power management

  • Battery energy-management fundamentals

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

This simulation provides a clear way to understand the interaction between solar generation, battery storage, power converters, and electrical loads.

Students can observe how PV generation changes with irradiance and how the battery responds automatically.

Researchers can study converter and inverter control behaviour under changing operating conditions.

Engineers can use the system structure to understand the basic design principles of standalone renewable-energy systems supplying both DC and AC loads.

𝐂𝐨𝐧𝐜𝐥𝐮𝐬𝐢𝐨𝐧

The MATLAB Simulation of 15 kW OFF grid PV battery System provides a complete standalone renewable-energy simulation containing a solar PV array, battery storage, DC–DC converter, DC load, single-phase inverter, AC load, and closed-loop controllers.

The PV array produces approximately 15 kW under suitable irradiance conditions. When sufficient solar power is available, the PV system supplies the loads and charges the battery. When PV generation decreases or becomes unavailable, the battery automatically supplies the required power.

The simulation also demonstrates PV disconnection under low-generation conditions, battery SOC behaviour, inverter voltage/current control, and simultaneous AC and DC load operation.

Overall, the model provides a practical MATLAB/Simulink platform for understanding off-grid solar PV generation, battery energy storage, converter control, inverter operation, and renewable power sharing.


Comments


bottom of page