Electronic – arduino – When wiring a circuit with a capacitor why does the electricity go to the capacitor first instead of bypassing it

arduinocapacitorledpower

I am relatively new to electronics and only dabbled in high school with very simple circuits but I was doing an led project with neopixels and they wanted a capacitor on the positive and negative rails to stop an inrush of current to prevent damaging the first pixel.

"When using a DC power supply, or an especially large battery, we recommend adding a large capacitor (1000 µF, 6.3V or higher) across the + and – terminals. This prevents the initial onrush of current from damaging the pixels. See the photo on the next page for an example."

The circuit above kind of shows what I mean, how come the electrons don't flow past the capacitor and too the led or is that a wrong assumption and electrons do flow past the capacitor and the capacitor just takes some of the energy?

If the electricity has to charge the capacitor first than what is stopping the current going past the capacitor.

I hope I worded that well. I apologise if I am not getting my point across.

Best Answer

The circuit above kind of shows what I mean, how come the electrons don't flow past the capacitor and too the led or is that a wrong assumption and electrons do flow past the capacitor and the capacitor just takes some of the energy?

When the capacitor is discharged, the voltage across it is 0 V. If there is some resistive load in parallel, then no current will flow through the resistive load because the voltage across it is 0 V.

Only after current flows through the capacitor will its voltage increase. As its voltage increases, some of the current will start to be diverted through the resistive load.

Once the capacitor voltage increases to near the battery's emf, the battery won't be able to increase the voltage across the capacitor any more, and current will stop flowing through the capacitor. At this point just about all of the battery's output current will flow through the load.