Charge Control for a Battery Combined with a Solar PV System

Compares electrical demand and generation data to control when battery charges.

You are now following this Submission

Random number generators output electrical consumption vs. PV generation (to be replaced by actual data).
When solar PV generation is greater than the demand, the ideal switch is closed allowing the battery to charge and store the theoretical excess PV generation. Otherwise (demand is greater) the switch opens to stop charging the battery. The battery will stop charging as it approaches 100 % SOC.

Cite As

Dylan Bardy (2026). Charge Control for a Battery Combined with a Solar PV System (https://www.mathworks.com/matlabcentral/fileexchange/50432-charge-control-for-a-battery-combined-with-a-solar-pv-system), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Communities
Version Published Release Notes Action
1.1.0.0

Title changed to "Charge Control for a Battery Combined with a Solar PV System".

1.0.0.0