The design of the cotrolled circuit of the solar charging and discharging is the target of this practice. The solar charger converts solar energy into electric energy by use of solar panels, Then the battery is charged through the boost control circuit, voltage-stabilizing circuit and charging circuit. It terminates charging automatically when the charging process is completed. I2V of storage battery DC into 220V AC. ICL8038 DC input voltage into sine wave, and then put Rectifier precision sine wave into buns, After SG3524 SPWM wave generated, IR2110 driver circuit through the final SPWM pulse transformers are used to wave generated by the filter for AC. Experiment results indicate that system output waveform and running performance are much better, and design requirements are satisfied. It is suit for the family user to use.