![](/static/253f0d9b/assets/icons/icon-96x96.png)
![](https://beehaw.org/pictrs/image/c0e83ceb-b7e5-41b4-9b76-bfd152dd8d00.png)
In parallel. The capacitor smooths out the power and keeps it from spiking and shutting down over and over.
A resistor (in series) would help too but might restrict power too much to work well.
No harm in adding a capacitor.
On almost all my projects the weird behavior has been solved by throwing a cap in it
Deadly Premonition?