Using Capacitors in Electronics.
Electronics uses three main properties of a capacitor:
Depending on the circuit, one of these properties may be more pronounced than the others.
Probably the best-known property of a capacitor is energy storage. And indeed, in the simplest case a capacitor can be thought of as a kind of storage tank, for example a water barrel, in which we're interested in two parameters: height and volume between two marks (let's divide the barrel with marks parallel to its base, with the distance between two marks being the same for all barrels). The height of the barrel determines the maximum water level in it, and the volume is the amount of water that fits between two marks.

If we draw an analogy with a capacitor, the height of the barrel determines the maximum voltage to which the capacitor can be charged; you can't charge it to a higher voltage, just as water would start spilling out of the barrel, except the capacitor will simply fail, or even explode. The volume between two marks is called capacitance in a capacitor; it determines how much charge corresponds to 1 volt, and in this case the distance between the barrel's marks represents a potential difference of 1 volt.
Let's consider a capacitor with a capacitance of 1uF and a maximum voltage of 25V: for each volt there is 1uF, and the capacitor can be charged up to 25 volts. If we charge this capacitor to 5V, it will store 5 times 1uF, or 5uC (microcoulombs, Q = C*U). If we take a 100V 1uF capacitor and charge it to 5V, it will also store 5 times 1uF. From this we can conclude that a low-voltage capacitor can easily be replaced with a higher-voltage capacitor of the same capacitance.
How can this be used?
Imagine a chip that must deliver a large current at certain moments, while over the same period it receives several times less current. For normal operation, it would be good for such a chip to have a barrel of charge close at hand, and that role is played by a capacitor, which in this case is called a bypass or decoupling capacitor. It's called decoupling because it decouples the chip from the common power supply, so to speak, making it somewhat independent of the circuit's common power supply. What does independent of the circuit's common power supply mean?
Imagine a board with two chips, one with a bypass capacitor and one without. If we briefly cut the power to the circuit, the chip without a bypass capacitor will stop working immediately, while the chip with a bypass capacitor will keep working for a while until the capacitor discharges; that's where its relative independence shows.
The capacitance of a bypass capacitor is usually 100nF, and it should be placed as close as possible to the chip's pin.

The second application of the barrel is smoothing ripple.
Imagine a barrel into which water flows in and out as shown in the picture below.

When the water level in the barrel rises above the drain hole, no matter what splashing happens in the barrel, none of it will be visible at the output; such a capacitor is called a smoothing capacitor, and it can be found after a diode bridge.

The capacitance of a smoothing capacitor is a separate topic; if it's too small, the smoothing won't be complete, as in the figure.

A rough rule of thumb for choosing such a capacitor is 1000uF per 1A. A decoupling capacitor also smooths ripple, but its main task is to provide an energy reserve.
Thinking of a capacitor as a barrel, it's very easy to understand parallel connection of capacitors: if two capacitors are connected in parallel, their total capacitance equals the sum of their capacitances.
The next use of a capacitor is related to its ability to pass alternating current and block direct current.
On the internet you can find a picture like this
it helps you remember this property of a capacitor. It can come in handy when working with audio, where only the AC component of the signal, shown in blue in the picture, is useful.

Such a capacitor is called a coupling capacitor, because it separates the AC and DC components.
Another interesting property of a capacitor is its charging rate. Just as water can't fill a barrel instantly, a capacitor can't charge instantly. The rate at which the barrel fills is limited by the diameter of the pipe supplying the water, and the rate at which a capacitor charges is limited by the resistance connected to one of its plates.

This combination of a capacitor and a resistor is called an RC network; the time it takes for the capacitor to charge to 63% of the applied voltage is easy to calculate using the formula
T is the charging time constant of the RC network, measured in seconds.
The graph also shows that the time for the capacitor to charge to 95% of the applied voltage is 3T. The capacitor discharges according to the same law.
How can this be applied in practice?
Suppose we need to turn on a motor one second after a signal arrives. For this we take a 1MOhm resistor and a 1uF capacitor, connect them as shown in the picture above and apply 10V. The time constant of this circuit is one second, which means that after one second the voltage on the capacitor will reach 63% of 10V, i.e. 6.3V; once we detect this voltage on the capacitor, we can safely turn on the motor.
And finally, about connecting capacitors in series; in this case it's convenient to think of a capacitor as a toilet cistern. Imagine two cisterns of different sizes connected in series, with water being supplied to them. The mechanisms that shut off the water supply in these cisterns are linked. When the smaller cistern fills up, it shuts off the water supply to the other one, and we end up with one cistern full and the other not. The same thing happens when two capacitors are connected in series: when the capacitor with the smaller capacitance is charged, current stops flowing and the capacitor with the larger capacitance won't charge any further. That makes sense: when the smaller capacitor is charged, there is no potential difference, and as a result no current flows.
That's all.
- the ability to store charge
- the ability to pass alternating current and block direct current
- the rate at which a capacitor charges can be calculated
Depending on the circuit, one of these properties may be more pronounced than the others.
Probably the best-known property of a capacitor is energy storage. And indeed, in the simplest case a capacitor can be thought of as a kind of storage tank, for example a water barrel, in which we're interested in two parameters: height and volume between two marks (let's divide the barrel with marks parallel to its base, with the distance between two marks being the same for all barrels). The height of the barrel determines the maximum water level in it, and the volume is the amount of water that fits between two marks.

If we draw an analogy with a capacitor, the height of the barrel determines the maximum voltage to which the capacitor can be charged; you can't charge it to a higher voltage, just as water would start spilling out of the barrel, except the capacitor will simply fail, or even explode. The volume between two marks is called capacitance in a capacitor; it determines how much charge corresponds to 1 volt, and in this case the distance between the barrel's marks represents a potential difference of 1 volt.
Let's consider a capacitor with a capacitance of 1uF and a maximum voltage of 25V: for each volt there is 1uF, and the capacitor can be charged up to 25 volts. If we charge this capacitor to 5V, it will store 5 times 1uF, or 5uC (microcoulombs, Q = C*U). If we take a 100V 1uF capacitor and charge it to 5V, it will also store 5 times 1uF. From this we can conclude that a low-voltage capacitor can easily be replaced with a higher-voltage capacitor of the same capacitance.
How can this be used?
Imagine a chip that must deliver a large current at certain moments, while over the same period it receives several times less current. For normal operation, it would be good for such a chip to have a barrel of charge close at hand, and that role is played by a capacitor, which in this case is called a bypass or decoupling capacitor. It's called decoupling because it decouples the chip from the common power supply, so to speak, making it somewhat independent of the circuit's common power supply. What does independent of the circuit's common power supply mean?
Imagine a board with two chips, one with a bypass capacitor and one without. If we briefly cut the power to the circuit, the chip without a bypass capacitor will stop working immediately, while the chip with a bypass capacitor will keep working for a while until the capacitor discharges; that's where its relative independence shows.
The capacitance of a bypass capacitor is usually 100nF, and it should be placed as close as possible to the chip's pin.

The second application of the barrel is smoothing ripple.
Imagine a barrel into which water flows in and out as shown in the picture below.

When the water level in the barrel rises above the drain hole, no matter what splashing happens in the barrel, none of it will be visible at the output; such a capacitor is called a smoothing capacitor, and it can be found after a diode bridge.

The capacitance of a smoothing capacitor is a separate topic; if it's too small, the smoothing won't be complete, as in the figure.

A rough rule of thumb for choosing such a capacitor is 1000uF per 1A. A decoupling capacitor also smooths ripple, but its main task is to provide an energy reserve.
Thinking of a capacitor as a barrel, it's very easy to understand parallel connection of capacitors: if two capacitors are connected in parallel, their total capacitance equals the sum of their capacitances.
The next use of a capacitor is related to its ability to pass alternating current and block direct current.
On the internet you can find a picture like this
it helps you remember this property of a capacitor. It can come in handy when working with audio, where only the AC component of the signal, shown in blue in the picture, is useful.

Such a capacitor is called a coupling capacitor, because it separates the AC and DC components.
Another interesting property of a capacitor is its charging rate. Just as water can't fill a barrel instantly, a capacitor can't charge instantly. The rate at which the barrel fills is limited by the diameter of the pipe supplying the water, and the rate at which a capacitor charges is limited by the resistance connected to one of its plates.

This combination of a capacitor and a resistor is called an RC network; the time it takes for the capacitor to charge to 63% of the applied voltage is easy to calculate using the formula
T = R*C
T is the charging time constant of the RC network, measured in seconds.
The graph also shows that the time for the capacitor to charge to 95% of the applied voltage is 3T. The capacitor discharges according to the same law.
How can this be applied in practice?
Suppose we need to turn on a motor one second after a signal arrives. For this we take a 1MOhm resistor and a 1uF capacitor, connect them as shown in the picture above and apply 10V. The time constant of this circuit is one second, which means that after one second the voltage on the capacitor will reach 63% of 10V, i.e. 6.3V; once we detect this voltage on the capacitor, we can safely turn on the motor.
And finally, about connecting capacitors in series; in this case it's convenient to think of a capacitor as a toilet cistern. Imagine two cisterns of different sizes connected in series, with water being supplied to them. The mechanisms that shut off the water supply in these cisterns are linked. When the smaller cistern fills up, it shuts off the water supply to the other one, and we end up with one cistern full and the other not. The same thing happens when two capacitors are connected in series: when the capacitor with the smaller capacitance is charged, current stops flowing and the capacitor with the larger capacitance won't charge any further. That makes sense: when the smaller capacitor is charged, there is no potential difference, and as a result no current flows.
That's all.

