**1. Introduction**

Nowadays, rooftop photovoltaic systems (PV) and building-integrated photovoltaic (BIPV) systems are becoming well known and commonly used. The growth of these installations is due to their environmental advantages in addition to their social and economic benefits. Indeed, since building electricity consumption accounts for a large proportion of a country's overall consumption, and tends to increase further for the coming years, local generation offers an ideal solution [1–4].

Regarding the obstruction of PV systems' fluctuating aspect, it can be derived in various ways. The integration of battery energy storage system (BESS) is considered as efficient and complementation solution, mainly for standalone microgrids [5]. Urban photovoltaic systems are usually connected to the distribution network, but the operation in standalone is also possible [6, 7].

In order to ameliorate the PV system efficiency, an adequate control strategy should be introduced. In the literature, several control techniques are developed: integral proportional regulators, resonant correctors, hysteresis correctors, sliding mode controls, predictive controls, and so on [8–11].

This chapter investigates the operation of PV system devoted to building application. It gives an overview of the control of all integrated power converters and then explains in details the control of the DC/AC power converter in both operation modes, namely, standalone mode and grid connected mode. For the grid connected mode, the control must ensure that the AC bus voltage remains within the acceptable range, and for standalone mode the DC/AC converter is controlled to inject generated PV power into the AC-link.

This chapter first outlines overall system description, followed by a review of each power converter control. A detailed mathematical study is dedicated to the DC/AC converter control in grid connected and autonomous modes. Simulation results and experimental validation are subsequently presented.
