In the first part of this paper we present the command MPPT (Maximum Power Point Tracking) that we have programmed to extract the maximum power at the terminal of the photovoltaic generators in spite of the change of climate (Temperature and Illumination). While the second part shows the injection of solar energy to the electrical grid with a well-adapted system with the filters that we have made to improve in order to minimize the harmonics to the electrical grid. In fact, solar photovoltaic energy offers us the possibility of producing a green, clean and non-polluting energy, this energy is built by converting the light’s rays coming from the sun into an electric current through the photovoltaic effect principle. The electricity produced is of a continuous nature. In case we want to inject this current into the distribution grid, it must be converted into a sinusoidal current of 50 Hz, this transformation will be done through a converter called: “Inverter”. The latter must have an adequate command and judiciously chosen to have a compatible voltage with the grid in the minimum of harmonic. For that, we did this work with intelligent commands to have a well-adapted system for injecting this clean energy to the electrical grid.