Capacitor charging and discharging current demonstration