Aiming at the problem of the grid connected and off grid switching control of grid connected inverters, an ac bus-voltage control method based on load impedance characteristics is proposed for single-phase photovoltaic grid-connected inverters with batteries in this paper. . Instead of reducing the distortion by lowering the loop gain, the new controller employs a digital FIR filter that samples the bus voltage at an integer multiple of the second harmonic frequency. The operating principle and modulation scheme are described. A closed loop control method is developed. . According to the traditional voltage and current double closed-loop control mode, the inverter management strategy for photovoltaic grid connection has insufficient anti-interference ability and slow response. This paper proposes a control strategy that applies adaptive-linear active disturbance. . In this work, we develop a new principle called the optimal distribution of power; this concept based on the creation of a bidirectional DC converter block with battery (BCB) to ensure high and stable DC voltage at the entrance of the PV inverter.