After installing capacitor, circuit is not working anymore
The capacitor should be in parallel with the load, not in series with it. Like this:







simulate this circuit &ndash; Schematic created using CircuitLab