This paper proposes a control methodology based on Dynamic Surface Control (DSC) to manage the power flow of a photovoltaic (PV) battery system. In particular, due to the inner stochastic nature and intermittency of the solar production and in order to face the irradiance rapid changes, a robust and fast controller is needed. Dynamic Surface Control is a modified version of Backstepping control that avoids the explosion of terms, which is a typical drawback of the Backstepping control and furthermore it is not affected by the well known problem of chattering, which affects Sliding Mode controllers. Dynamic Surface Control is compared to the conventional Proportional-Integral-Derivative controller (PID). In particular, DSC shows better performances in terms of steady state chattering and transient response, as confirmed by the Integral of the Absolute value of Error (IAE), Integral of the Squared Error (ISE) and Integral of Time multiplied by the Absolute value of Error (ITAE) performance indexes.