This paper presents a comprehensive exploration of an integrated Buck-Boost converter and Sliding Mode Control (SMC) Maximum Power Point Tracking (MPPT) system for optimizing photovoltaic energy conversion. The study focuses on enhancing solar energy extraction efficiency, regulating output currents, and ensuring effective battery utilization. Through a systematic analysis of converter component sizing and operational modes, the paper delves into the intricacies of the Buck-Boost converter. The unique contribution lies in the innovative integration of SMC with the traditional Perturb and Observe (P&O) algorithm, providing robust and adaptive MPPT under varying environmental conditions. Additionally, the paper introduces a battery management system with three distinct modes, namely, Charging, Direct, and Discharging, offering intelligent control over critical scenarios. Simulation results underscore the robustness of the proposed system under diverse conditions, demonstrating its effectiveness in managing power distribution based on battery charge levels, even in scenarios of insufficient solar power. Overall, this research significantly contributes to advancing the understanding of PV/battery systems and offers a practical, sustainable solution for optimizing energy production, distribution, and storage, marking a substantial stride towards a more efficient and sustainable energy future.