- You can use the PV Array block (available at Simscape / Electrical / Specialized Power Systems / Sources) to simulate the PV cells in Simulink. The parameters of the block can be changed to the desired value to meet the power rating.
- To maximize the power generated from PV, a MPPT (Maximum Power Point Tracking) method like P&O (Perturb and Observe) can be implemented.
- Use the Battery block (available at Simscape / Electrical / Specialized Power Systems / Sources) to simulate the battery part in your model. Change various parameters like "Nominal voltage (V)","Rated capacity (Ah)","Initial state-of-charge(%)" etc to meet the desired characteristics of the battery model.
- To integrate the battery, you can implement a bidirectional converter or use the block Bidirectional DC-DC Converter (available at Simscape / Electrical / Semiconductors & Converters / Converters) in cascade with the battery to feed or absorb power to the load.
- Build a logic involving the "SOC" of the battery to decide whether to charge or discharge it.
- Provide PWM pulses to the switches of the converter according to the desired logic.
- PV Array block: https://www.mathworks.com/help/sps/powersys/ref/pvarray.html
- Battery block: https://www.mathworks.com/help/sps/powersys/ref/battery.html
- MPPT technique: https://www.mathworks.com/solutions/electrification/mppt-algorithm.html