Abstract:The traditional two-way energy charge and discharge control system neglects the control of current inner loop and voltage outer loop, which leads to the unsatisfactory application effects. Therefore, a vehicle to grid (V2G) module based on internet of vehicle and a two-way energy charge and discharge control system are designed. Voltage fluctuation is controlled by two-way DC/DC converterto keep the current and voltage constant under charging and discharging conditions. Space voltage vector of the voltage and current double-closed-loop is used to control three-phase half-bridge voltage source PWM rectifier. The current inner loop and voltage outer loop are controlled by PI regulator, and the two-way flow of load current in a controlled state is used to realize the control of the two-way DC/DC converter, and finally realize the two-way flow of energy. The test results show that the voltage and current of the battery can be stable in 0.1 s, and the output voltage of the three-phase AC side and the single-phase AC side can be stable in 0.02 s and 0.12 s, respectively. The phase difference between voltage and current is 180°, the current waveform is good, and the current harmonics on AC side are effectively suppressed.