%pip install ipympl==0.9.3
Requirement already satisfied: ipympl==0.9.3 in /usr/local/lib/python3.14/site-packages (0.9.3)
Requirement already satisfied: ipython<9 in /usr/local/lib/python3.14/site-packages (from ipympl==0.9.3) (8.39.0)
Requirement already satisfied: numpy in /usr/local/lib/python3.14/site-packages (from ipympl==0.9.3) (2.5.5)
Requirement already satisfied: ipython-genutils in /usr/local/lib/python3.14/site-packages (from ipympl==0.9.3) (0.2.0)
Requirement already satisfied: pillow in /usr/local/lib/python3.14/site-packages (from ipympl==0.9.3) (13.0.0)
Requirement already satisfied: traitlets<6 in /usr/local/lib/python3.14/site-packages (from ipympl==0.9.3) (5.16.1)
Requirement already satisfied: ipywidgets<9,>=7.6.0 in /usr/local/lib/python3.14/site-packages (from ipympl==0.9.3) (8.1.9)
Requirement already satisfied: matplotlib<4,>=3.4.0 in /usr/local/lib/python3.14/site-packages (from ipympl==0.9.3) (3.11.2)
Requirement already satisfied: decorator in /usr/local/lib/python3.14/site-packages (from ipython<9->ipympl==0.9.3) (5.3.1)
Requirement already satisfied: jedi>=0.16 in /usr/local/lib/python3.14/site-packages (from ipython<9->ipympl==0.9.3) (0.20.1)
Requirement already satisfied: matplotlib-inline in /usr/local/lib/python3.14/site-packages (from ipython<9->ipympl==0.9.3) (0.2.2)
Requirement already satisfied: pexpect>4.3 in /usr/local/lib/python3.14/site-packages (from ipython<9->ipympl==0.9.3) (4.9.0)
Requirement already satisfied: prompt_toolkit<3.1.0,>=3.0.41 in /usr/local/lib/python3.14/site-packages (from ipython<9->ipympl==0.9.3) (3.0.53)
Requirement already satisfied: pygments>=2.4.0 in /usr/local/lib/python3.14/site-packages (from ipython<9->ipympl==0.9.3) (2.21.0)
Requirement already satisfied: stack_data in /usr/local/lib/python3.14/site-packages (from ipython<9->ipympl==0.9.3) (0.6.3)
Requirement already satisfied: comm>=0.1.3 in /usr/local/lib/python3.14/site-packages (from ipywidgets<9,>=7.6.0->ipympl==0.9.3) (0.2.3)
Requirement already satisfied: widgetsnbextension~=4.0.16 in /usr/local/lib/python3.14/site-packages (from ipywidgets<9,>=7.6.0->ipympl==0.9.3) (4.0.16)
Requirement already satisfied: jupyterlab_widgets~=3.0.17 in /usr/local/lib/python3.14/site-packages (from ipywidgets<9,>=7.6.0->ipympl==0.9.3) (3.0.17)
Requirement already satisfied: contourpy>=1.0.1 in /usr/local/lib/python3.14/site-packages (from matplotlib<4,>=3.4.0->ipympl==0.9.3) (1.4.0)
Requirement already satisfied: cycler>=0.10 in /usr/local/lib/python3.14/site-packages (from matplotlib<4,>=3.4.0->ipympl==0.9.3) (0.12.1)
Requirement already satisfied: fonttools>=4.28.2 in /usr/local/lib/python3.14/site-packages (from matplotlib<4,>=3.4.0->ipympl==0.9.3) (4.68.0)
Requirement already satisfied: kiwisolver>=1.3.1 in /usr/local/lib/python3.14/site-packages (from matplotlib<4,>=3.4.0->ipympl==0.9.3) (1.5.1)
Requirement already satisfied: packaging>=20.0 in /usr/local/lib/python3.14/site-packages (from matplotlib<4,>=3.4.0->ipympl==0.9.3) (26.3)
Requirement already satisfied: pyparsing>=3 in /usr/local/lib/python3.14/site-packages (from matplotlib<4,>=3.4.0->ipympl==0.9.3) (3.3.3)
Requirement already satisfied: python-dateutil>=2.7 in /usr/local/lib/python3.14/site-packages (from matplotlib<4,>=3.4.0->ipympl==0.9.3) (4.0.0)
Requirement already satisfied: wcwidth>=0.1.4 in /usr/local/lib/python3.14/site-packages (from prompt_toolkit<3.1.0,>=3.0.41->ipython<9->ipympl==0.9.3) (0.9.4)
Requirement already satisfied: parso<0.9.0,>=0.8.7 in /usr/local/lib/python3.14/site-packages (from jedi>=0.16->ipython<9->ipympl==0.9.3) (0.8.7)
Requirement already satisfied: ptyprocess>=0.5 in /usr/local/lib/python3.14/site-packages (from pexpect>4.3->ipython<9->ipympl==0.9.3) (0.7.0)
Requirement already satisfied: tzdata in /usr/local/lib/python3.14/site-packages (from python-dateutil>=2.7->matplotlib<4,>=3.4.0->ipympl==0.9.3) (2026.6)
Requirement already satisfied: executing>=1.2.0 in /usr/local/lib/python3.14/site-packages (from stack_data->ipython<9->ipympl==0.9.3) (2.3.0)
Requirement already satisfied: asttokens>=2.1.0 in /usr/local/lib/python3.14/site-packages (from stack_data->ipython<9->ipympl==0.9.3) (3.0.2)
Requirement already satisfied: pure-eval in /usr/local/lib/python3.14/site-packages (from stack_data->ipython<9->ipympl==0.9.3) (0.2.4)
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager, possibly rendering your system unusable. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv. Use the --root-user-action option if you know what you are doing and want to suppress this warning.
[notice] A new release of pip is available: 26.2.2 -> 26.3
[notice] To update, run: pip install --upgrade pip
Note: you may need to restart the kernel to use updated packages.
import matplotlib
if not hasattr(matplotlib.RcParams, "_get"):
matplotlib.RcParams._get = dict.get
import numpy as np
import matplotlib.pyplot as plt
from scipy import signal
from ipywidgets import interact, FloatSlider, SelectionSlider
%matplotlib inline
%config InlineBackend.figure_formats = ['svg']
import matplotlib
if not hasattr(matplotlib.RcParams, "_get"):
matplotlib.RcParams._get = dict.get
4. Inductors and Resonances#
4.1. The Physics of Inductors#
This chapter assumes the prior knowledge of Electricty and Magnetism, specifically Maxwell’s equations.
4.1.1. Ampère-Maxwell law#
When a charge moves (=current) it creates a magnetic field, according to Ampère-Maxwell Law. When the charge does not move, there is no magnetic field. Ampère’s law covers the relationship between the magnetic flux density \(B\) and the current density \(J\) (in \(\frac{A}{m^2}\)). Maxwell’s addition is the right hand part of the equation, for a changing electric field:
The relation between magnetic flux density \(B\), magnetic field strength \(H\), and the magnetic flux \(\Phi\) is:
with absolute and relative permeabilities \(\mu_0\) and \(\mu_r\), and area \(A\). Similar to permittivity, \(\mu_0= 4 \pi 10^{-7} \frac{H}{m}\) is a natural constant, and \(\mu_r\) is material dependent and dimensionless (1 for vacuum, \( 2 \cdot 10^5\) for iron, 0 for superconductors)
For a straight wire with constant current \(I\), the magnetic flux density \(B\) at distance \(R\) is given by Biot-Savart’s law:
Fig. 4.1 The right-hand thumb rule works as follows: let your thumb point in the direction of the current, while grabbing the straight wire with the rest of your fingers. These fingers point in the same (circular) direction as \(B\)
Created by Jfmelero, under CC BY-SA 4.0, original link#
4.1.2. Faraday-Lenz’s law#
When a magnetic field changes, it creates a current. This is called electromagnetic induction:
When the magnetic field is static, there is no current induced.
In a coil, meaning a conductive thread with \(N\) turns, the (induced) emf is given by Faraday-Lenz’s law of induction:
Faraday contributed the absolute value of the induced current, Lenz’s law makes the induced emf opposite to the change in magnetic flux.
When looking at Lenz’s law, the self-induced emf increases with the number of turns, and with the change in magnetic field.
With self-induction \(L\), given by
The induced emf can be rewritten as the derivative of the current:
Fig. 4.2 When turning a right-handed screw in the direction of the current in a coil (so from + to -), you move that imaginary screw in the direction of the magnetic field \(B\).
Another approach is to align the fingers of your right hand with the current (from + to -) and then your thumb points at the direction of the magnetic field \(B\).
Author unknown, in public domain, original link#
4.1.2.1. Eddy current#
If you move a conductive material in a magnetic field, the magnetic field changes in that material, and therefore a current will be induced. Such current is called an Eddy current. Within the magnetic field, the current is going orthogonally to the movement of the plate and the magnetic field. The charges should come from somewhere, so after leaving the magnetic field, the electrons go around in circles (in order to pass the magnetic field again in straight lines). This is depicted in Fig. 4.3
Fig. 4.3 Imagine you keep the magnetic field static, and move a conductive metal plate through that field. Then, according to Faraday-Lenz law, the electrons in the plate feel a force, which results in currents inside the metal to go in circles: Eddy currents.
Created by Chetvorno, under CC0 1.0, original link#
Example 4.1 (Induction cooking)
The cooking plate contains coils, which are used to generate a magnetic field. When a suitable pan is used, the magnetic field generates eddy currents: electric currents within the material. This current in combination with the resistance of the pan leads to heat generation, which is considered very efficient, without heat dissipation between cooking plate and pan.
Fig. 4.4 You can heat up food by using a coil
Created by Rankin Kennedy, in public domain, original link#
4.1.3. Inductors parallel and in series#
When multiple inductors are placed in series, the current through each element should be equal. Due to the linear relationship (equation (4.7)) between emf or voltage and self-induction \(L\), and since the total voltage of components in series is the sum of the voltage of each component, the overall (self) inductance is the sum of the individual inductors, as long as there is no magnetic coupling between \(L_1\) and \(L_2\):
Note that inductions sum up in a similar way as resistances.
When multiple inductors are placed in parallel, they are summed up reciprocally, as long as there is no magnetic coupling between \(L_1\) and \(L_2\)::
This can be also understood from equation (4.6): current \(I\) depends reciprocally on self-induction \(L\). For parallel placement of components the overall current is the sum of all individual currents, and therefore \(L\) is the reciprocal sum of all individual self-inductions.
4.1.4. Mutual induction#
If current induces a magnetic field (equation (4.3)), and a changing magnetic field induces a current (equation (4.5)), then two neighboring coils will influence each other. This is given by mutual induction \(M\):
This principle is used within transformers, which are coupled through the same (often iron) core.
4.1.4.1. Transformer#
A transformer consists of a pair of inductors, now termed \({coil}_1\) and \({coil}_2\). They can be close by and connected through air, or they can be both surround the same metal. If the constant current through \({coil}_1\) is switched off, the magnetic field at \({coil}_2\) changes and a current in \({coil}_2\) is induced.
Fig. 4.5 A current through the first inductor induces a magnetic field, which will reach the second inductor and induces a current. This current depends on the change of the magnetic field, and therefore a transformer functions well for an AC current input.
Created by BillC, under CC BY- SA 3.0, original link#
The mutual inductance for a transformer is given by:
For an ideal transformer (without loss) the time-varying signal the relationship between the voltages of two coils is:
Due to the conservation of power, the increase or decrease of voltage goes hand in hand with a change in current:
4.1.4.2. Energy storage#
With \(P=U I\), power stored inside an inductor can be derived. Taking into account that \(P=\frac{dE}{dt}\), \(E\) being the energy, and using the relationshop between voltage, inductance and current, we obtain:
Integration over the current gives:
4.2. The Electronics of Inductors#
4.2.1. Single step and block wave in time-domain, measured over the inductor#
From equation (4.7) the time-dependent relationship of voltage \(U\) on current \(I\) is known. Without change in current there is no voltage.
For an inductor in series with a voltage supply and resistor, at switching on the supply initially there is no current (the inductor is opposing any change). Therefore all voltage is over the inductor, and none over the resistor.
Fig. 4.6 At t=0 the switch closes, a current will start, resulting in a magnetic field around/within inductor \(L\).#
Due to the change in voltage, a current will start, which will increase until a steady state is reached. At the steady state the current will not change anymore, hence there will be no voltage over the inductor, and all voltage will be over the resistor:
The relationship in time will depend again on an exponential:
Derivation of exponential behavior RL circuit
Combining equaiton (4.7) with Ohm’s law, results in a differential equation:
Which leads to:
Taking the integral on both sides gives
Then take the power of both sides, and take into account the start and end values, one obtains:
Fig. 4.7 Circuit with voltage source, resistor and inductor. At the start the supply outputs 0 V. At the moment the supply is switched on (to 1V) there is no current, so all voltage is over the inductor, which induces a current. Due to current through the resistor, there is a voltage over the resistor, hence the voltage over the inductor will decrease.#
When the supply switches off, the inductor will oppose the change. At that moment the inductor switches from being acted upon to the actor. Since the power supply is not giving voltage, the inductor ‘supplies’ the voltage and in order to keep the current direction the same, the voltage direction over the inductor is reversed (since it now has become a source), so the voltage over the inductor will become negative. From another viewpoint: the inductor opposes change, so it ‘wants’ to keep the current at the same level. But since there is no voltage supplied anymore, the current will decrease, so therefore the voltage over the inductor will increase (to eventually 0 V).
The corresponding discharging current becomes, upon turning the supply current off:
The voltage behaves oppositely, also with an exponential behavior, but with a more gradual transition:
At \(t=\tau=\frac{L}{R}\) the exponential changes with \(e^{-1}\). This \(\tau\) is a characteristic time for the circuit.
The phase depends on the frequency, and other characteristics of the circuit. For a low pass circuit, see Example 4.2, the phase is almost zero at very low frequencies, and -90 degrees for very high frequencies. Therefore, for these very high frequencies, If the current goes with a sine, then the voltage goes with -cosine. Or if the voltage goes with a sine, the current goes with a - cosine. This means that the current lags behind the voltage, as seen in Fig. 4.8.
<function __main__.plot_inductor_current_lag(L_mH=80.0)>
Fig. 4.8 interactive plot: Without a change in current there is no voltage, hence the voltage leads and the current lags in an inductor.#
4.2.2. Single step and block wave in time-domain, measured over the resistor#
When measuring the voltage over the resistor, the sum of the voltages over the resistor and inductor is equal to the supplied voltage. The voltage over the resistor is not able to follow fast changes (the step up and down), but will eventually reach a constant value. This is low-pass behavior, a step requires the summation of sines with higher order frequencies.
Vice versa, the voltage over the inductor is able to follow quick steps, but its steady state is always 0 V. This behavior is high-pass, the steady state with frequency 0 Hz will have 0 V amplitude, since low frequencies are not transmitted.
<function __main__.plot_rc_charge_discharge(tau=2.0)>
Fig. 4.9 interactive plot: The voltages over both the resistor and inductor in an LR circuit sum up to the supplied voltage. While one behaves as low-pass signal, the other one behaves as high pass signal.#
4.2.3. Complex impedance#
In the previous section the response to a sudden change, a step response, was covered. How would the response to an AC signal look like?
When using \(I(t)=I_0 e^{j \omega t}\), similar to the approach in the capacitors chapter, and combine it with equation (4.12), one obtains:
Then the impedance \(Z_L\), which is a complex value similar to the real resistance, becomes:
Let’s look at the complex behavior in the following example.
Example 4.2 (Low pass Circuit)
Amplitude of \(U_{out}\)
Consider the most basic RL circuit, with an AC source with amplitude \(U_0\) and frequency \(f_0\), and inductor \(L\) and resistor \(R\) in series.
Fig. 4.10 Low pass filter.#
Then the voltage over the resistor can be calculated in a similar way as for the voltage divider:
The transfer becomes:
Which behaves similar to a RC circuit, where one measures over the capacitor.
When using numerical values, with f=50 kHz, R=10k\(\Omega\), L=50 mH, the transfer is:
Phase of \(U_{out}\)
The phase can be derived from:
Assume:
Then you can derive that:
Which is consistent with:
When filling in the numbers for this circuit, you will find the following phase:
Visually the input and output signals look as follows:
<function __main__.plot_rl_lowpass(R_kOhm=10.0)>
Fig. 4.11 interactive plot: The input voltage \(U_{in}\) and output voltage \(U_R\) plotted versus time. Note that, similar to Fig. 3.8, the peak of \(U_{out}\) lags with respect to \(U_{in}\) .#
4.2.4. Filter in frequency domain#
The impedance of an inductor is frequency dependent, and therefore both the phase and the amplitude of the output voltage of an RL circuit depend on the frequency. Like with RC filters we look at the Bode plot of low and high pass filters, but as you might have noticed the order of components of LR and RC circuits is opposite.
4.2.4.1. Low pass filter#
Let’s evaluate the transfer at the extreme values of \(\omega\) for the RL circuit in Fig. 4.12. The extreme values are \(\omega \downarrow 0\) and \(\omega \uparrow \inf\).
Fig. 4.12 Low pass filter.#
A high transfer for low frequency signals, and low transfer for high frequency signals implies a low pass filter.
At \(\omega _{cut off} = \frac{L}{R}\) the transfer dropped to the \(\frac{1}{1+j}\), of which the absolute value is \(\frac {1}{\sqrt (2)}\). This is the point where two approximating lines intersect: at lower frequencies the amplitude versus frequency is constant, after the \(\omega _{cut off}\) the amplitude decreases with -20 dB/ decade or -6dB/ octave.
4.2.4.2. High pass filter#
Similar to a low pass filter, a high pass filter can be created by switching the order of the resistor and inductor in series.
Fig. 4.13 High pass filter.#
Then the transfer becomes:
which can be rewritten into:
Which then eventually leads to a Bode plot similar to Fig. 3.13. For \({\omega \uparrow \infty}\) the transfer (\(\frac{U_{out}}{U_{in}}\)) is equal to 1, for low frequencies the transfer is equal to zero, which is exactly the behavior of a high-pass filter.
4.2.5. RLC filters#
There are many ways of combining a resistor, capacitor and inductor in a circuit. Dependent on their arrangement you can make a low-pass or high-pass filter, but you can also make band filters, which either stops a band or are band-pass. We will first look at a resonant band-pass filter.
4.2.5.1. Harmonic oscillator band-pass#
When arranging a capacitor and inductor such that they can exchange energy, by placing them either in parallel or in series. In such circuit the energy is alternatingly stored as electrical energy in the capacitor and as magnetic energy in the inductor.
:class: grid grid-cols-2 gap-4 items-center
Fig. 4.14 Resonance between capacitor and inductor. Their voltages are having opposite phase, and their energy is alternatingly stored in capacitor or inductor.
The animation is Created by Chetvorno, under CC0 1.0, original link#
The frequency at which the resonance occurs is, very originally, called the resonance frequency. When we look at the overall impedance of a series RLC, it becomes evident what happens at resonance frequency:
Then there is a certain \(\omega_{resonance}\) at which \(Z=R\), for:
At this particular frequency the complex impedances of the capacitor and inductor cancel out each other. The phase of the output signal is therefore in sync (has the same phase) as the input signal.
Let’s look at the following circuit, with measuring the voltage over the resistor in a series RLC circuit.
Fig. 4.15 RLC Circuit where resonance between the capacitor and the inductor occurs. The output voltage is measured over the resistor.#
The voltage over the resistor is maximal for the resonance frequency, and will decrease for both higher and lower frequencies. This is due to the transfer being restricted by the inductance \(L\) at high frequencies and the capacitance \(C\) at low frequencies:
Dependent on the frequency, the output of a blockwave through this band-pass filter can look like a sine, or like something more low-or high-passed signals.
<function __main__.plot_rlc_bandpass(f_kHz)>
Fig. 4.16 interactive plot: The frequency characteristics for an output voltage over the resistor in a RLC series circuit, as in Fig. 4.15 with R=200 \(\Omega\), C=5nF, L=2 mH. At certain frequencies, around and on the resonance frequency, the output voltages are plotted versus time.#
Note that in the above Bode plot, one can see that at resonance, the phase is 0. At a decade above and below the resonance frequency (so at 0.1 or 10x \(f_{res}\)) the phase is approximately + or - 90 \(^o\).
At resonance the voltage over the either inductor or capacitor might be amplified, if the voltage over, or the current times the impedance, like \(\omega_{res} \frac{L}{R} \) is larger than 1.
While the resonance frequency for all series RLC only depends on L&C, the bandwidth will depend on the resistance. The derivation can be found at resonance frequency derivation.
4.2.5.2. Different RLC arrangements#
Placing three components all in series and measure over the resistor is just one of many options. In this section we will look at some different arrangements.
Fig. 4.17 For different arrangements of the resistor, capacitor and inductor, the behavior of the filter will vary: a) high-pass filter, b) low-pass filter, c) band-stop filter#
For an all series arrangement and measuring over the inductor one finds:
At low frequencies the transfer is 0, at high frequencies the \(\omega L\) parts in the numerator and denominator lead to a transfer of (almost 1). Hence such circuit is a high pass filter.
An opposite, low-pass, behavior can be found when one measures over the capacitor in an all series arrangement:
A band-stop can be found for when placing the inductor & capacitor parallel, and in series with the resistor, an then measure over the resistor:
and then the transfer becomes:
At resonance frequency, where \(\omega= \sqrt{\frac{1}{LC}}\) the transfer becomes:
At both high and low (extreme) values of the frequency the transfer is 1. Hence this filter is a band stop filter.
4.2.5.3. Bandpass filter from combined high and low pass filter#
It is possible to combine a low-pass and high-pass RC (or RL) filter. This can be done in two ways, start with the high pass or with the low pass filter. There will be a frequency with maximum transfer, that frequency lies between the cut-off frequencies of the individual parts. Whether the max transfer is close to 1 (or 0 dB), depends on which cut-off frequency is higher, as can be seen from the figure below.
But can this be called a resonance frequency or not?
Fig. 4.18 Dependent on whether the cut-off of the high pass filter is lower, equal, or higher than that of the low pass filter, the pass band, denoted as the area between both graphs, varies in height and width. When \(f_{-3dB, HP} << \)f_{-3dB, HP}$, the pass band will be largest.#
For resonance you need to exchange energy, the capacitors alone are not capable of such exchange. Also with the combined filters, there is always attenuation, and not amplification of the signal. Signals are not generated, but just shaped.
4.3. Hands-on with Inductors#
4.3.1. Magnetic saturation#
The relationship between the magnetic flux density \(B\) and the magnetic field strength \(H\) seems linear, through equation (4.2). However, the permeability \(\mu_r\) depends on the field strength \(H\) itself. Two regimes can be distinguished, the ferromagnetic regime below the saturation level and the paramagnetic regime, where \(B\) increases much slower with \(H\). The saturation level depends on the type of materials, iron has a saturation around 2 T, while ferrites saturate at an order below (0.2 T).
Fig. 4.19 The permeability is not constant, but varies at different magnetic field strengths.
Created by Zureks, in public domain, original link#
The saturation level of a material leads to a maximum flux density that can be achieved. Once saturation is reached, the magnetic flux density \(B\) only minimally changes with field strength. At that point, magnetic components such as transformers no longer behave linearly. Since iron saturates at a higher flux density than ferrite, iron cores can generally support higher flux densities than ferrite ones.
4.3.2. Types of inductors#
4.3.2.1. Variable core materials#
Inductors are employed with no core, a fixed core, or a variable core. The permeability of the inductor’s core can vary from very low to very high. The permeability and therefore inductance, in a variable core inductor can even be adjusted by positioning the variable core more or less into the coil.
4.3.2.2. Shape of core#
The earlier picture of a transformer showed a square core. Magnetic flux tends to follow the path of the highest permeability, namely the core. However, since the permeability of real materials is finite, some of the flux leaks into the surrounding air rather than staying in the core. As a result, not all magnetic flux produced by coil 1 reaches coil 2.
When using a toroid (donut-shaped) core, the magnetic flux is more effectively guided and stayslargely confined to the core material. Hence, the magnetic coupling between the two coils is stronger.
4.3.2.3. Unwanted coupling#
Another welcome effect of the toroid core, and better containment of the magnetic field within the core is reduction of unwanted coupling. Unwanted coupling happens when the magnetic field outside the core influences nearby components.
4.3.3. Non-ideal behavior#
4.3.3.1. Series resistor#
An inductor is made from a wire wound around a core. Such wire has a certain resistance, which scales with the length, and scales inversely with the cross-section. Therefore an actual inductor will consist of its theoretical inductance with a resistor in series.
While at high frequencies the complex impedance of the (ideal) inductor be determining the overall impedance, at low frequencies the series resistor will have most impact.
4.3.3.2. Self-resonance#
Besides a non-ideal series resistor, there will also be a capacitance between neighboring winding layers of the capacitor, as well as between the incoming and outgoing leads of the inductor. This leads to the following replacement circuit, with the contribution of R&C almost negligible (in the order of \(\Omega 's\) and fF)
Fig. 4.20 A non-ideal inductor has a series resistor, and a parallel capacitance#
4.4. Inductors in action#
4.4.1. Loudspeaker#
A microphone receives sounds, which let a receiving membrane vibrate. Attached to this membrane is an inductor, which moves over a static magnetic core. Upon the reception of sound, the inductor moves, which leads to a change in magnetic field and therefore a current is induced.
Fig. 4.21 For a dynamic microphone, vibrations are moving an inductor in a static magnetic field, inducing an AC signal
Created by Arne Nordmann (norro), under SA 3.0, original link#
The broadcasting of sound goes in a similar way: an AC signal is applied to an inductor, which therefore starts moving within a static magnetic field.
4.4.2. Radio#
Before radio signals became digital, there were two types of radio signals: amplitude modulated (AM: 500-1600 kHz), and frequency modulated (FM 88-108 MHz), see the figure below.
Fig. 4.22 For Amplitude modulation, the information is hidden in the amplitude of a signal with constant frequency. For frequency modulation the amplitude is constant and the frequency varies.
Created by Berserkerus, under CC BY-SA 2.5, original link#
How to make these (de)modulations might appear in later sections, but for now let’s focus on how to listen to the correct frequency and how to turn FM into AM signals.
Upon reception one wants to specifically record a certain wavelength, or certain wavelength band. The best way to tune the receptor is by selecting the right resonance wavelength of an RLC circuit, especially for tightly packed frequency bands of AM radio. For FM radio wider bands are used, so then the RLC bandwidth must be wide enough. In old radios, with a tunable inductor one could select the specific frequency to listen to. FM can be turned into AM by a high pass filter (lower frequencies are then turned into lower amplitudes). The next step in demodulation requires a non-linear limiter, which uses rectifying diodes (see later chapter).
4.4.3. Detecting bicycles or cars before a traffic light#
Have you ever wondered how a bicycle or car traffic light knows you are there? Just before the traffic light an induction loop is placed below the surface. This can be done passive or active. For a passive system, the output voltage of the induction loop is measured, each change in magnetic field due to a passing vehicle results in an output current.
The active solution relies on an RLC resonance circuit, which is driven at resonance frequency. When a vehicle moves over the induction loop, the magnetich field and therefore the inductance and also the resonance frequency of the RLC circuit changes. The output voltage will decrease as the input frequency is no longer the resonance frequency.
4.4.4. MRI#
Magnetic Resonance Imaging (MRI) is a medical imaging technique which uses very high magnetic fields (> 1 T) to excite hydrogen atoms. The electron spin of these atoms aligns with the magnetic field upon excitation, and when the field is switched off the spins relax and send out the previously absorbed energy. These small signals are recorded and turned into images.
Fig. 4.23 The first MRI scanner, with in the middle a coil to generate the magnetic field needed for scanning.
Created by AndyGaskell, under CC BY-SA 4.0, original link#
The basic coils are the RF coils for receiving the signals, and the gradient coils (in x,y,z direction) to generate the magnetic field. For more details, see a practical guide on RF coils.
4.4.4.1. Safety#
Since the magnetic fields are very high, (ferro)magnetic materials should not be in the room when an MRI machine is turned on. Such objects will become a projectile in such high magnetic field.
Depending on the type of implants, some are also not allowed. Before the year 2000, pacemakers were considered a health risk during the scan, because of the possible damaging effect the magnetic fields might have on the pacemaker, like its batteries. Newer devices have been tested with MRI, and labelled MRI conditional, so they can go into a MRI scanner.
4.4.5. Switched mode power supply#
The European power lines deliver a 50 Hz AC signal. This frequency can be increased by adding a remotely controlled switch (often a transistor, see a later chapter) which opens and closes at much higher frequency, like kHz range.
A higher frequency is useful, since then the energy transfer happens much more often per time unit, so each bit of energy transfer can be smaller at high frequency. Smaller bits of energy means a lower flux, or a smaller core. Although energy losses increase with frequency, using ferrite cores instead of steel ones, helps to limit the negative energy loss at higher frequencies.
At lower frequencies iron is used, which has a higher saturation level. Due to the higher currents, the inductors (and transformers) for these low frequencies require a larger volume.
4.4.6. Relay#
A relay is a remotely controlled switch. The control circuit and the switch circuit interact mechanically, but not electrically. The control circuit contains an inductor, and when a voltage is applied a current runs through the inductor and a magnetic field is generated. This magnetic field will attract a magnet, which is connected to the switch. When the control is off, the magnet is not attracted and the switch it off. When the control is on, the magnet is attracted and the switch is on.
Fig. 4.24 A relay is kind of a remote switch, which is controlled by applying a voltage over an inductor
Created by Digigalos, under CC BY-SA 3.0, original link#
4.4.7. Residual current circuit breaker (RCCB)#
In a RCCB the difference between the current flowing into a device (through a live wire) is compared to the current flowing back (through the neutral wire). As current through a wire induces a magnetic field, two wires with equal value but opposite direction will result in only a very small magnetic field. When these two wires are inside a transformer coil, a secondary sensing coil will generate a small current, when the two wires do not have equal currents. If this current exceeds a threshold, then a relay interrupts both wires.
Also a test button is included; by pushing the switch an alternative path (around the connected device and transformer), such that deliberately an imbalance between the two currents is created to check the relay is working.
Fig. 4.25 A Residual current circuit breaker (RCCB) interupts both the live and neutral line, when the current difference between them is too high. Created by Elchriso, under CC BY-SA 3.0, original link#
4.5. Inductor exercises#
Exercise 4.1 (Combine inductors)
For the following situations, assume the inductors are not magnetically coupled:
a) What is the resulting inductance for the following combination of inductors?
b) What is the resulting impedance, depending on radial frequency \(\omega\)?
Fig. 4.26 Two ways of combining two inductors of 5.0 and 7.0 mH: in series and in parallel#
Tip
Placing complex impedances in series and parallel is similar to placing resistances parallel
Numeric answer a)
series: 12 mH, parallel: 2.9 mH
Numeric answer b)
\(Z_{series}\): j \(\omega\) 12 mH, \(Z_{parallel}\): j \(\omega\) 2.9 mH
Exercise 4.2 (Combine an inductor with a resistor or capacitor)
What is the resulting impedance, depending on radial frequency \(\omega\), for the following four combinations of components?
Fig. 4.27 Two ways of combining either an inductor (7.0 mH) with a resistor (5.0 k\(\Omega\)) or capacitor (3.0 nF) in series and in parallel#
Tip
Placing complex impedances in series and parallel is similar to placing resistances parallel
Answer a)
\(5 k\Omega + j \omega 7 mH \)
Answer b)
\(j \omega 7 mH - \frac{1}{j \omega 3 nF}\)
Answer c)
\(\frac{1}{Z}= \frac{1}{R}+ j \omega C\)
\(Z= \frac{R}{1+ j \omega RC} = \frac{5 k\Omega}{1+ j \omega 35 H\Omega}\)
Answer d)
\(\frac{1}{Z}= \frac{1}{j \omega L}+ j \omega C\)
\( Z= \frac{j \omega 7 mH }{1 - {\omega}^{2} 21p FH}\)
Exercise 4.3 (RLC filter: low pass or high pass)
For the following four circuits, derive whether the filter behaves as low-pass or high-pass?
Fig. 4.28 A filter with either a resistor and inductor (R&L) or capacitor and inductor (L&C). For each case the order of components is varied, so for example in a) you measure over the inductor, while in c) you measure over the resistor.#
Tip
First derive \(\frac{U_{out}}{U_{in}}\). Then look at what happens at the extremes, meaning the frequency \(f\) or radial frequency \(\omega\) going towards 0 or \(\infty\).
Numeric answer a)
high-pass
Numeric answer b)
high pass
Numeric answer c)
low pass
Numeric answer d)
low pass
Exercise 4.4 (RLC filter: -3 dB frequency)
a) For the following two circuits with resistor and inductor, derive the -3 dB frequency, dependent on R,L,C.
b) For one of these circuits, derive the transferred amplitude at this -3 dB frequency. (= fill the -3 dB frequency in the transfer function \(\frac{U_{out}}{U_{in}}\), and check whether you get the expected value )
Fig. 4.29 A filter with a resistor and inductor (R&L). For each case the order of components is varied.#
Tip
At the -3 dB frequency the real and imaginary part of the transfer \(\frac{U_{out}}{U_{in}}\) are equal to each other
Numeric answer a)
\(f_{-3dB}=\frac{R}{2 \pi L}\)
Numeric answer b)
at \(f_{-3dB}\), the amplitude is \(\frac{1}{\sqrt{2}}\).
Exercise 4.5 (RL: step response)
Draw the \(U_{out}\) for the given \(U_{in}\) through this RL filter.
Fig. 4.30 A filter with a resistor and inductor (R&L). You measure \(U_{out}\) over the inductor, for \(U_{in}\) being a step function (\(U_{in}\) is high between t=2 and 10 \(\mu\) s.#
Tip
First derive whether this is low or high pass Second derive the time-constant, and compare it to the duration of the step.
Numeric answer filter+time-constant
high-pass, time constant = L/R = 0.5 \(\mu\) s
Numeric answer b)
High-pass follows sudden changes: high spike up at t=2 \(\mu\)s, high spike with negative amplitude at t =10 \(\mu\)s. It is an exponential decay, going back to zero in about 5x the time constant.
Exercise 4.6 (RL filter: amplitude and phase)
For the following filter derive the amplitude and phase of \(\frac{U_{out}}{U_{in}}\), at f= 5 M Hz.
Fig. 4.31 A filter with a resistor of 8 k \(\Omega\) and an inductor of 200 \(\mu\) H. You measure \(U_{out}\) over the inductor.#
Tip
First derive \(\frac{U_{out}}{U_{in}}\), Second rewrite this or split this into amplitude and phase; first get rid of the complex part in the denominator, then take the absolute value for the phase.
\(\frac{j \omega L}{R+j \omega L} = \frac{j \omega L}{R+j \omega L} \frac{R -j \omega L}{R-j \omega L} = \frac{R j \omega L + \omega^2 RL}{R^2 + \omega^2 RL} \) …
Tip
When you have the complex transfer, the absolute value is equal to the sqrt of (the real part squared plus the imaginary part squared). The phase is the angle between the imaginary and real part.
This you can calculate by hand, or you can use Python. When using Python, you might want to use np.pi, 1j, np.abs, np.angle.
Numeric answer
Don’t forget \(\omega\)=2 \(\pi \) f. Transfer= 0.62 Phase = 0.91 rad, or 52 degrees.
Exercise 4.7 (RL filter: bode plot)
For the following filter make a Bode plot (amplitude and phase).
Fig. 4.32 A filter with a resistor of 8 k \(\Omega\) and an inductor of 200 \(\mu\) H. You measure \(U_{out}\) over the resistor.#
Tip
First derive \(\frac{U_{out}}{U_{in}}\),
Derive the -3 dB frequency
Figure out the amplitude and phase at the extremes (determine whether it is low or high pass)
Draw the Bode plot
answer amplitude plot
Low pass filter, \(f_{-3dB}=\frac{R}{2 \pi L}\)
Bode plot: amplitude versus frequency in log-log plot. Horizontal line for f< \(f_{-3dB}\).
Diagonal line at -6dB/octave for f> \(f_{-3dB}\).
answer phase plot
Low pass filter, \(f_{-3dB}=\frac{R}{2 \pi L}\)
\(\frac{U_{out}}{U_{in}} = \frac{R}{R+j \omega L}= \frac{R^2-j \omega LR}{R^2+\omega^2 L^2}\)
Phase = 0 degrees for f< \(\frac{f_{-3dB}}{10}\), then the imaginary part of the transfer is negligible.
Phase = -45 degrees for f= \(f_{-3dB}\)
Phase =-90 degrees for f> \(10 f_{-3dB}\)
Can you see how the minus sign follows from \(\frac{U_{out}}{U_{in}}\)?
hint: the angle is the arctan of the imaginary value divided by the real value.
Exercise 4.8 (RL in series: Complex addition)
For a resistor of 15 k \(\Omega\) and inductor of 330 mH in series at frequency 5 kHz, draw the addition of the two orthogonal complex numbers, and deduce the absolute impedance.
Tip
you draw the real value along the x-axis, and the imaginary value along the y-axis.
Numeric answer
After drawing these two orthogonally, you see you can use Pythagoras theorem. Absolute impedance = 18 k\(\Omega\)
Exercise 4.9 (transformer)
Someone made two transformers, see the image below. One has a metallic core, the other one not, and you will compare their magnetic coupling.
a) Derive the relation between \(U_{out}\) and \(U_{in}\) for A.
b) Explain the difference between the two transformers.
c) Explain why \(I_{out}\) is lower than \(I_{in}\)
d) Explain whether the transformers work for both AC and DC signals.
Fig. 4.33 A transformer with N_1=3 and N_2=6 turns. The coils are wound around a conductive material in A, B is in air.#
Tip
a&b) Will there be similar coupling between coils between A & B? Why?
c) Think of a conservation law, and its implications on the current in both coils.
d) What is the relation between magnetic field and current?
answer a
In case of perfect coupling: \(U_{out}=2 U_{in} (2=\frac{N_2}{N_1} \))
answer b
For A, the ferromagnetic core guides the magnetic flux from the first coil through the second. Therefore, a large portion of the magnetic flux from coil 1 will reach coil 2. B has no guiding medium, so the magnetic field spreads out in the surrounding air. Some of the magnetic flux from coil 1 will reach coil 2, but not all.
answer c
Conservation of energy, so \(P=IU\) stays constant. Due to the difference in number of wounds, the voltage out is twice the voltage in. Due to power conservation, the current out will be half the current in .
answer d
The transformer will only work for AC (alternating) signals, due to the dependency of the voltage on the change of the magnetic field. With a DC signal, the magnetic field changes rapidly at the start, but becomes constant soon after. This implied there is no changing magnetic flux, and no voltage is induced at coil2. A transformer will not work for constant (DC) voltages.
Exercise 4.10 (RLC filter type)
For the following filter, derive: a) the ratio between \(U_{out}\) and \(U_{in}\) b) the type of filter
Fig. 4.34 A filter with L&C parallel and in series with R. \(U_{out}\) is measured over R.#
Tip
Look at this circuit as voltage divider with complex impedances.
Tip
\(\frac{1}{Z_{LC}} = \frac{1}{j \omega L} + j \omega C \)
Try to rewrite this in the form:
\(Z_{LC} = \frac {j \omega L} {.............}\)
answer a)
\(T= \frac{U_{out}}{U_{in}}= \frac{R}{R+\frac{j \omega L}{1-\omega^2 LC}}\)
answer b
at \(\omega\) close to 0 or \(\infty\) T=1
at \(\omega = sqrt{\frac{1}{LC}}\) T=0
so this is a band stop
Exercise 4.11 (Design a bandpass RLC filter)
Design a bandpass RLC filter, by arranging these three components in series and/or parallel
Tip
just try an arrangement like the previous assignment, and see what type of filter comes out. Then adapt as needed.
Think about whether (and why) you want L&C apart or together.
answer a)
From the previous exercise, still keep L&C parallel, and in series with R. Measure over L&C instead of R.
There can be another arrangement as well, can you suggest a second one?
Exercise 4.12 (Design a bandpass RLC filter for a radio)
With the already correct arrangement of components (RLC) you have to design a filter to selectively listen to 101.3 MHz. You have an inductor of 0.5 \(\mu\) H available.
a) Which values of R&C will you use, next to the 0.5 \(\mu\) H?
b) Describe qualitatively how to improve the quality of filtering your radio signal?
Tip
Do you need all components for a resonance?
answer a)
\(\omega = 2 \pi f = sqrt{\frac{1}{LC}}\)
C= 494 nF
R does not matter for the resonance frequency.
answer b)
While R does not matter for the resonance frequency, it does matter for the bandwidth. Although you do not have to be able to derive the exact value, you could put the transfer function in Python, and observe changes in the bandwidth (or value at \(\frac{f_{res}}{2}\)).
When R increases, the bandwidth decreases.