Energy storage charging pile connected to capacitor