One of the most important parts in the energy feedback electronic loads is the grid-connected inverter, and its function is to feed the detected electrical energy back to the grid for saving energy. In this paper, the principe of the grid-connected inverter is elaborated, then the PI control and the LCL filter are selected, the mathematical model was set up and the feed forward control voltage was added that suppressing the influence on the system produced by the grid disturbance. The simulation was conducted with the help of Matlab/Simulink, from the simulation waveforms it can be seen that the system dynamic and static performance was good, meanwhile electrical energy can be fed to the grid in the way of unit power factor, eventually the feasibility and superiority of the designing scheme is confirmed.