the solar panel is applied with the MPPT tracking using PWm control and the the Dc bus voltage is maintained at 5V through a buck converter as the solar panel used is of higher voltage than 5V. A battery storage is also equipped with the system and the battery is directly connected to the Dc bus through a bidirectional converter (synchronous buck converter) and the battery will charge when there is more voltage in the DC bus. if the Solar power is not available then the Dc bus voltage is provided by the battery. Although the primary importance given to the soalr panel, if there is good irradiation and the pv panel can provide enough energy to the DC bus then the battery will be in a idle state (neither discharging nor charging).
JISHA R KRISHNAN (2020). PV and Battery system (https://www.mathworks.com/matlabcentral/fileexchange/69064-pv-and-battery-system), MATLAB Central File Exchange. Retrieved .