This document discusses using a sliding mode controller with maximum power point tracking (MPPT) for voltage control in a grid-connected photovoltaic power system. It begins with an introduction to solar energy and MPPT. It then describes the proposed system, which uses a sliding mode controller to balance power flow from the PV panel to the grid and load. Simulation results show the system maintaining constant voltage on both the grid and load sides while effectively utilizing the PV power. The design aims to improve on traditional voltage control mechanisms and improve system lifetime.