# Tutorials

## Electronics Fundamentals: Capacitor C and Inductor L

last updated: 15/12/18

### Introduction

Song of this chapter: "The capacitor song" (teacherhaggis on youtube (there's also an inductor song :))

The three elementary linear electronic components are the resistor R, the Capacitor C and Inductor L. Circuits with only linear electronic components are called linear circuits. Their characteristic is that for a sinusoidal input voltage of frequency f, any output of the circuit is also sinusoidal with frequency f. Linear circuits are easier to understand and analyze (they obey the superposition principle) than non-linear circuits.

In the next chapter we will meet two important nonlinear electronic components, the diode and the transistor.

The capacitor uses an electric field and the inductor a magnetic field.

### Capacitor (condenser) (wiki) Source: Graphic Eric Schrader under Creative Commons Attribution-ShareAlike 2.0 Generic license(CC BY-SA 2.0).

A capacitor is a passive two-terminal component storing electrical energy in an electric field.

Physically, a capacitor is made of two conductors separated by an insulator referred to as a dielectric. This can also be seen in his symbol.

Symbol of a capacitor, a polarized capacitor and a variable capacitor:     For polarized capacitors, the American symbol has a curved plate for the negative side.

###### "Just do it" C1:
• Build a circuit with an LED (including series resistor) parallel to a capacitor of 3300µF (16V) and parallel to a voltmeter. Pay attention the capacitor is polarized! The negative side is marked on the housing. Connect the circuit through a switch to a voltage source of 5 V. Draw the circuit.
• Switch the voltage source on and off and describe what happens.

#### Capacitance `C`(wiki)

As a resistor has a resistance, the capacitor has a capacitance `C` (C is used as symbol for the capacitance and also as name for a capacitor). Capacitance is the ability to store charge (electrons).

You know the effect of a capacitor from real world. When you touch the door of a car, you get a slight electric shock. You car is a capacitor. One conductor is the car itself, the tires are the insulator and earth is the second conductor. By friction the car can be charged (acquire a surplus of electrons) to some thousand volt, and when you (a resistance ;)) touch the car a minimal current can flow.

Capacitance exists everywhere, but is mostly very small. The capacitor is a component designed to add specific capacitance to a circuit and can have very high values.

A parallel-plate capacitor, consisting of two conductive plates insulated from each other (see symbol) is a good model to analyze capacitance. One can verify that the capacitance is nearly proportional to the surface area of the conductor plates `A` and inversely proportional to the separation distance between the plates `d`. A third factor is a the permittivity `ɛ = ɛ0·ɛr` of the insulating (dielectric) material. A part of the permittivity is the relative permittivity `ɛr`, a material property. `ɛ0` is the vacuum permittivity an baseline physical constant: `ɛ0 = 8.854187817·10−12 F/m`.

The capacitance of a parallel plated capacitor can be calculated with :

`C = ɛ·A/d = ɛ0·ɛr·A/d`

The symbol for the capacitance is C (not to confound with the unit of the charge Q, the Coulomb C), the SI derived unit is the farad F.

A capacitor of 1 farad, if charged with 1 coulomb of electrical charge, has a potential difference of 1 volt between its plates. `1F = 1C/1V = 1A·1s/1V = As/V`.

This gives us another formula for the capacitance:

`C = Q/U`

If we want to calculate the charge Q:

`Q = C·U`

###### "Just do it" C2:
• Calculate the capacitance of a parallel-plate capacitor with plates from 1 m² and a distance from 1 mm. The dielectric is air.
• Calculate the same capacitance if the dielectric is Mylar (produced in Contern/Luxembourg), and the distance can be reduced to 12 µm.
• Calculate how many electrons can be stored in the Mylar capacitor.
• Calculate the time needed to discharge the capacitor if you connect an LED drawing 2 mA.

Newer multi-meter often have the possibility to measure the capacitance.

###### "Just do it" C3:
• We have two different multi-meter from PeakTech and from Fluke. Read the chapters of measuring a capacitance in both manuals. Compare the ranges and the accuracy of both multi-meters.
• Measure the capacitance of 3 different capacitors and note the imprinted values and the measured values.

#### Breakdown voltage and temperature (wiki)

The voltage marked on a capacitor is the breakdown voltage of the used dielectric. The breakdown voltage is the maximum voltage that can be applied to an insulator before it conducts. When a current flows through an insulator this is called an electrical breakdown.

Even in (near) vacuum we get a breakdown voltage (vacuum arc). The breakdown voltage of air is about 3 kV/mm ; for Mylar its value is about 430 kV/mm. so the thinner the insulator, the lesser the voltage that can be applied to the capacitor. Normally one uses a capacitor with a marked voltage that is clearly higher than the marked voltage.

Polarized capacitors have a liquid inside and are aging quicker at high temperature. The maximum temperature is marked on the capacitor. For hotter environments it's better to use capacitors with 105° instead of the standard 85°.

Dangers

A breakdown in a (mostly polarized) capacitor can generate heat that causes the liquid to evaporate very quickly. As the capacitor is sealed, it can turn into an explosive. This is especially true for older capacitors. New capacitors have a special designed top that allows them to vent instead of bursting violently. Defective capacitors have a swollen top.

Capacitors may retain a charge long after power is removed from a circuit!! This charge can cause fatal shocks. When you open a seemingly innocuous camera with flash unit, the flash unit has a capacitor which may contain over 15J of energy and be charged to over 300 volts!! So always discharge capacitors before working on a circuit.

#### Charging and discharging

Charging a capacitor means accumulating a charge on its conductors. The formula `Q = C·U` shows that `U~Q`. The voltage is increasing while charging and we are moving charge (electrons) onto one of the capacitors conductors. This is a current, and we can control with the help of a resistor how quickly the charge moves to the capacitor’s conductor.

Here is the typical circuit to charge and discharge a capacitor: The capacitor charges through the resistor (switch to VCC). When it the switch connects to ground, the capacitor discharges through the resistor.

###### "Just do it" C4:
• Build the circuit on your breadboard and charge and discharge the capacitor (you can move the end of a wire instead of using a switch). Note your observations and your conclusions.
• Change the resistor to 100 Ω. Note again your observations and your conclusions.
• We want to see exactly at what rate the voltage gets higher and lower. This can be done with the oscilloscope (oscilloscope instead of the voltmeter). Test it.
• In circuits there is no human switching the capacitor :) but we use signals. We replace the power supply and switch with a frequency generator producing a square wave of 50 Hz. The square wave replaces our switch. To get a steady image we change the value of the capacitor to 100 nF and the value of the resistor to 10 kΩ. Build and draw the circuit.
• Get a steady image on the oscilloscope of 1 period (maximum amplitude) and document it. How long does the capacitor need to charge and discharge?

#### RC time constant (wiki)

The charging and discharging follows an exponential curve. The formulas are for charging:

`u(t) = U(1-e(-t/τ))`

and for discharging:

`u(t) = U(e(-t/τ))`

When using different capacitors and resistors we see that the time of charging and discharging changes. By multiplying the value of the resistor with the value of the capacitor we get a time!! Let's look at the units:

`F·Ω = (As/V)·Ω = (s/Ω)·Ω = s`
This time is called RC time constant, `τ` (tau). As shown the unit is seconds.

`τ = R·C`

The RC time constant is the time required to charge a capacitor, through a resistor, from 0 V to 63 % of the value of an applied DC voltage, or to discharge the capacitor through the same resistor to 37 % of its initial charge voltage. This can be calculated with the above formulas.

The time of 2τ charges a capacitor to 85 %, and `5τ` to 100 %.

To charge or discharge a capacitor we need the time of `5τ` or 5·R·C

Measuring current with an oscilloscope

Whats about the current? The only way to see a current is to measure the voltage with an oscilloscope on a resistor in the circuit. Fortunately we have already a resistor in our circuit, so we don't need to add a shunt. The ground of the 2 oscilloscope channels are connected together! Also most grounds of oscilloscopes are connected to the housing and to earth of the power cord. The same is true for the ground of the generator. So it is here not possible to use the oscilloscope like a voltmeter in parallel to the resistor, because we will have a short circuit witch can be pretty dangerous when measuring in circuits working with mains voltage (230 V). !! If you use an oscilloscope all grounds have to be connected together !!

###### "Just do it" C5:
• Connect the oscilloscope as shown in the second image. Measure the voltage on the resistance by subtracting both potentials (math function on the oscilloscope). Document the measurement (screenshot).
• Calculate the peak current.
• Why does the current get negative?

#### Combining capacitors

As seen above, the bigger the surface area of the conductors, the higher the capacitance. If we connect capacitors in parallel, the conductors are combined and we are getting a larger effective surface area. The capacitance gets bigger by connecting capacitors in parallel. With the formula of the capacitance we can show, that the total capacitance is equal to the sum of the individual capacitance's.

When we connect capacitors in series, we are effectively combining the thicknesses of their insulators. A bigger thickness results in a lower capacitance!With the formula of the capacitance we can show, that the total capacitance is the reciprocal of the sum of the reciprocals of the individual capacitance's.

In a parallel circuit of capacitors:

• the voltage is the same for all of the elements.
• the total capacitance is equal to the sum of the individual capacitance's:
C = C1+C2+C3+....
• the total capacitance is bigger than any of the individual capacitance's.
• for two capacitors with identical values the total capacitance is the double of the value of one capacitor.

In a parallel circuit of capacitors the total capacitance is equal to the sum of the individual capacitance's. In a series circuit of capacitors:

• the current is the same for all of the elements.
• the total capacitance is the reciprocal of the sum of the reciprocals of the individual capacitance's:
C = 1/(1/C1+1/C2+1/C3+...).
• the total capacitance is always less than the value of the smallest capacitor.
• for two capacitors with identical values the total capacitance is the half of the value of one capacitor.

In a series circuit of capacitors capacitance is the reciprocal of the sum of the reciprocals of the individual capacitance's. #### Low-pass filter (LPF) (wiki)

The circuit we used to charge and discharge a capacitor (RC in series) is called an RC low-pass filter. Let's see why.

###### "Just do it" C6:
• Use the circuit from the previous "Just do it" exercise. Now change the frequency from 50 Hz to higher and lower frequencies and watch the voltage and current on the capacitor. Note your conclusions.
• Do the same with a sine wave instead a square wave. Note your conclusions.
##### Ideal filters

Filters are named according to the frequency range of signals that passes through them. The ideal amplitude response characteristics of the four basic filter types is shown in the following image: We distinguish active filters (containing amplifying devices) and passive filters. The RC-filter is a passive filter with two passive components. The output signal has a smaller amplitude than its corresponding input signal, so the passive RC-filters attenuate the signal (gain less than one).

##### Cutoff frequency (wiki)

A passive low-pass filter is a combination of capacitance, inductance or resistance. The goal is to get a high attenuation above a specified frequency and little or no attenuation below that frequency. The specified frequency at which the transition occurs is called the cutoff frequency `fc`.

The cutoff frequency of a low-pass filter is the frequency at which the power output has fallen to one half the pass-band power. This is the case when the output voltage drops to `0.707` (70.7 %) of the input voltage (when the voltage drops to 1/√2 = 0.707 on a resistance (load connected to Uout), Ohm's law says that also the current drops to 0.707: `P' = 0.707U·0.707I = 0.5P`). This frequency is also called the `3 dB point` (see half-power point).

To calculate the cutoff frequency of our RC low-pass we can use the RC time constant, `τ`.

`τ = RC = 1/(2πfc)`

`fc = 1/(2πτ) = 1/(2πRC)`

Example for an RC low-pass filter with C = 2.2 µF and R = 22 Ω:
fc = 1/(2π·2.2·10-6F·22Ω) = 3.29kHz. ###### "Just do it" C7:
• Get the curve Uout/Uin = f(f) of of the RC low-pass filter (C = 100 nF and R = 10 kΩ) by measuring 10 different reasonable points with the oscilloscope (Upeak). One of the points should be 0.707. Use an calc or excel table to draw the diagram with a logarithmic x axis (including sub ticks).
• Calculate the cutoff frequency and add it to the diagram.
• Draw the same diagram with double logarithmic axis. Note your observations.
• Exchange R and C and do the same work as in the three points above. Note always your conclusions.

### Applications

The capacitor has the ability to pass an AC voltage but to block DC voltage. This is very useful, especially in the world of analogue and audio electronics. Often 100nF capacitors are used on the power lines in a circuit to bypass (shunting) high frequency noise to ground (bypass capacitors). Large capacitors on power lines near regulators are used to smooth slower changes, and to deliver high currents for a short time. Capacitors in combination with resistors are often the basis for timing and oscillator circuits (changing time constant). Capacitors in combination with resistors and inductors are used as filters (see above).

###### "Just do it" C8:
• To repeat and consolidate this chapter, read the article about the capacitance in the HackSpace Magazine (free pdf download) number 10 (page 74-79).

Next we will see a new component, that is similar but almost the opposite of a capacitor.

### Inductor (wiki)

An inductor, (coil) is a passive two-terminal component storing electrical energy in an magnetic field when electric current flows through it.

Physically, an inductor is made of an insulated wire wound into a coil around a core.

Symbol of an inductor, an inductor with magnetic core and a variable inductor with magnetic core:     ###### "Just do it" L1:
• Read the articles about the inductance in the HackSpace Magazine number 11 (page 78-83).