← All lessons
Physics · Electronics

Electronics

A mobile phone charger, the circuit board of a radio and the controller of an automatic gate are built from a few parts that keep coming back: resistors, capacitors, inductors, diodes, transistors, operational amplifiers and a handful of integrated circuits. We will build each of these circuits on a simulated bench and measure them as in a laboratory, with the multimeter and the oscilloscope, starting from the laws of the Electric Circuits lesson and ending with a power supply and an oscillator built around the 555.

  1. 1Resistors
  2. 2AC and DC
  3. 3RC circuits
  4. 4RLC circuits
  5. 5Diodes
  6. 6Zener diode
  7. 7Bipolar transistors
  8. 8MOSFET
  9. 9Power supplies
  10. 10Operational amplifiers
  11. 11The 555
  12. ✓Challenges

The bench

Every simulation on this page uses the same bench. The circuit diagram is solved by a program that applies Kirchhoff's laws at every node, diodes and transistors included, and the instruments read the values it computes, the same ones that drive the drawing.

Tapping a node, marked by a named dot, shows its voltage relative to earth. The multimeter measures steady voltage (V DC) and alternating voltage (V AC, as an RMS value) with the probes on two nodes, current (A DC and A AC) by going in series with the chosen branch, and resistance (Ω) with the supplies switched off. The probes can be dragged onto a node, or tapped and then moved with a second tap, which may be easier on a phone.

The oscilloscope has two channels, CH1 in yellow and CH2 in blue, both measured relative to earth. We set the volts per division, the time per division, DC or AC coupling and the trigger, which holds the picture still, and the peak-to-peak, RMS and frequency readings appear below the screen.

STEP 1

How do voltage and current share out?

Almost every electronic circuit has, somewhere on the board, a few resistors that set voltages and currents for the rest of it. The tools that solve these pieces come back in every later step, so it is worth going over them carefully.

In series, the same current flows through every resistor, and the supply voltage is shared in proportion to the resistances. This is the potential divider. In parallel, all the resistors have the same voltage and the current is shared in inverse proportion to the resistances, in the current divider.

When the circuit does not reduce to series and parallel, we turn to Kirchhoff's laws. The current law says that the current arriving at a node equals the current leaving it, because charge does not pile up in the wire, and the voltage law says that the voltages around any closed path add up to zero, since we return to the same potential.

A divider seems to deliver a fixed voltage, yet that voltage drops when we connect a load in parallel with the lower resistor. As a rule of thumb, the drop tends to stay small when the load is about ten times larger than that resistor, which we can check on the bench.

The Wheatstone bridge compares two dividers connected to the same supply. When their ratios are equal, the two midpoints sit at the same potential and the meter between them reads zero, so we can find an unknown resistance from three known ones without relying on the accuracy of the meter.

\(R_s = R_1 + R_2\)\(\dfrac{1}{R_p} = \dfrac{1}{R_1} + \dfrac{1}{R_2}\)\(V_{\text{out}} = V\,\dfrac{R_2}{R_1 + R_2}\)\(I_1 = I\,\dfrac{R_2}{R_1 + R_2}\)\(\sum I_{\text{in}} = \sum I_{\text{out}}\)\(\sum V_{\text{loop}} = 0\)\(R_x = R_3\,\dfrac{R_2}{R_1}\)In electronics we write \(V\) for voltage (the p.d.), rather than the \(U\) of the Electric Circuits lesson, which is also what many British books use. In the current divider, \(I_1\) is the part of the current \(I\) that flows through \(R_1\). The supplies in the simulation are ideal and the resistors obey Ohm's law without changing with temperature; the resistors on the controls follow the E12 series of preferred values, except the bridge's \(R_3\), which is adjustable in steps of 5 Ω.

Let's discuss

  • In the divider, measure the voltage at B with the load disconnected and then connected. How much does it drop with a \(1\ \text{k}\Omega\) load, and how much with \(100\ \text{k}\Omega\)?
  • Choose A DC and put the ammeter in \(R_1\), in \(R_2\) and in the load, one at a time. Does the current arriving at B match the sum of the currents leaving it?
  • In 'Two loops', measure the voltage across \(R_1\) and across \(R_3\) and add them to that of \(E_1\), with the right signs. What is left over?
  • On the bridge, adjust \(R_3\) until the multimeter between C and D reads almost zero, and work out \(R_x\). Then change \(R_x\) and repeat without looking at its value.
  • Open \(R_2\) with the fault button and measure again. What reading would give away an open resistor on a circuit board?
Supply current
Voltage at B
Resistance seen by the supply
Current in R₂
Exercises for step 1 10 questions · 4 basic · 4 intermediate · 2 challenge
  1. basic

    Three resistors, of \(1\ \text{k}\Omega\), \(2.2\ \text{k}\Omega\) and \(4.7\ \text{k}\Omega\), are in series across a 12 V supply. What are the equivalent resistance and the current in the circuit?

    Show solution
    In series the resistances add, \(R_s = 1 + 2.2 + 4.7 = 7.9\ \text{k}\Omega\).
    The current is the same in all three, \(I = \dfrac{12}{7900}\).
    \(R_s = 7.9\ \text{k}\Omega\) and \(I \approx 1.52\ \text{mA}\)
  2. basic

    What is the equivalent resistance of a \(1\ \text{k}\Omega\) resistor in parallel with a \(4.7\ \text{k}\Omega\) one? Is it above or below \(1\ \text{k}\Omega\)?

    Show solution
    For two resistors in parallel, \(R_p = \dfrac{R_1 R_2}{R_1 + R_2} = \dfrac{1000 \cdot 4700}{5700}\).
    The parallel combination offers the current one more path, so it ends up below the smaller of the two.
    \(R_p \approx 825\ \Omega\), below \(1\ \text{k}\Omega\)
  3. basic

    A potential divider has \(R_1 = 10\ \text{k}\Omega\) at the top and \(R_2 = 4.7\ \text{k}\Omega\) at the bottom, connected to a 9 V battery. What is the output voltage, across \(R_2\), with no load?

    Show solution
    The voltage is shared in proportion to the resistances, \(V_{\text{out}} = 9 \cdot \dfrac{4.7}{10 + 4.7}\).
    \(V_{\text{out}} \approx 2.88\ \text{V}\)
  4. basic

    To measure the current in a resistor on a circuit board, how should the multimeter be connected? And why do we not measure the resistance of a component with the circuit switched on?

    Show solution
    The current has to flow through the meter, so we open the branch and connect the multimeter in series, in mode A. Connected in parallel in this mode, it would make a short circuit, because its internal resistance is very small.
    In mode \(\Omega\), the multimeter injects a small current and reads the voltage it produces. With the circuit switched on, the currents from the supplies add to the meter's own and the reading means nothing, and the meter itself may be damaged.
    Current is measured in series, and resistance with the circuit switched off and, ideally, with one end of the component disconnected.
  5. intermediate

    A current of 30 mA arrives at two resistors in parallel, of \(330\ \Omega\) and \(470\ \Omega\). How much flows through each one?

    Show solution
    In the current divider, each branch receives the fraction set by the resistance of the other branch, \(I_{330} = 30 \cdot \dfrac{470}{330 + 470}\) and \(I_{470} = 30 \cdot \dfrac{330}{800}\).
    We check that \(17.625 + 12.375 = 30\), as Kirchhoff's current law requires.
    \(I_{330} \approx 17.6\ \text{mA}\) and \(I_{470} \approx 12.4\ \text{mA}\)
  6. intermediate

    A divider made of two \(10\ \text{k}\Omega\) resistors is fed with 12 V. What is the output with no load, with a \(10\ \text{k}\Omega\) load and with a \(100\ \text{k}\Omega\) load?

    Show solution
    With no load, the output is half the input, 6 V.
    With \(10\ \text{k}\Omega\), the lower resistor is in parallel with the load and the pair is worth \(5\ \text{k}\Omega\), so \(V = 12 \cdot \dfrac{5}{10 + 5} = 4\ \text{V}\).
    With \(100\ \text{k}\Omega\), the parallel pair is worth \(\dfrac{10 \cdot 100}{110} \approx 9.09\ \text{k}\Omega\), and \(V = 12 \cdot \dfrac{9.09}{19.09}\).
    6 V with no load, 4 V with \(10\ \text{k}\Omega\) and about 5.71 V with \(100\ \text{k}\Omega\)
  7. intermediate

    In the two-loop circuit of the simulation, \(E_1 = 12\ \text{V}\) connects to N through \(R_1 = 1\ \text{k}\Omega\), \(E_2 = 9\ \text{V}\) connects to N through \(R_2 = 2.2\ \text{k}\Omega\), and \(R_3 = 1\ \text{k}\Omega\) runs from N to earth. Find the voltage at N and the three currents.

    Show solution
    By Kirchhoff's current law at N, the current leaving through \(R_3\) is the sum of the currents arriving through the other two, \(\dfrac{12 - V_N}{1000} + \dfrac{9 - V_N}{2200} = \dfrac{V_N}{1000}\).
    Solving, \(V_N = \dfrac{0.012 + 9/2200}{0.001 + 1/2200 + 0.001}\) \(\approx 6.56\ \text{V}\).
    So \(I_1 = \dfrac{12 - 6.56}{1000} \approx 5.44\ \text{mA}\), \(I_2 = \dfrac{9 - 6.56}{2200} \approx 1.11\ \text{mA}\) and \(I_3 = \dfrac{6.56}{1000} \approx 6.56\ \text{mA}\).
    \(V_N \approx 6.56\ \text{V}\); both sources supply current, 5.44 mA and 1.11 mA, which add up to the 6.56 mA in \(R_3\).
  8. intermediate

    In a Wheatstone bridge, \(R_1 = 1\ \text{k}\Omega\) and \(R_2 = 2.2\ \text{k}\Omega\) form the left-hand divider, and \(R_3\) (adjustable) and \(R_x\) form the right-hand one, in the same order. The multimeter between the midpoints reads zero with \(R_3 = 680\ \Omega\). What is \(R_x\)?

    Show solution
    With the meter at zero, the two dividers have the same ratio, \(\dfrac{R_2}{R_1} = \dfrac{R_x}{R_3}\).
    So \(R_x = R_3 \cdot \dfrac{R_2}{R_1} = 680 \cdot 2.2\).
    \(R_x \approx 1.5\ \text{k}\Omega\)
  9. challenge

    We want to get 5 V from 12 V with a divider to feed a \(10\ \text{k}\Omega\) load, and the output must not drop by more than 5% when the load is connected. What are the largest possible values of \(R_2\) (bottom) and \(R_1\) (top)? How much current does the divider draw on its own at that limit?

    Show solution
    Seen from the load, the divider is equivalent to a 5 V source with internal resistance \(R_{th} = R_1 \parallel R_2\). With the load, \(V = 5 \cdot \dfrac{R_L}{R_L + R_{th}} \geq 4.75\), which requires \(R_{th} \leq 10\,000 \cdot \left(\dfrac{5}{4.75} - 1\right)\) \(\approx 526\ \Omega\).
    To give 5 V, \(\dfrac{R_2}{R_1 + R_2} = \dfrac{5}{12}\), or \(R_1 = 1.4\,R_2\), and then \(R_{th} = \dfrac{1.4\,R_2^2}{2.4\,R_2} \approx 0.583\,R_2\).
    Hence \(R_2 \leq \dfrac{526}{0.583} \approx 902\ \Omega\) and \(R_1 \leq 1.26\ \text{k}\Omega\). With these values, the divider draws \(\dfrac{12}{2.16\ \text{k}\Omega} \approx 5.6\ \text{mA}\).
    \(R_2 \approx 900\ \Omega\) and \(R_1 \approx 1.26\ \text{k}\Omega\) at most, drawing about 5.6 mA, more than ten times the load current of about 0.5 mA.
  10. challenge

    A divider of two \(1\ \text{M}\Omega\) resistors is fed with 10 V. We measure the voltage across the lower resistor with a multimeter whose internal resistance is \(10\ \text{M}\Omega\). What does it read, and what is the error relative to the expected 5 V?

    Show solution
    The multimeter sits in parallel with the lower resistor, and the pair is worth \(\dfrac{1 \cdot 10}{1 + 10} \approx 0.909\ \text{M}\Omega\).
    The reading is that of the new divider, \(V = 10 \cdot \dfrac{0.909}{1 + 0.909}\) \(\approx 4.76\ \text{V}\).
    It reads about 4.76 V, an error of almost 5% that comes from the meter itself; with \(1\ \text{k}\Omega\) resistors, the same multimeter would be off by only 0.005%.
STEP 2

What changes when the voltage goes back and forth?

A fresh cell keeps roughly the same voltage for hours, and we say it is direct, or DC. A mains socket reverses its polarity 60 times a second and supplies an alternating signal, or AC, that follows a sine wave; the 127 V and 220 V at 60 Hz used on this bench are Brazilian mains values, while UK mains is 230 V at 50 Hz. Many circuits mix the two, with an alternating part added to a steady level.

To describe a periodic signal, we use the period \(T\), the duration of one cycle, and the frequency \(f = 1/T\), the number of cycles per second. The amplitude can be given by the peak value \(V_p\), by the peak-to-peak value \(V_{pp}\), which is what the oscilloscope shows straight away, or by the RMS value.

The RMS value of an alternating voltage is the steady voltage that would heat the same resistor with the same mean power. For a sine wave it equals \(V_p/\sqrt{2}\), and the 127 V and 220 V of the mains are RMS values, with peaks of about 180 V and 311 V. In a square wave the RMS is the peak itself, and in a triangle wave it is \(V_p/\sqrt{3}\), so signals with the same peak can heat in quite different ways.

On the oscilloscope, DC coupling shows the full voltage, and AC coupling removes the steady part so that we can look closely at what varies. The multimeter on V AC measures the RMS of the alternating part, and the models sold as true RMS get it right for any waveform, while the simpler ones are only right for a sine wave.

\(T = \dfrac{1}{f}\)\(V_{pp} = 2\,V_p\)\(V_{\text{RMS}} = \sqrt{\overline{v^2}}\)sine wave: \(V_{\text{RMS}} = \dfrac{V_p}{\sqrt{2}}\)square: \(V_{\text{RMS}} = V_p\)triangle: \(V_{\text{RMS}} = \dfrac{V_p}{\sqrt{3}}\)\(P_{\text{avg}} = \dfrac{V_{\text{RMS}}^2}{R}\)The bar in \(\overline{v^2}\) means the average over one period. The lamps in the simulation are assumed to have constant resistance, 12 V and 10 W on the generator and 100 W on the mains, and their brightness follows the mean power with a small lag, as a real filament does.

Let's discuss

  • With the 12 V peak sine wave, adjust the DC supply until \(L_2\) glows as brightly as \(L_1\). What voltage did you find, and how does it compare with \(12/\sqrt{2}\)?
  • Switch to the square and to the triangle wave, without changing the peak, and repeat the adjustment. Which of the three heats the lamp most?
  • Add a 5 V offset to the sine wave and switch CH1 between DC and AC. What does the multimeter show on V DC and on V AC?
  • Choose 'Mains 127 V' and read the peak and the period on the screen. Change the time/div and the volts/div until one full cycle fits.
  • Lower the frequency to 2 Hz. Why does \(L_1\) start to flicker, and why do we not notice this effect at 60 Hz?
Peak at A
Peak-to-peak
RMS at A
Frequency and period
Mean power in L₁
Power in L₂
Exercises for step 2 10 questions · 4 basic · 4 intermediate · 2 challenge
  1. basic

    The 127 V mains socket has this RMS value, at 60 Hz. What are the peak voltage, the peak-to-peak voltage and the period?

    Show solution
    For a sine wave, \(V_p = \sqrt{2}\,V_{\text{RMS}} = 1.414 \cdot 127\), and \(V_{pp} = 2\,V_p\).
    The period is \(T = \dfrac{1}{60}\ \text{s}\).
    \(V_p \approx 180\ \text{V}\), \(V_{pp} \approx 359\ \text{V}\) and \(T \approx 16.7\ \text{ms}\)
  2. basic

    On the oscilloscope screen, at 2 V/div and 5 ms/div, a sine wave spans 6 divisions peak to peak and one full cycle spans 4 divisions. What are \(V_{pp}\), \(V_p\), \(V_{\text{RMS}}\), the period and the frequency?

    Show solution
    Vertically, \(V_{pp} = 6 \cdot 2 = 12\ \text{V}\), \(V_p = 6\ \text{V}\) and \(V_{\text{RMS}} = \dfrac{6}{\sqrt{2}}\).
    Horizontally, \(T = 4 \cdot 5 = 20\ \text{ms}\), and \(f = \dfrac{1}{0.020}\).
    12 V, 6 V, about 4.24 V, 20 ms and 50 Hz
  3. basic

    A steady 5 V is connected to CH1 of the oscilloscope. Where does the trace sit with DC coupling and with AC coupling? What is AC coupling for?

    Show solution
    With DC coupling, the trace shows the whole voltage, and the line sits 5 V above the channel's zero mark.
    With AC coupling, a capacitor at the input blocks the steady part, and the line goes back to the zero mark.
    AC coupling lets us look closely at the varying part of a signal that sits on a large steady level, such as the ripple of a power supply.
  4. basic

    What is the RMS value of a square wave that goes from \(-5\ \text{V}\) to \(+5\ \text{V}\), and that of a triangle wave with a 5 V peak?

    Show solution
    In the square wave, \(v^2 = 25\ \text{V}^2\) all the time, and the RMS is the peak itself, 5 V.
    In the triangle wave, the mean of \(v^2\) is \(V_p^2/3\), and \(V_{\text{RMS}} = \dfrac{5}{\sqrt{3}}\).
    5 V for the square wave and about 2.89 V for the triangle wave
  5. intermediate

    A \(10\ \Omega\) resistor is connected to 127 V RMS. What is the mean power dissipated? And the power at the instant of peak voltage?

    Show solution
    The mean power uses the RMS value, \(P = \dfrac{V_{\text{RMS}}^2}{R} = \dfrac{127^2}{10}\).
    At the peak, \(p = \dfrac{V_p^2}{R} = \dfrac{2 \cdot 127^2}{10}\), twice the mean, because the mean of \(\sin^2\) is \(1/2\).
    About 1.61 kW on average and 3.23 kW at the peak
  6. intermediate

    A generator produces a 4 V peak sine wave added to a steady level of 3 V. What are the maximum and minimum values, the mean value and the total RMS? What do a multimeter on V DC and another on V AC (true RMS) read?

    Show solution
    The voltage goes from \(3 - 4 = -1\ \text{V}\) to \(3 + 4 = 7\ \text{V}\), and the mean is the steady level, 3 V.
    The alternating part has an RMS of \(\dfrac{4}{\sqrt{2}} \approx 2.83\ \text{V}\), and the total RMS adds the powers, \(\sqrt{3^2 + 2.83^2} = \sqrt{17}\).
    Maximum 7 V, minimum \(-1\ \text{V}\), mean 3 V and total RMS \(\approx 4.12\ \text{V}\); the multimeter reads 3 V on V DC and about 2.83 V on V AC.
  7. intermediate

    A capacitor is to be connected directly to the 220 V mains. The supplier has a model rated at 250 V. Will it do?

    Show solution
    The 220 V is the RMS value, and the capacitor's dielectric has to withstand the peak, \(V_p = \sqrt{2} \cdot 220\) \(\approx 311\ \text{V}\).
    It will not do, because the peak of about 311 V exceeds 250 V; for the mains, we use capacitors rated for alternating voltage, with a margin.
  8. intermediate

    A cheap multimeter measures the mean of the absolute value of the signal and multiplies it by 1.11, a factor that only gives the right RMS for sine waves. What does it read for a 10 V peak square wave and for a 10 V peak triangle wave, and what should it read?

    Show solution
    In the square wave, \(|v| = 10\ \text{V}\) all the time, and it reads \(1.11 \cdot 10 \approx 11.1\ \text{V}\), against a true RMS of 10 V.
    In the triangle wave, the mean of \(|v|\) is half the peak, 5 V, and it reads \(1.11 \cdot 5 \approx 5.55\ \text{V}\), against \(\dfrac{10}{\sqrt{3}} \approx 5.77\ \text{V}\).
    It reads about 11% too high on the square wave and 4% too low on the triangle wave; away from sine waves, we therefore use a true RMS multimeter.
  9. challenge

    A digital signal stays at 5 V for 25% of the period and at 0 V for the rest. What are the mean value, the total RMS and the RMS of the alternating part?

    Show solution
    The mean is the fraction of time spent high times 5 V, \(V_{\text{avg}} = 0.25 \cdot 5 = 1.25\ \text{V}\).
    The mean of \(v^2\) is \(0.25 \cdot 25 = 6.25\ \text{V}^2\), and \(V_{\text{RMS}} = 2.5\ \text{V}\).
    The alternating part is what remains once the mean is removed, \(\sqrt{6.25 - 1.25^2}\) \(= \sqrt{4.6875}\).
    Mean 1.25 V, total RMS 2.5 V and alternating RMS \(\approx 2.17\ \text{V}\)
  10. challenge

    A 12 V, 10 W lamp, whose resistance is assumed constant, is connected to a 20 V peak triangle wave. How much power does it dissipate on average? What steady voltage would give the same brightness?

    Show solution
    The lamp's resistance is \(R = \dfrac{12^2}{10} = 14.4\ \Omega\), and the triangle wave has \(V_{\text{RMS}} = \dfrac{20}{\sqrt{3}} \approx 11.55\ \text{V}\).
    The mean power is \(P = \dfrac{V_{\text{RMS}}^2}{R} = \dfrac{400/3}{14.4}\).
    About 9.26 W, the same brightness as a steady voltage of 11.55 V, which is the RMS value itself.
STEP 3

How long does a capacitor take to charge?

A camera flash takes a few seconds to be ready, and the LED on a charger stays lit for a moment after we pull it out of the socket. In both cases a capacitor gains or loses charge through a resistance. The pace of this process is set by a single number, the time constant \(\tau = RC\).

At the instant we switch on the supply, the uncharged capacitor behaves like a wire, and the whole voltage appears across the resistor. As charge builds up, the capacitor voltage rises and the current falls, because less and less voltage is left to push it. The rise is exponential. After one \(\tau\) the capacitor reaches 63% of its final voltage, and after \(5\tau\) more than 99%, which in practice we take as fully charged.

Discharging is the mirror image of charging. In one \(\tau\), the voltage falls to 37% of its initial value.

If the applied voltage changes all the time, we can picture the capacitor trying to follow it with this same lag. With a slow sine wave, whose period is much longer than \(\tau\), it follows with almost no loss. With a fast one it has no time to charge, and we see the voltage across it stay small. Taking the output across the capacitor gives a low-pass filter; swapping the resistor and the capacitor, with the output across the resistor, gives a high-pass filter.

The boundary between the two behaviours is the cut-off frequency \(f_c\), at which the capacitor's reactance, \(X_C = 1/(2\pi f C)\), equals the resistance. There the output falls to \(1/\sqrt{2}\) of the input, about 70.7%, with a phase shift of 45°. It is a lag in the low-pass filter and a lead in the high-pass one. On the oscilloscope, we measure the phase shift from the interval \(\Delta t\) between the zero crossings of the two traces, as a fraction of the period.

A square wave brings charging and filtering together, because each edge is a step. In the low-pass filter, the output rises and falls along charging curves, which only reach the top if half a period lasts a few \(\tau\). In the high-pass filter, each edge becomes a spike that decays with the same \(\tau\), and what is left between edges depends on how many time constants fit in half a period, something we can read straight off the screen. A square wave on the oscilloscope is therefore perhaps the quickest way to estimate the time constant of an unknown circuit.

\(\tau = RC\)charging: \(v_C = V\,(1 - e^{-t/\tau})\)discharging: \(v_C = V_0\,e^{-t/\tau}\)\(i = \dfrac{V}{R}\,e^{-t/\tau}\)\(X_C = \dfrac{1}{2\pi f C}\)\(f_c = \dfrac{1}{2\pi RC}\)low-pass: \(\dfrac{V_s}{V_e} = \dfrac{1}{\sqrt{1 + (f/f_c)^2}}\)\(\varphi = -\arctan\dfrac{f}{f_c}\)\(\varphi = 360^\circ\,\dfrac{\Delta t}{T}\)When charging, \(V\) is the supply voltage, and when discharging, \(V_0\) is the initial capacitor voltage; \(i\) is the current in the resistor in both cases. In the high-pass filter, \(V_s/V_e = (f/f_c)/\sqrt{1 + (f/f_c)^2}\) and \(\varphi = 90^\circ - \arctan(f/f_c)\). We assume ideal resistors and capacitors, with no leakage, and a generator with no internal resistance; with a square wave, the ratio and phase shift in the simulation refer to the fundamental component.

Let's discuss

  • In 'Charge and discharge', with the time/div close to \(\tau\), tap 'Charge' and see on CH2, at B, at which division after the edge the capacitor passes 5.7 V, which is 63% of 9 V. Does it match \(RC\)?
  • Put the multimeter on A DC, in series with \(R\), and follow the current during charging. What is it just after the switch closes, and how much is left after one \(\tau\)?
  • In the low-pass filter, with CH1 on the input (A) and CH2 on the capacitor (B), take the frequency up to \(f_c\). Measure the ratio between the Vpp of the two channels and the lag \(\Delta t\) between the zero crossings; do you get 0.707 and 45°?
  • With the multimeter on V AC, measure the output at B for \(f = 10\,f_c\) and for \(f = 100\,f_c\). By how much does it fall for each decade above the cut-off?
  • In the high-pass filter, use the square wave with \(f\) well below \(f_c\). Why does the output turn into spikes, and what happens to them when \(f\) goes above \(f_c\)?
Capacitor voltage
Current in R
Time constant τ = RC
Time since switching
Exercises for step 3 10 questions · 4 basic · 4 intermediate · 2 challenge
  1. basic

    A \(10\ \text{k}\Omega\) resistor charges a \(100\ \mu\text{F}\) capacitor. What is the time constant, and after how long can we consider the capacitor charged?

    Show solution
    The time constant is the product, \(\tau = RC = 10\,000 \cdot 100 \cdot 10^{-6}\).
    In practice, charging is complete after \(5\tau\), when it passes 99%.
    \(\tau = 1\ \text{s}\), and the capacitor is practically charged after 5 s.
  2. basic

    An uncharged \(10\ \mu\text{F}\) capacitor is connected to 12 V through a \(4.7\ \text{k}\Omega\) resistor. What is the current just after the switch closes, and what is the capacitor voltage after one time constant?

    Show solution
    At the first instant, the empty capacitor behaves like a wire, and \(I_0 = \dfrac{12}{4700} \approx 2.55\ \text{mA}\).
    The time constant is \(\tau = 4700 \cdot 10 \cdot 10^{-6} = 47\ \text{ms}\), and at that time \(v_C = 12\,(1 - e^{-1}) = 12 \cdot 0.632\).
    About 2.55 mA at the start and 7.59 V after 47 ms.
  3. basic

    What is the cut-off frequency of a low-pass filter with \(R = 1.5\ \text{k}\Omega\) and \(C = 100\ \text{nF}\)?

    Show solution
    From the definition, \(f_c = \dfrac{1}{2\pi RC}\) \(= \dfrac{1}{2\pi \cdot 1500 \cdot 100 \cdot 10^{-9}}\).
    \(f_c \approx 1.06\ \text{kHz}\)
  4. basic

    On the oscilloscope, CH1 shows the input of an RC filter and CH2 the output, both 1 kHz sine waves. The output crosses zero, going up, \(0.125\ \text{ms}\) after the input. What is the phase shift, and which filter is this likely to be?

    Show solution
    The period is \(T = 1\ \text{ms}\), and the phase shift is the fraction of the period, \(\varphi = 360^\circ \cdot \dfrac{0.125}{1}\).
    Since the output comes later, it lags, as in the low-pass filter, and a lag of 45° indicates that the signal is at the cut-off frequency.
    \(\varphi = -45^\circ\); it is a low-pass filter working at \(f = f_c = 1\ \text{kHz}\).
  5. intermediate

    A \(47\ \mu\text{F}\) capacitor, charged to 10 V, discharges through a \(22\ \text{k}\Omega\) resistor. How long does the voltage take to fall to 2 V?

    Show solution
    The time constant is \(\tau = 22\,000 \cdot 47 \cdot 10^{-6} \approx 1.034\ \text{s}\).
    When discharging, \(2 = 10\,e^{-t/\tau}\), and so \(t = \tau \ln 5 = 1.034 \cdot 1.609\).
    \(t \approx 1.66\ \text{s}\), about \(1.6\,\tau\)
  6. intermediate

    A low-pass filter with \(R = 10\ \text{k}\Omega\) and \(C = 10\ \text{nF}\) receives a sine wave of 2 V peak at 5 kHz. What are the output amplitude and the phase shift?

    Show solution
    The cut-off frequency is \(f_c = \dfrac{1}{2\pi \cdot 10^4 \cdot 10^{-8}} \approx 1.59\ \text{kHz}\), and \(f/f_c \approx 3.14\).
    The ratio is \(\dfrac{V_s}{V_e} = \dfrac{1}{\sqrt{1 + 3.14^2}} \approx 0.303\), and \(\varphi = -\arctan 3.14\).
    An output of about 0.61 V peak, lagging by about 72°
  7. intermediate

    We want a high-pass filter with \(C = 100\ \text{nF}\) and a cut-off near 200 Hz, to remove the 60 Hz hum from an audio signal. Which resistor from the E12 series should we use, and how much of the hum is left?

    Show solution
    From the cut-off frequency, \(R = \dfrac{1}{2\pi f_c C}\) \(= \dfrac{1}{2\pi \cdot 200 \cdot 10^{-7}}\) \(\approx 7.96\ \text{k}\Omega\), and the nearest E12 value is \(8.2\ \text{k}\Omega\), with \(f_c \approx 194\ \text{Hz}\).
    At 60 Hz, \(f/f_c \approx 0.309\) and \(\dfrac{V_s}{V_e} = \dfrac{0.309}{\sqrt{1 + 0.309^2}}\) \(\approx 0.295\).
    \(R = 8.2\ \text{k}\Omega\); about 30% of the hum is left, while a 1 kHz tone passes at 98%.
  8. intermediate

    A \(1000\ \mu\text{F}\) capacitor, charged to 12 V and disconnected from the circuit, is measured with a multimeter whose internal resistance is \(10\ \text{M}\Omega\). How long does it take for the measurement itself to make the voltage fall by 1%?

    Show solution
    The multimeter closes an RC discharge circuit, with \(\tau = 10^7 \cdot 10^{-3} = 10\,000\ \text{s}\).
    To fall by 1%, \(0.99 = e^{-t/\tau}\), and \(t = -\tau \ln 0.99 \approx 0.01005\,\tau\).
    About 100 s; a reading lasting a few seconds hardly disturbs the capacitor.
  9. challenge

    A square wave going from 0 to 5 V enters a low-pass filter with \(\tau = 1\ \text{ms}\). At 500 Hz, half a period lasts exactly \(\tau\). Between which values does the output oscillate in steady state, and what is its \(V_{pp}\)?

    Show solution
    In steady state, the output rises from \(V_{\text{min}}\) to \(V_{\text{max}}\) in one half-period and falls back in the other, so \(V_{\text{max}} = 5 - (5 - V_{\text{min}})\,e^{-1}\) and \(V_{\text{min}} = V_{\text{max}}\,e^{-1}\).
    Substituting the second into the first, \(V_{\text{max}}\,(1 - e^{-2}) = 5\,(1 - e^{-1})\), or \(V_{\text{max}} = \dfrac{5}{1 + e^{-1}}\) \(\approx 3.66\ \text{V}\), and \(V_{\text{min}} \approx 3.66 \cdot 0.368 \approx 1.34\ \text{V}\).
    The output oscillates between about 1.34 V and 3.66 V, with \(V_{pp} \approx 2.31\ \text{V}\), around the 2.5 V mean of the input.
  10. challenge

    A 10 V supply charges an initially empty \(100\ \mu\text{F}\) capacitor through a resistor \(R\). How much energy ends up in the capacitor, how much does the supply provide and how much does the resistor dissipate? How does this depend on \(R\)?

    Show solution
    At the end, the capacitor stores \(E_C = \tfrac{1}{2}\,C\,V^2\) \(= \tfrac{1}{2} \cdot 10^{-4} \cdot 100 = 5\ \text{mJ}\).
    The supply pushes the charge \(Q = CV = 1\ \text{mC}\) at 10 V the whole time, and provides \(QV = 10\ \text{mJ}\).
    The difference, 5 mJ, heats the resistor, whatever the value of \(R\); a larger \(R\) only makes the charging slower, with a smaller current.
    5 mJ in the capacitor, 10 mJ from the supply and 5 mJ in the resistor, regardless of \(R\).
STEP 4

How does a circuit pick out one frequency?

An old radio tunes in a station when we turn a knob that changes the capacitance of a capacitor connected to a coil. Of the thousands of signals that reach the aerial at the same time, the circuit lets through strongly only those close to one frequency, the resonance frequency. This preference comes from two oppositions to the current that change in opposite directions with frequency and that, at a single frequency, cancel each other.

With alternating current, the inductor and the capacitor oppose the current in opposite ways. The inductive reactance \(X_L\) grows with frequency, because the coil reacts to changes in the current. The capacitive reactance \(X_C\) falls, because the capacitor has barely begun to charge when the voltage already reverses. In the inductor the voltage leads the current by 90°, and in the capacitor it lags by 90°. For this reason, in a series circuit the two reactances subtract in the impedance \(Z\).

At the frequency where \(X_L = X_C\) they cancel, and in the series RLC the impedance reduces to \(R\) itself, with the current at its maximum and in phase with the generator. Equating the two reactances, we arrive at \(f_0 = 1/(2\pi\sqrt{LC})\). Something that may come as a surprise is that, at this frequency, the voltage across the capacitor and the voltage across the coil can be far larger than the generator voltage. They cancel each other at every instant.

The sharpness of the resonance is measured by the quality factor \(Q\), which in the series RLC equals \(X_L/R\) at \(f_0\). With a small \(R\), the curve of current against frequency is a narrow peak, and the bandwidth between the points where it falls to 70.7% of the maximum is \(f_0/Q\). In the parallel RLC, the tank circuit, the situation is reversed. At \(f_0\) the coil and the capacitor pass current back and forth between them, the pair presents a very high impedance and, when we measure the current coming from the generator, we see it fall almost to zero, even though a current that can be large circulates inside the tank.

The same physics appears when we apply a step, such as the edge of a square wave. With little damping, the capacitor voltage overshoots its final value and oscillates around it, at a frequency close to \(f_0\), until it settles. This is the underdamped response. With a large \(R\) it tends to rise slowly and without oscillating, in the overdamped response. Between the two lies critical damping, which reaches the final value in the shortest time without overshooting.

\(X_L = 2\pi f L\)\(X_C = \dfrac{1}{2\pi f C}\)\(Z = \sqrt{R^2 + (X_L - X_C)^2}\)\(\tan\varphi = \dfrac{X_L - X_C}{R}\)\(f_0 = \dfrac{1}{2\pi\sqrt{LC}}\)\(Q = \dfrac{1}{R}\sqrt{\dfrac{L}{C}}\)\(\Delta f = \dfrac{f_0}{Q}\)\(R_{\text{crit}} = 2\sqrt{\dfrac{L}{C}}\)\(Z\), \(Q\) and \(\Delta f\) apply to the series RLC; \(\varphi\) is how far the generator voltage leads the current. In the parallel circuit of the simulation, the resistor is in series with the generator, and the tank has \(Q = R\sqrt{C/L}\). \(R_{\text{crit}}\) is the resistor that gives critical damping in the series circuit. We assume an ideal coil and capacitor, with no wire resistance or losses, and a generator with no internal resistance.

Let's discuss

  • In 'Series RLC', CH1 is on the generator (A) and CH2 on B, across the resistor, where the voltage is \(R\) times the current. Change the frequency slowly until the Vpp on CH2 reaches its maximum and the two traces come into phase. Does the frequency agree with \(f_0\)?
  • Tap 'Sweep the frequency' and read from the curve the two frequencies at which the ratio passes through 0.707. Calculate \(Q = f_0/\Delta f\) and compare it with \(\sqrt{L/C}/R\); then repeat with \(R\) five times larger.
  • At resonance, set the multimeter to V AC with the red probe on M and the black probe on B, across the capacitor. Why does it read more than the generator's 3.54 V RMS?
  • In 'Parallel RLC', set the multimeter to A AC, in series with \(R\), and sweep the frequency. Does the current leaving the generator rise or fall at \(f_0\)?
  • In 'Step', with CH2 on the capacitor, lower \(R\) until the oscillation appears and measure its period on the screen. Then look for the \(R\) at which the oscillation disappears without the rise becoming slow, and compare it with \(2\sqrt{L/C}\).
f₀ = 1/(2π√LC)
X_L and X_C at f
Quality factor Q
CH2/CH1 and phase shift (measured)
Exercises for step 4 10 questions · 4 basic · 4 intermediate · 2 challenge
  1. basic

    What are the reactances of a 10 mH inductor and of a \(1\ \mu\text{F}\) capacitor at 1 kHz?

    Show solution
    \(X_L = 2\pi f L\) \(= 2\pi \cdot 1000 \cdot 0.01\) and \(X_C = \dfrac{1}{2\pi f C}\) \(= \dfrac{1}{2\pi \cdot 1000 \cdot 10^{-6}}\).
    \(X_L \approx 62.8\ \Omega\) and \(X_C \approx 159\ \Omega\)
  2. basic

    What is the resonant frequency of a circuit with \(L = 10\ \text{mH}\) and \(C = 1\ \mu\text{F}\)?

    Show solution
    From the formula, \(f_0 = \dfrac{1}{2\pi\sqrt{LC}}\) \(= \dfrac{1}{2\pi\sqrt{10^{-2} \cdot 10^{-6}}}\) \(= \dfrac{1}{2\pi \cdot 10^{-4}}\).
    \(f_0 \approx 1.59\ \text{kHz}\)
  3. basic

    In a series RLC at a certain frequency, \(R = 50\ \Omega\), \(X_L = 80\ \Omega\) and \(X_C = 40\ \Omega\). With 10 V RMS from the generator, what are the impedance, the current and the phase shift? Is the circuit inductive or capacitive?

    Show solution
    The reactances subtract, \(Z = \sqrt{50^2 + (80 - 40)^2}\) \(\approx 64.0\ \Omega\), and \(I = \dfrac{10}{64.0}\).
    The phase shift is \(\varphi = \arctan\dfrac{40}{50}\), with the voltage leading, because \(X_L > X_C\).
    \(Z \approx 64\ \Omega\), \(I \approx 156\ \text{mA}\) RMS and \(\varphi \approx 38.7^\circ\); the circuit is inductive, and the current lags.
  4. basic

    A medium-wave radio uses a \(250\ \mu\text{H}\) coil. What capacitance tunes it to a 1 MHz station?

    Show solution
    Solving the resonance formula for \(C\), \(C = \dfrac{1}{(2\pi f_0)^2\,L}\) \(= \dfrac{1}{(2\pi \cdot 10^6)^2 \cdot 250 \cdot 10^{-6}}\).
    \(C \approx 101\ \text{pF}\)
  5. intermediate

    A series RLC has \(R = 10\ \Omega\), \(L = 10\ \text{mH}\) and \(C = 1\ \mu\text{F}\), and the generator gives 5 V peak. What are \(Q\) and the bandwidth? At resonance, what are the peak current and the peak voltage across the capacitor?

    Show solution
    The quality factor is \(Q = \dfrac{1}{R}\sqrt{\dfrac{L}{C}} = \dfrac{1}{10}\sqrt{10^4} = 10\), and \(\Delta f = \dfrac{f_0}{Q} \approx \dfrac{1592}{10}\).
    At \(f_0\), \(Z = R\), and \(I_p = \dfrac{5}{10} = 0.5\ \text{A}\); across the capacitor, \(V_C = I_p\,X_C = 0.5 \cdot 100\), with \(X_C = 100\ \Omega\) at \(f_0\).
    \(Q = 10\), \(\Delta f \approx 159\ \text{Hz}\), \(I_p = 0.5\ \text{A}\) and \(V_C = 50\ \text{V}\) peak, ten times the generator voltage.
  6. intermediate

    In a sweep of a series RLC with \(L = 10\ \text{mH}\) and \(C = 1\ \mu\text{F}\), the CH2/CH1 ratio is greatest at 1.59 kHz and falls to 0.707 at 1.45 kHz and at 1.75 kHz. What is \(Q\), and what total resistance does the circuit have?

    Show solution
    The bandwidth is \(\Delta f = 1.75 - 1.45 = 0.30\ \text{kHz}\), and \(Q = \dfrac{f_0}{\Delta f} = \dfrac{1.59}{0.30} \approx 5.3\).
    Since \(\sqrt{L/C} = 100\ \Omega\), \(R = \dfrac{100}{Q}\).
    \(Q \approx 5.3\) and \(R \approx 19\ \Omega\), made up of the resistor plus the resistance of the coil's wire.
  7. intermediate

    A step from 0 to 5 V is applied to a series RLC with \(R = 20\ \Omega\), \(L = 10\ \text{mH}\) and \(C = 1\ \mu\text{F}\). Is the response underdamped or overdamped? What is the period of the oscillation, and how high does the capacitor voltage rise?

    Show solution
    The critical resistor is \(R_{\text{crit}} = 2\sqrt{L/C} = 200\ \Omega\), and with 20 Ω the response is underdamped.
    The damping is \(\alpha = \dfrac{R}{2L} = 1000\ \text{s}^{-1}\), and the oscillation has \(\omega_d = \sqrt{\omega_0^2 - \alpha^2} = \sqrt{10^8 - 10^6}\) \(\approx 9950\ \text{rad/s}\), with period \(\dfrac{2\pi}{\omega_d}\).
    The first peak overshoots the final value by the fraction \(e^{-\alpha\pi/\omega_d} = e^{-0.316}\) \(\approx 0.729\).
    Underdamped, with a period of about 0.63 ms and a first peak near 8.65 V.
  8. intermediate

    A tank with \(L = 10\ \text{mH}\) and \(C = 1\ \mu\text{F}\) in parallel is fed by a 5 V peak generator through \(R = 1\ \text{k}\Omega\). At resonance, what is the generator current, and how much current circulates in the coil?

    Show solution
    At \(f_0\) the ideal tank has infinite impedance; the generator current is zero and the tank takes the full 5 V peak.
    The coil, with \(X_L = 2\pi f_0 L = 100\ \Omega\), carries \(I_L = \dfrac{5}{100}\), and the capacitor carries the same current in the opposite direction.
    The generator current is practically zero, but 50 mA peak circulates between the coil and the capacitor.
  9. challenge

    In step mode, with \(L = 10\ \text{mH}\), the oscilloscope shows a first peak 60% above the final value and an oscillation with a period of 0.64 ms. What are \(R\) and \(C\)?

    Show solution
    The overshoot gives \(e^{-\alpha\pi/\omega_d} = 0.6\), and so \(\dfrac{\alpha}{\omega_d} = \dfrac{-\ln 0.6}{\pi} \approx 0.163\).
    From the period, \(\omega_d = \dfrac{2\pi}{0.64 \cdot 10^{-3}} \approx 9817\ \text{rad/s}\), and \(\alpha \approx 1596\ \text{s}^{-1}\), which gives \(R = 2L\alpha \approx 31.9\ \Omega\).
    Since \(\omega_0^2 = \omega_d^2 + \alpha^2 \approx 9.89 \cdot 10^7\), \(C = \dfrac{1}{\omega_0^2\,L}\).
    \(R \approx 32\ \Omega\) and \(C \approx 1.01\ \mu\text{F}\)
  10. challenge

    The quality factor is also \(Q = 2\pi\) times the stored energy divided by the energy dissipated in one cycle. Check this definition on the series RLC of exercise 5 (\(R = 10\ \Omega\), \(L = 10\ \text{mH}\), \(C = 1\ \mu\text{F}\), 0.5 A peak at resonance).

    Show solution
    When the current passes through its peak, all the energy is in the coil, \(E = \tfrac{1}{2}\,L\,I_p^2\) \(= \tfrac{1}{2} \cdot 0.01 \cdot 0.25 = 1.25\ \text{mJ}\).
    The average power in the resistor is \(P = \tfrac{1}{2}\,I_p^2 R = 1.25\ \text{W}\), and in one period, \(T = 1/f_0 \approx 0.628\ \text{ms}\), it dissipates \(P\,T \approx 0.785\ \text{mJ}\).
    So \(2\pi \cdot \dfrac{1.25}{0.785} \approx 10\).
    This gives \(Q = 10\), the same value as \(\sqrt{L/C}/R\).
STEP 5

Why does a diode let current through in only one direction?

A diode works like a one-way valve for current. It is made of two regions of silicon doped in different ways. In the P region the lattice is short of electrons, and the carriers are holes, which behave like positive charges; in the N region there are spare free electrons. At the boundary, the PN junction, electrons and holes recombine and leave a strip with no carriers, the depletion layer, whose electric field blocks the passage of further charges.

When we connect the P side, the anode, to the positive terminal of the supply, in forward bias, we push the carriers towards the junction and narrow the barrier. From about 0.6 V in silicon, the current grows very rapidly. In reverse bias the barrier widens and only a tiny leakage current flows, until breakdown, which we leave for the Zener diode step.

The I×V curve sums up this behaviour. In practice we usually treat the diode as a switch that, when it conducts, has an almost fixed drop of about 0.7 V, an approximation that seems crude but works well in almost every circuit.

An LED is a diode in which the recombination of electrons and holes emits light, with a larger drop that depends on the colour, from about 1.8 V for red to 3 V for blue. Since the current rises exponentially with the voltage, we never connect an LED directly to a supply. It would burn out. A series resistor takes up the difference, and we choose \(R\) for the current we want, typically between 5 and 20 mA.

The one-way action of the diode turns an alternating voltage into a pulsating voltage in a single direction. In the half-wave rectifier, a diode in series with the load lets through only the positive half-cycles. The output has peaks 0.7 V below those of the generator and an average slightly below \((V_p - 0.7)/\pi\), since the diode only conducts once the input passes the knee. In the bridge of four diodes, both half-cycles reach the load in the same direction, each along a path through two diodes that we can follow on the diagram with a finger, and the output has twice the frequency and close to twice the half-wave average, with peaks 1.4 V below those of the generator.

So that we can see the input and the output of the bridge at the same time, the bench uses a 1:1 isolating transformer. The oscilloscope measures relative to earth, and connecting the generator's earth to one of the bridge's input terminals would short out a diode. It is perhaps the most common mistake on a real bench.

\(I = I_S\left(e^{V/(n V_T)} - 1\right)\)\(V_F \approx 0.7\ \text{V}\) (Si)\(R = \dfrac{V - V_F}{I_F}\)half-wave: \(V_{\text{peak}} = V_p - 0.7\)\(V_{\text{avg}} \approx \dfrac{V_p - 0.7}{\pi}\)bridge: \(V_{\text{peak}} = V_p - 1.4\)\(V_{\text{avg}} \approx \dfrac{2\,(V_p - 1.4)}{\pi}\)\(f_{\text{out}} = 2f\)In the Shockley equation, \(V_T = kT/q \approx 26\ \text{mV}\) at room temperature, \(I_S\) is the saturation current (\(10^{-14}\ \text{A}\) for the diode in the simulation) and \(n\) is 1 for the silicon diode and 2 for the LEDs in the simulation. \(V_F\) and \(I_F\) are the desired forward voltage and current in the diode or LED. The averages assume a constant drop across the diodes and a resistive load, and they neglect the part of the cycle in which the input has not yet overcome the drop, which leaves them a few per cent above the measured value; the diode in the simulation has no breakdown, and the transformer is ideal.

Let's discuss

  • In 'I×V curve', with the multimeter on V DC across the diode (P and earth), raise the supply from 0 to 3 V. Then switch to A DC, in series with the diode, and find the diode voltage above which the current exceeds 1 mA.
  • Take the supply to negative values and measure the diode voltage and the current again. Where does the supply voltage end up?
  • Choose the blue LED and a 9 V supply, calculate the resistor for 15 mA and set the nearest E12 value. Does the ammeter in series confirm your calculation?
  • In the half-wave rectifier, with CH1 on the generator (A) and CH2 on the load (B), measure the difference between the peaks of the two channels. With the multimeter on V DC across the load, compare the average with \((V_p - 0.7)/\pi\).
  • In the bridge, measure the frequency on CH1 and on CH2. Then open \(D_1\) with the fault button and measure again. What change on the screen would give this fault away in a power supply?
Diode voltage (P)
Diode current
Voltage across R
Diode power
Exercises for step 5 10 questions · 4 basic · 4 intermediate · 2 challenge
  1. basic

    A red LED with a 1.8 V drop is to run at 10 mA from a 5 V supply. What resistor should we use, and what current flows with the nearest E12 value?

    Show solution
    The resistor takes the difference, \(R = \dfrac{5 - 1.8}{0.010} = 320\ \Omega\), and the nearest E12 value is \(330\ \Omega\).
    With it, \(I = \dfrac{3.2}{330}\).
    \(330\ \Omega\), with about 9.7 mA
  2. basic

    A silicon diode and a \(1\ \text{k}\Omega\) resistor are in series with a 12 V supply. What is the current with the diode forward biased? And with the supply reversed, what does a voltmeter across the diode read?

    Show solution
    In forward bias the diode takes about 0.7 V, and \(I = \dfrac{12 - 0.7}{1000}\).
    Reversed, the diode blocks and the current is practically zero; with no drop across the resistor, the whole voltage appears across the diode.
    About 11.3 mA in forward bias; in reverse bias the voltmeter reads about \(-12\ \text{V}\) across the diode.
  3. basic

    A half-wave rectifier receives a 10 V peak, 60 Hz sine wave and feeds a resistive load. What are the peak across the load, the output frequency and an estimate of the average?

    Show solution
    The diode eats up about 0.7 V, and the peak across the load is \(10 - 0.7 = 9.3\ \text{V}\).
    One half-cycle gets through per period, and the output repeats the generator frequency.
    The average of half a sine wave is the peak divided by \(\pi\), \(\dfrac{9.3}{\pi}\).
    A peak of 9.3 V, 60 Hz and an estimated average of about 2.96 V
  4. basic

    A diode bridge receives 12 V RMS from a transformer. What are the peak across the load, the output frequency and an estimate of the average?

    Show solution
    The input peak is \(V_p = 12\sqrt{2} \approx 16.97\ \text{V}\), and the current passes through two diodes, \(16.97 - 1.4\).
    Both half-cycles appear across the load, and the frequency doubles to 120 Hz.
    The average is \(\dfrac{2 \cdot 15.57}{\pi}\).
    A peak of about 15.6 V, 120 Hz and an estimated average of about 9.9 V
  5. intermediate

    For the diode in the simulation, \(I_S = 10^{-14}\ \text{A}\), \(n = 1\) and \(V_T \approx 25.85\ \text{mV}\). What is the diode voltage at 10 mA? By how much does the current increase if the voltage rises by 60 mV?

    Show solution
    Solving the Shockley equation for \(V\), \(V = n V_T \ln\left(\dfrac{I}{I_S} + 1\right)\) \(= 0.02585 \cdot \ln 10^{12}\) \(\approx 0.714\ \text{V}\).
    With 60 mV more, the current is multiplied by \(e^{0.060/0.02585} \approx 10.2\).
    About 0.71 V; an extra 60 mV multiplies the current by ten, which is why we treat the diode voltage as almost fixed.
  6. intermediate

    A blue LED (3.0 V) is connected to 5 V through a \(100\ \Omega\) resistor. What are the current and the power in the resistor and in the LED? And if the supply rises to 5.5 V?

    Show solution
    The current is \(I = \dfrac{5 - 3}{100} = 20\ \text{mA}\); in the resistor, \(P_R = 2 \cdot 0.02 = 40\ \text{mW}\), and in the LED, \(P_{\text{LED}} = 3 \cdot 0.02 = 60\ \text{mW}\).
    With 5.5 V, \(I = \dfrac{5.5 - 3}{100} = 25\ \text{mA}\).
    20 mA, 40 mW and 60 mW; with 10% more from the supply, the current rises by 25%, because the drop across the LED stays almost the same and the whole increase goes to the resistor.
  7. intermediate

    Three red LEDs (1.8 V each) in series are to run at 15 mA from a 12 V supply. Which E12 resistor is suitable, what current does it give, and what power does it dissipate?

    Show solution
    The LEDs add up to \(3 \cdot 1.8 = 5.4\ \text{V}\), and \(R = \dfrac{12 - 5.4}{0.015} = 440\ \Omega\). The next E12 value up is \(470\ \Omega\).
    With it, \(I = \dfrac{6.6}{470} \approx 14.0\ \text{mA}\), and \(P = \dfrac{6.6^2}{470}\).
    \(470\ \Omega\), about 14 mA and 93 mW, comfortably within the rating of a 1/4 W resistor.
  8. intermediate

    A half-wave rectifier connected straight to the 127 V RMS mains feeds a resistive load. What maximum reverse voltage must the diode withstand?

    Show solution
    In the negative half-cycle the diode blocks, the load carries no current and the whole source voltage appears across the diode.
    The maximum is the peak of the mains, \(V_p = 127\sqrt{2}\).
    About 180 V; we choose a diode rated at 400 V or more, leaving a margin for spikes on the mains.
  9. challenge

    A diode with \(I_S = 10^{-14}\ \text{A}\) and \(n = 1\) is in series with \(1\ \text{k}\Omega\) across a 5 V supply. Find the diode voltage and current by solving with the load line by iteration, starting from \(V = 0.7\ \text{V}\).

    Show solution
    The load line gives \(I = \dfrac{5 - V}{1000}\), and the diode curve gives \(V = V_T \ln\left(\dfrac{I}{I_S} + 1\right)\).
    With \(V = 0.7\ \text{V}\), \(I = 4.30\ \text{mA}\) and \(V = 0.02585 \cdot \ln(4.3 \cdot 10^{11})\) \(\approx 0.6925\ \text{V}\).
    With this \(V\), \(I \approx 4.307\ \text{mA}\), and the new voltage changes by less than 0.1 mV.
    \(V \approx 0.693\ \text{V}\) and \(I \approx 4.31\ \text{mA}\), the point where the curve crosses the load line.
  10. challenge

    In the 10 V peak half-wave rectifier with a \(1\ \text{k}\Omega\) load, the multimeter on V DC reads about 2.84 V, not the 2.96 V of the estimate \((V_p - 0.7)/\pi\). Assuming a constant drop of 0.7 V, from what angle does the diode conduct, and what average does this give?

    Show solution
    The diode only conducts when \(10\,\sin\,\theta > 0.7\), from \(\theta_1 = \arcsin 0.07 \approx 0.070\ \text{rad}\), and it stops at \(\pi - \theta_1\).
    The average over the period is \(\dfrac{1}{2\pi}\displaystyle\int_{\theta_1}^{\pi - \theta_1} (10\,\sin\,\theta - 0.7)\,d\theta\) \(= \dfrac{10\cos\theta_1 - 0.7\,(\pi/2 - \theta_1)}{\pi}\).
    With the numbers, \(\dfrac{9.976 - 1.050}{\pi}\).
    The diode conducts from about 4°, and the average comes to about 2.84 V, as on the multimeter.
STEP 6

How do we get a steady voltage from a supply that varies?

A battery running down, a cheap charger or a supply with ripple delivers a voltage that rises and falls, whereas many of the circuits we build need a steady reference of 5 V or 3.3 V. The Zener diode is the simplest component that does this job.

In forward bias the Zener diode behaves like an ordinary diode, with about 0.7 V. In reverse bias it blocks up to the breakdown voltage \(V_Z\), and beyond it the reverse current grows very rapidly while the voltage hardly moves. It is made to work in breakdown without damage, as long as the power stays within its limit.

In the Zener regulator we connect the Zener diode with its cathode to the positive side, in parallel with the load, and a resistor \(R_S\) in series with the input. The voltage across \(R_S\) is the difference between the input and \(V_Z\), so the current \(I_S\) it lets through is set by the input; the load takes \(V_Z/R_L\), and the Zener diode absorbs the rest. When the input rises, almost all of the increase falls across \(R_S\), and it is the Zener diode that swallows the extra current.

Regulation has limits on both sides. If the load demands more current than \(R_S\) can deliver with the input at its minimum, the current in the Zener diode falls below about 1 mA, the diode leaves breakdown and the output starts to follow the divider formed by \(R_S\) and the load.

At the other extreme, with no load and the input at its maximum, all the current through \(R_S\) passes through the Zener diode, which dissipates \(V_Z\,I_Z\) and may exceed the power it can handle. When we design the regulator, we choose \(R_S\) between these two limits.

On the bench, the input carries a 120 Hz ripple, similar to that of a supply with rectification and smoothing, which we will build in step 9. With the two oscilloscope channels we can see how much of this ripple reaches the output, and perhaps surprisingly it drops to less than a hundredth.

\(I_S = \dfrac{V_E - V_Z}{R_S}\)\(I_L = \dfrac{V_Z}{R_L}\)\(I_Z = I_S - I_L\)\(P_Z = V_Z\,I_Z\)\(I_Z \geq I_{Z,\text{min}}\)\(R_S \leq \dfrac{V_{E,\text{min}} - V_Z}{I_{L,\text{max}} + I_{Z,\text{min}}}\)\(V_E\) is the input voltage, DC plus the ripple. The Zener diode in the simulation follows an exponential breakdown model, with \(V_Z\) measured at 5 mA and a dynamic resistance of a few ohms; we take \(I_{Z,\text{min}} \approx 1\ \text{mA}\) as the current below which it stops regulating and 0.5 W as the power it can handle. The resistors follow the E12 series.

Let's discuss

  • With the \(1\ \text{k}\Omega\) load, use the multimeter to measure the voltage at B and then, in A DC mode, the current in \(R_S\), in the Zener diode and in the load, one at a time. Does the current arriving at B agree with the sum of the currents leaving it?
  • Take the input from 8 V to 20 V and note the voltage at B every 2 V. How much does the output change for each extra volt at the input?
  • Lower the load step by step until the output starts to fall. At what value does this happen, and does it agree with \(R_L = V_Z/(I_S - 1\ \text{mA})\)?
  • Set the ripple to 2 V, CH1 on A and CH2 on B with AC coupling and 20 mV/div. What is the Vpp on each channel, and what is the ratio between them?
  • Disconnect the load, raise the input to 20 V and lower \(R_S\) to \(100\ \Omega\). What is the power in the Zener diode, and what \(R_S\) would keep it below 0.5 W?
Voltage at B (output)
Current in Rₛ
Zener current
Load current
Zener power
Ripple (Vpp) A → B
Exercises for step 6 10 questions · 4 basic · 4 intermediate · 2 challenge
  1. basic

    A 5.1 V Zener diode is connected to a 12 V input through a resistor \(R_S = 330\ \Omega\), with no load. What are the current in \(R_S\) and the power in the Zener diode?

    Show solution
    The voltage across \(R_S\) is the difference between the input voltage and the Zener voltage, \(I_S = \dfrac{12 - 5.1}{330}\) \(\approx 20.9\ \text{mA}\).
    With no load, all of this current passes through the Zener diode, and \(P_Z = 5.1 \cdot 0.0209\).
    \(I_S \approx 20.9\ \text{mA}\) and \(P_Z \approx 107\ \text{mW}\)
  2. basic

    In the regulator of the previous exercise, we connect a \(470\ \Omega\) load. How much current goes to the load, and how much stays in the Zener diode?

    Show solution
    The output stays at 5.1 V, and the load takes \(I_L = \dfrac{5.1}{470} \approx 10.9\ \text{mA}\).
    The current in \(R_S\) does not change, because the voltage across it has not changed, and the Zener diode takes the difference, \(I_Z = 20.9 - 10.9\).
    About 10.9 mA in the load and 10.1 mA in the Zener diode
  3. basic

    A student builds the regulator with the Zener diode reversed, with its anode on the positive side. What does the multimeter read at the output, and why?

    Show solution
    Reversed, the Zener diode is forward biased and behaves like an ordinary diode.
    The output is held at the forward drop of the junction, about 0.7 V, and \(R_S\) takes almost all of the input voltage.
    About 0.7 V; the Zener diode only regulates at \(V_Z\) with its cathode on the positive side.
  4. basic

    In a regulator with a 5.1 V Zener diode and \(R_S = 470\ \Omega\), the input rises from 12 V to 15 V and the output stays at 5.1 V. Where do the extra 3 V go, and what happens to the current in the Zener diode?

    Show solution
    The output has not changed, so the extra 3 V all fall across \(R_S\).
    The current in \(R_S\) increases by \(\Delta I_S = \dfrac{3}{470} \approx 6.4\ \text{mA}\), and since the load keeps the same voltage, all of this increase goes to the Zener diode.
    The 3 V end up across \(R_S\), and the Zener diode conducts about 6.4 mA more.
  5. intermediate

    We want 5.1 V for a load that draws up to 20 mA, from an input that varies between 9 V and 12 V. With \(I_{Z,\text{min}} = 1\ \text{mA}\), what is the largest possible \(R_S\)? If we choose the E12 value just below it, how much does the Zener diode dissipate in the worst case?

    Show solution
    The worst case for regulation is the minimum input with the maximum load, \(R_S \leq \dfrac{9 - 5.1}{0.020 + 0.001}\) \(\approx 186\ \Omega\), and the E12 value below is \(180\ \Omega\).
    The worst case for the Zener diode is the maximum input with no load, \(I_Z = \dfrac{12 - 5.1}{180} \approx 38.3\ \text{mA}\), and \(P_Z = 5.1 \cdot 0.0383\).
    \(R_S = 180\ \Omega\), with the Zener diode dissipating up to about 196 mW
  6. intermediate

    With a 5.1 V Zener diode, \(R_S = 470\ \Omega\) and a 12 V input, what is the smallest load that still leaves 1 mA in the Zener diode?

    Show solution
    The current in \(R_S\) is \(I_S = \dfrac{12 - 5.1}{470} \approx 14.7\ \text{mA}\), and the load can take up to \(14.7 - 1 = 13.7\ \text{mA}\).
    So \(R_L \geq \dfrac{5.1}{0.0137}\).
    \(R_L \approx 373\ \Omega\); below this, the output falls and follows the divider formed by \(R_S\) and the load.
  7. intermediate

    The Zener diode in a regulator has a dynamic resistance \(r_z = 8\ \Omega\), and \(R_S = 470\ \Omega\). The input has 2 V of peak-to-peak ripple. Ignoring the load, how much of this ripple reaches the output?

    Show solution
    For the varying part, the Zener diode behaves like a resistor \(r_z\), and \(R_S\) with \(r_z\) forms a divider, \(\Delta V_{\text{out}} = 2 \cdot \dfrac{8}{470 + 8}\).
    About 33 mV peak-to-peak, some 60 times less than at the input
  8. intermediate

    In a regulator with a 5.1 V Zener diode and \(R_S = 470\ \Omega\), the input can reach 20 V with no load. How much do the Zener diode and \(R_S\) dissipate in this situation? Will a 1/4 W resistor do?

    Show solution
    The current is \(I_S = \dfrac{20 - 5.1}{470} \approx 31.7\ \text{mA}\), and the Zener diode dissipates \(P_Z = 5.1 \cdot 0.0317 \approx 162\ \text{mW}\).
    In the resistor, \(P_R = \dfrac{(20 - 5.1)^2}{470}\) \(\approx 472\ \text{mW}\).
    The Zener diode stays well below 0.5 W, but \(R_S\) dissipates about 0.47 W and needs a 1 W resistor; a 1/4 W one would burn out.
  9. challenge

    In the bench regulator, with a 12 V input, \(R_S = 470\ \Omega\), a 5.1 V Zener diode and a \(1\ \text{k}\Omega\) load, what is the efficiency, the ratio of the power delivered to the load to the power drawn from the input? Where does the rest go?

    Show solution
    The input supplies \(P_E = 12 \cdot 0.0147 \approx 176\ \text{mW}\), and the load receives \(P_L = \dfrac{5.1^2}{1000} \approx 26\ \text{mW}\).
    The efficiency is \(\eta = \dfrac{26}{176} \approx 0.15\). The rest turns into heat in \(R_S\), with \(\dfrac{6.9^2}{470} \approx 101\ \text{mW}\), and in the Zener diode, with \(5.1 \cdot 0.0096 \approx 49\ \text{mW}\).
    About 15%; this is why the Zener regulator turns up in voltage references and small loads, and not in supplies for circuits that draw a lot of current.
  10. challenge

    Design a 5.1 V regulator for an input between 10 V and 14 V and a load that ranges from 0 to 15 mA, with a 0.5 W Zener diode and \(I_{Z,\text{min}} = 1\ \text{mA}\). Over what range can \(R_S\) lie? Choose an E12 value and check both limits.

    Show solution
    To regulate with the minimum input and the maximum load, \(R_S \leq \dfrac{10 - 5.1}{0.016} \approx 306\ \Omega\).
    For the Zener diode to withstand the maximum input with no load, \(5.1 \cdot \dfrac{14 - 5.1}{R_S} \leq 0.5\), and \(R_S \geq 90.8\ \Omega\).
    With \(270\ \Omega\), the Zener diode dissipates at most \(5.1 \cdot \dfrac{8.9}{270} \approx 168\ \text{mW}\) and, in the worst case, still carries \(\dfrac{4.9}{270} - 0.015 \approx 3.1\ \text{mA}\).
    \(R_S\) between about \(91\ \Omega\) and \(306\ \Omega\); \(270\ \Omega\) meets both limits with room to spare.
STEP 7

How does a small current control a large one?

A microcontroller delivers a few milliamps per pin, while a relay, a motor or a row of LEDs needs tens or hundreds. The bipolar junction transistor (BJT) bridges the gap, because a small current into the base controls a much larger current between the collector and the emitter.

It has three layers of silicon, in the order NPN or PNP. In the NPN, once the base-emitter junction conducts, with \(V_{BE}\) close to 0.7 V, almost all the electrons the emitter injects into the very thin base cross over to the collector, and the collector current becomes proportional to the base current, \(I_C = \beta\,I_B\). The gain \(\beta\) typically lies between 50 and 300, and the PNP works the same way with every sign reversed, its emitter connected to the positive side.

We distinguish three regions of operation. In cut-off, \(V_{BE}\) stays below about 0.6 V, hardly any current flows and the transistor is an open switch; in the active region, \(I_C = \beta\,I_B\) holds with \(V_{CE}\) well above zero.

In saturation, the base receives more current than the load lets the collector use, and \(V_{CE}\) drops to 0.1 or 0.2 V, as in a closed switch. Four measurements tell the whole story, \(I_B\), \(I_C\), \(V_{BE}\) and \(V_{CE}\), and we can read all of them on the bench.

As a switch, we want only cut-off and saturation, because in both the power \(V_{CE}\,I_C\) is small. The rule of thumb is to give the base a few times the minimum current \(I_C/\beta\), which tends to guarantee saturation even in a transistor with a lower \(\beta\).

The coil of a relay stores energy in its magnetic field, and the flyback diode in parallel with it gives the current a path when the transistor turns off. Without it, the collector voltage would leap to hundreds of volts at switch-off and could destroy the transistor.

As an amplifier, we keep the transistor in the active region. In the common-emitter stage with potential-divider bias, \(R_1\) and \(R_2\) set the base voltage and \(R_E\) sets the quiescent current, almost independently of \(\beta\); a small signal added to the base through the capacitor changes the emitter current by \(v_{\text{in}}/R_E\), and this change, flowing through \(R_C\), produces a larger, inverted output, with a gain close to \(-R_C/R_E\).

\(I_E = I_B + I_C\)active: \(I_C = \beta\,I_B\)\(V_{BE} \approx 0.7\ \text{V}\)\(V_{CE,\text{sat}} \approx 0.1\text{ to }0.2\ \text{V}\)switch: \(I_B > \dfrac{I_{C,\text{sat}}}{\beta}\)\(V_B \approx V_{CC}\,\dfrac{R_2}{R_1 + R_2}\)\(I_E \approx \dfrac{V_B - V_{BE}}{R_E}\)\(A_v \approx -\dfrac{R_C}{R_E}\)The transistor in the simulation follows the Ebers-Moll model, without the Early effect, with \(\beta = 150\) in the switch and \(\beta = 200\) in the amplifier; in a real transistor, \(\beta\) varies from one part to the next and with current and temperature. In the gain, \(R_C\) appears in parallel with the \(100\ \text{k}\Omega\) load, and the internal emitter resistance, \(r_e \approx 26\ \text{mV}/I_E\), adds to \(R_E\). The relay coil has 0.1 H and \(240\ \Omega\), and the contact closes above about 35 mA.

Let's discuss

  • In the LED switch, put the ammeter in the base and then in the collector, and take the input from 0 to 5 V. Note \(I_B\) and \(I_C\) at five points and work out \(I_C/I_B\). From what input does the ratio stop being \(\beta\)?
  • Measure \(V_{BE}\) and \(V_{CE}\) with the multimeter, black probe on earth, and say which region the transistor is in with the input at 0.5 V, 1.5 V and 5 V.
  • In the relay circuit, with \(R_B = 47\ \text{k}\Omega\), the contact does not close. Measure \(I_B\), \(I_C\) and \(V_{CE}\), work out the region and find the largest \(R_B\) that closes the relay with a comfortable margin.
  • Still with the relay, put CH2 on the collector and switch off the input. How high does the collector voltage go, and which component holds it there?
  • In the amplifier, measure \(V_B\), \(V_E\) and \(V_C\) on V DC and check \(I_E \approx V_E/R_E\) with the ammeter on \(R_E\). Then, with CH1 on S and CH2 on O, read both Vpp values and work out the gain. Does it agree with \(-R_C/R_E\)?
  • Turn up the generator amplitude until the output flattens. Which side flattens first, and which region does the transistor enter at that moment?
IB (base)
IC (collector)
VBE
VCE
Region
IC/IB
Exercises for step 7 10 questions · 4 basic · 4 intermediate · 2 challenge
  1. basic

    An NPN with \(\beta = 150\) is in the active region with \(I_B = 40\ \mu\text{A}\). What are \(I_C\) and \(I_E\)?

    Show solution
    In the active region, \(I_C = \beta\,I_B = 150 \cdot 40\ \mu\text{A}\) \(= 6\ \text{mA}\).
    The emitter carries both currents, \(I_E = I_B + I_C = 0.04 + 6\).
    \(I_C = 6\ \text{mA}\) and \(I_E \approx 6.04\ \text{mA}\)
  2. basic

    In a circuit with \(V_{CC} = 12\ \text{V}\), we measure three NPN transistors with their emitters on earth. The first has \(V_{BE} = 0.05\ \text{V}\) and \(V_{CE} = 12\ \text{V}\), the second \(V_{BE} = 0.68\ \text{V}\) and \(V_{CE} = 6\ \text{V}\), and the third \(V_{BE} = 0.75\ \text{V}\) and \(V_{CE} = 0.1\ \text{V}\). Which region is each one in?

    Show solution
    In the first, the base-emitter junction has not even started to conduct, and the whole voltage sits between collector and emitter, which indicates cut-off.
    In the second, the junction conducts and \(V_{CE}\) is far from zero and far from 12 V, in the active region.
    In the third, the junction conducts and \(V_{CE}\) has fallen to a fraction of a volt, which indicates saturation.
    Cut-off, active and saturation
  3. basic

    An NPN lights a red LED (1.8 V) from 12 V, with the LED and a resistor \(R_C\) between the supply and the collector. With \(V_{CE,\text{sat}} = 0.2\ \text{V}\), what \(R_C\) gives the LED 15 mA? What is the current with the nearest E12 value above it?

    Show solution
    With the transistor saturated, \(R_C\) takes whatever the supply has left, \(R_C = \dfrac{12 - 1.8 - 0.2}{0.015}\) \(\approx 667\ \Omega\).
    With \(680\ \Omega\), \(I_C = \dfrac{10}{680}\).
    \(R_C \approx 667\ \Omega\); with \(680\ \Omega\), about 14.7 mA
  4. basic

    Why do we connect a diode in parallel with the coil of a transistor-driven relay, and which way round does it go?

    Show solution
    The coil keeps its current flowing at the instant the transistor turns off, and with no path it would produce a huge voltage at the collector, enough to break down the transistor.
    The diode, with its cathode on \(+V_{CC}\) and its anode on the collector, is reverse-biased while the relay is on and carries the coil current at switch-off, holding the collector at about 0.7 V above \(V_{CC}\).
    To protect the transistor at switch-off; the cathode goes to the positive side, and the diode conducts only when the coil is switched off.
  5. intermediate

    A 5 V microcontroller pin is to drive, through an NPN, a 12 V relay with a \(240\ \Omega\) coil. The transistor has a minimum \(\beta\) of 100, and we want twice the minimum base current. What \(R_B\) should we use, with \(V_{BE} = 0.7\ \text{V}\) and \(V_{CE,\text{sat}} = 0.2\ \text{V}\)?

    Show solution
    The coil needs \(I_C = \dfrac{12 - 0.2}{240} \approx 49\ \text{mA}\), and the base needs at least \(0.049/100 \approx 0.5\ \text{mA}\), or 1 mA with a margin of two.
    So \(R_B = \dfrac{5 - 0.7}{0.001} = 4.3\ \text{k}\Omega\), and the E12 value just below is \(3.9\ \text{k}\Omega\), which gives \(I_B \approx 1.1\ \text{mA}\).
    \(R_B = 3.9\ \text{k}\Omega\), well within what a pin can supply
  6. intermediate

    With 2 V at the input, \(R_B = 47\ \text{k}\Omega\), \(\beta = 150\), \(R_C = 1\ \text{k}\Omega\) (no LED) and \(V_{CC} = 12\ \text{V}\), calculate \(I_B\), \(I_C\) and \(V_{CE}\), confirm the region and find the power in the transistor.

    Show solution
    The base receives \(I_B = \dfrac{2 - 0.7}{47\,000} \approx 27.7\ \mu\text{A}\), and assuming the active region, \(I_C = 150 \cdot 27.7\ \mu\text{A} \approx 4.15\ \text{mA}\).
    Then \(V_{CE} = 12 - 1000 \cdot 0.00415\) \(\approx 7.85\ \text{V}\), well above saturation, which confirms the assumption.
    The power is \(P = V_{CE}\,I_C = 7.85 \cdot 0.00415\).
    \(I_B \approx 27.7\ \mu\text{A}\), \(I_C \approx 4.15\ \text{mA}\), \(V_{CE} \approx 7.85\ \text{V}\), active region, about 33 mW
  7. intermediate

    In the bench amplifier, \(V_{CC} = 12\ \text{V}\), \(R_1 = 47\ \text{k}\Omega\), \(R_2 = 10\ \text{k}\Omega\), \(R_C = 2.2\ \text{k}\Omega\) and \(R_E = 470\ \Omega\). Neglecting the base current, calculate \(V_B\), \(V_E\), \(I_E\), \(V_C\) and \(V_{CE}\).

    Show solution
    The divider gives \(V_B = 12 \cdot \dfrac{10}{57} \approx 2.11\ \text{V}\), and \(V_E = V_B - 0.7 \approx 1.41\ \text{V}\).
    The current is \(I_E = \dfrac{1.41}{470} \approx 2.99\ \text{mA}\), and with \(I_C \approx I_E\), \(V_C = 12 - 2200 \cdot 0.00299\) \(\approx 5.42\ \text{V}\).
    \(V_B \approx 2.11\ \text{V}\), \(V_E \approx 1.41\ \text{V}\), \(I_E \approx 3.0\ \text{mA}\), \(V_C \approx 5.4\ \text{V}\) and \(V_{CE} \approx 4.0\ \text{V}\); the bench shows slightly lower values, because the base draws about 14 µA from the divider.
  8. intermediate

    In the same amplifier, a signal of 0.2 V peak enters the base. What gain do we expect, and what does the output look like on the oscilloscope?

    Show solution
    The gain of the common-emitter stage with \(R_E\) is \(A_v \approx -\dfrac{R_C}{R_E} = -\dfrac{2200}{470} \approx -4.7\).
    The output has \(0.2 \cdot 4.7 \approx 0.94\ \text{V}\) peak, or about 1.9 Vpp.
    A gain of about \(-4.7\); on the oscilloscope, the output is a sine wave of almost 1.9 Vpp, inverted relative to the input, with the maximum of one at the minimum of the other.
  9. challenge

    In the bench LED switch (\(V_{CC} = 12\ \text{V}\), \(R_C = 1\ \text{k}\Omega\), 1.8 V LED, \(R_B = 47\ \text{k}\Omega\), 5 V input), does the transistor saturate with \(\beta = 150\)? What if it is replaced by another of the same type with \(\beta = 80\)? What \(R_B\) would guarantee saturation with a margin of two for that \(\beta\)?

    Show solution
    The base receives \(I_B = \dfrac{5 - 0.7}{47\,000} \approx 91\ \mu\text{A}\), and the load allows at most \(I_{C,\text{sat}} = \dfrac{12 - 1.8 - 0.2}{1000}\) \(= 10\ \text{mA}\).
    With \(\beta = 150\), \(\beta\,I_B \approx 13.7\ \text{mA}\) exceeds 10 mA, and the transistor saturates, with a margin of only 1.37. With \(\beta = 80\), \(\beta\,I_B \approx 7.3\ \text{mA}\), and it stays in the active region, with \(V_{CE} \approx 12 - 1.8 - 7.3 \approx 2.9\ \text{V}\) and a dimmer LED.
    With a margin of two, \(I_B = \dfrac{2 \cdot 0.010}{80} = 0.25\ \text{mA}\) and \(R_B = \dfrac{4.3}{0.00025} = 17.2\ \text{k}\Omega\).
    It saturates with \(\beta = 150\) and does not with \(\beta = 80\); \(R_B = 15\ \text{k}\Omega\) (E12) works for both.
  10. challenge

    In the amplifier of exercise 7, what is the largest input amplitude before the output flattens? Assume \(V_{CE,\text{sat}} = 0.2\ \text{V}\) and neglect \(r_e\) and the load.

    Show solution
    An increase \(v\) at the base raises the current by \(v/R_E\), which lifts the emitter by \(v\) and lowers the collector by \(v\,R_C/R_E\). So \(V_{CE}\) falls by \(v\,\dfrac{R_C + R_E}{R_E} \approx 5.68\,v\).
    Starting from \(V_{CE} \approx 4.02\ \text{V}\), saturation arrives at \(v = \dfrac{4.02 - 0.2}{5.68}\) \(\approx 0.67\ \text{V}\). On the other side, cut-off would only come at \(v \approx -1.41\ \text{V}\), when the emitter current reaches zero.
    About 0.67 V peak; the output, at around 3.1 V peak, flattens first at the bottom, in saturation.
STEP 8

How do we control a current without spending current on the control?

The bipolar transistor needs base current for as long as it conducts, and for a 2 A motor with \(\beta = 100\) that would mean 20 mA taken from the control circuit. With the MOSFET, we control the current in another way, through the electric field that the gate voltage creates.

In the enhancement-mode n-channel MOSFET, the gate is a conducting plate separated from the silicon by an extremely thin layer of oxide, which is an insulator. With a positive voltage between the gate and the source, the gate attracts electrons to the surface beneath it, and above the threshold voltage \(V_{th}\) they form a channel joining the drain to the source. Since the gate is insulated, we can treat it as a capacitor, and in steady state no current flows through it.

Below \(V_{th}\), we say the MOSFET is in cut-off. Above it, with a large \(V_{DS}\), it is in saturation, and the current depends only on \(V_{GS}\), through the square law \(I_D = k(V_{GS} - V_{th})^2\); with a small \(V_{DS}\), in the triode region, it behaves as a resistor controlled by the gate.

The names tend to confuse anyone coming from the bipolar transistor, because saturation in a MOSFET corresponds to the active region of a BJT. The MOSFET's closed switch is the triode region, with \(V_{GS}\) well above \(V_{th}\) and an on-resistance \(R_{DS(\text{on})}\) that is typically a few tenths or hundredths of an ohm.

To control the speed of a motor or the brightness of an LED, we switch on and off thousands of times per second with pulse-width modulation, or PWM. On average, the load receives the supply voltage times the fraction \(D\) of the time the switch is closed, the duty cycle, and the transistor dissipates little because it spends almost all its time either cut off or fully on.

The gate oxide is only a few nanometres thick and breaks down at a few tens of volts. The body's static electricity, at thousands of volts, can puncture it with a single touch, which is why we handle MOSFETs wearing an earthed wrist strap and store them in antistatic packaging. In the circuit, a resistor between gate and source stops the gate from floating, with stored charge and an undefined state.

cut-off: \(V_{GS} < V_{th}\), \(I_D \approx 0\)saturation: \(I_D = k\,(V_{GS} - V_{th})^2\)\(V_{DS} \geq V_{GS} - V_{th}\)triode: \(R_{DS(\text{on})} \approx \dfrac{1}{2k\,(V_{GS} - V_{th})}\)\(I_G = 0\) (DC)\(V_{\text{avg}} = D\,V_{DD}\)\(P = R_{DS(\text{on})}\,I_D^2\)In the triode region, the full law is \(I_D = k\,[2(V_{GS} - V_{th})V_{DS} - V_{DS}^2]\), which for small \(V_{DS}\) reduces to the resistor \(R_{DS(\text{on})}\). The MOSFET in the simulation follows the square law written without the factor 1/2, with \(k = 0.5\ \text{A/V}^2\) and \(V_{th} = 2\ \text{V}\), without the body diode and with a 2 nF capacitance between gate and source that the drawing does not show. The motor is represented by the resistance and inductance of its winding, without the back-emf from its rotation. The \(0.1\ \Omega\) shunt in the source lead turns the drain current into a voltage the oscilloscope can see, 0.1 V for each ampere, and the PWM runs at 1 kHz.

Let's discuss

  • In 'Id × VGS curve', measure \(V_{GS}\) with the multimeter, red on G and black on S, and the gate current with the ammeter. Raise the gate from 0 to 5 V. At what \(V_{GS}\) does the lamp start to glow?
  • Note \(I_D\) for \(V_{GS}\) of 2.5 V and 3 V and check them against \(k(V_{GS} - V_{th})^2\). From what \(V_{GS}\) does the current leave the parabola, and why?
  • Choose the ramp and put CH1 on G and CH2 on S, at 50 mV/div. Why does the shape on CH2 reproduce the MOSFET curve, and where is \(V_{th}\) on the screen?
  • With the lamp lit, remove \(R_{GS}\) and disconnect the gate. What happens to the lamp, and what changes when \(R_{GS}\) goes back in?
  • In 'PWM motor switch', vary the duty cycle and measure the average voltage across the motor on V DC, with the probes on V and D. Does it follow \(D \cdot 12\ \text{V}\)? With CH2 on the drain, in which part of the cycle does diode D show up?
  • Swap the MOSFET for the BJT with the 5 V PWM and compare the control current and the power in the transistor. Then go back to the MOSFET and raise the gate drive from 5 V to 10 V.
VGS
Id
VDS
Gate current
Region
Power in the MOSFET
Exercises for step 8 10 questions · 4 basic · 4 intermediate · 2 challenge
  1. basic

    An n-channel MOSFET has \(k = 0.5\ \text{A/V}^2\) and \(V_{th} = 2\ \text{V}\). What is the drain current in saturation with \(V_{GS} = 3\ \text{V}\)? And with \(V_{GS} = 1.5\ \text{V}\)?

    Show solution
    With 3 V, \(I_D = k\,(V_{GS} - V_{th})^2\) \(= 0.5 \cdot (3 - 2)^2 = 0.5\ \text{A}\).
    With 1.5 V, the gate is below the threshold, no channel forms and the MOSFET is in cut-off.
    0.5 A with 3 V and practically zero with 1.5 V
  2. basic

    With the MOSFET of the previous exercise, we measure three situations: \(V_{GS} = 1\ \text{V}\) and \(V_{DS} = 12\ \text{V}\); \(V_{GS} = 3\ \text{V}\) and \(V_{DS} = 8\ \text{V}\); \(V_{GS} = 10\ \text{V}\) and \(V_{DS} = 0.2\ \text{V}\). Which region is each one in?

    Show solution
    In the first, \(V_{GS} < V_{th}\), and the MOSFET is in cut-off.
    In the second, \(V_{GS} - V_{th} = 1\ \text{V}\) and \(V_{DS} = 8\ \text{V} \geq 1\ \text{V}\), in saturation.
    In the third, \(V_{GS} - V_{th} = 8\ \text{V}\) and \(V_{DS} = 0.2\ \text{V}\) is far below that, in the triode region, the closed switch.
    Cut-off, saturation and triode
  3. basic

    For the same MOSFET, estimate \(R_{DS(\text{on})}\) with \(V_{GS} = 10\ \text{V}\) and the power it dissipates when carrying 2 A.

    Show solution
    With a small \(V_{DS}\), \(R_{DS(\text{on})} \approx \dfrac{1}{2k\,(V_{GS} - V_{th})}\) \(= \dfrac{1}{2 \cdot 0.5 \cdot 8}\) \(= 0.125\ \Omega\).
    The power is \(P = R_{DS(\text{on})}\,I_D^2 = 0.125 \cdot 2^2\).
    \(R_{DS(\text{on})} \approx 0.125\ \Omega\) and \(P \approx 0.5\ \text{W}\)
  4. basic

    A 1 kHz PWM with a 30% duty cycle drives a MOSFET that switches a motor on 12 V. How long is the switch closed in each cycle, and what is the average voltage across the motor, neglecting losses?

    Show solution
    The period is \(T = \dfrac{1}{1000} = 1\ \text{ms}\), and the switch stays closed for \(0.3 \cdot 1\ \text{ms} = 0.3\ \text{ms}\).
    The average voltage is \(V_{\text{avg}} = D\,V_{DD} = 0.3 \cdot 12\).
    0.3 ms per cycle and 3.6 V on average
  5. intermediate

    A 2 A motor has to be switched by a microcontroller pin that supplies at most 20 mA. With a bipolar power transistor of \(\beta = 50\), and a margin of two on the base current, can the pin cope? And with a MOSFET?

    Show solution
    The bipolar transistor needs \(I_B = 2 \cdot \dfrac{2}{50} = 80\ \text{mA}\), four times what the pin supplies, and would need a second transistor to drive its base.
    The MOSFET gate draws no steady current, and the pin only has to charge and discharge the gate capacitance at each switching edge.
    With the bipolar, no; with the MOSFET, yes, provided \(V_{GS}\) gets well above \(V_{th}\), which calls for a MOSFET designed for 5 V or 3.3 V on the gate.
  6. intermediate

    The gate of a MOSFET has 2 nF and is charged to 10 V through a \(100\ \Omega\) resistor. What is the time constant, how much charge goes into the gate and what average current does the drive circuit supply with a 20 kHz PWM?

    Show solution
    The time constant is \(\tau = R\,C = 100 \cdot 2 \cdot 10^{-9}\) \(= 0.2\ \mu\text{s}\), and the charge is \(Q = C\,V = 2 \cdot 10^{-9} \cdot 10\) \(= 20\ \text{nC}\).
    In each cycle, this charge is drawn from the drive supply and returned to earth, and the average current is \(I = Q\,f = 20 \cdot 10^{-9} \cdot 20\,000\).
    \(\tau = 0.2\ \mu\text{s}\), \(Q = 20\ \text{nC}\) and about 0.4 mA on average; the DC gate current is zero, but fast switching has a cost.
  7. intermediate

    The MOSFET of exercise 1 switches a \(6\ \Omega\) lamp on 12 V, with the source on earth. Which region is it in with \(V_{GS} = 3.5\ \text{V}\), and what is the current? And with \(V_{GS} = 5\ \text{V}\)?

    Show solution
    Assuming saturation with 3.5 V, \(I_D = 0.5 \cdot 1.5^2 \approx 1.13\ \text{A}\) and \(V_{DS} = 12 - 6 \cdot 1.125 = 5.25\ \text{V}\), greater than \(V_{GS} - V_{th} = 1.5\ \text{V}\), which confirms saturation.
    With 5 V, the same calculation would give 4.5 A, more than the lamp lets through, and the MOSFET moves into the triode region. With \(R_{DS(\text{on})} \approx \dfrac{1}{2 \cdot 0.5 \cdot 3} \approx 0.33\ \Omega\), \(I_D \approx \dfrac{12}{6.33}\).
    Saturation and about 1.13 A with 3.5 V; triode and about 1.9 A with 5 V (the exact triode calculation gives 1.88 A).
  8. intermediate

    A common model for electrostatic discharge from the human body is a 100 pF capacitor charged to 2 kV. If it discharges into the gate of a MOSFET with 2 nF, what voltage does the gate reach? Can the oxide withstand it?

    Show solution
    The charge is shared between the two capacitors, and the final voltage is \(V = \dfrac{C_1\,V_1}{C_1 + C_2} = \dfrac{100 \cdot 2000}{100 + 2000}\) \(\approx 95\ \text{V}\).
    Ordinary MOSFETs accept \(V_{GS}\) up to about 20 V.
    About 95 V, well above what the oxide can withstand; a careless touch can ruin the MOSFET without any visible sign.
  9. challenge

    A \(6\ \Omega\) motor on 12 V is switched on all the time. Compare the power dissipated by a MOSFET with \(R_{DS(\text{on})} = 0.125\ \Omega\) and by a bipolar transistor with \(\beta = 100\) whose base is fed from 5 V through \(1\ \text{k}\Omega\), with \(V_{BE} = 0.7\ \text{V}\).

    Show solution
    With the MOSFET, \(I = \dfrac{12}{6 + 0.125} \approx 1.96\ \text{A}\) and \(P = 0.125 \cdot 1.96^2 \approx 0.48\ \text{W}\).
    In the bipolar, \(I_B = \dfrac{5 - 0.7}{1000} = 4.3\ \text{mA}\), and \(\beta\,I_B = 0.43\ \text{A}\), less than the motor's 2 A, so the transistor stays in the active region. Then \(V_{CE} = 12 - 6 \cdot 0.43 \approx 9.4\ \text{V}\), and \(P = 9.42 \cdot 0.43\).
    About 0.48 W in the MOSFET, with the motor at full load, against some 4 W in the bipolar, which still gives the motor only a fifth of the current.
  10. challenge

    A MOSFET with \(R_{DS(\text{on})} = 0.125\ \Omega\) switches 2 A into an inductive load, with a 20 kHz PWM and a 50% duty cycle, from 12 V. Each transition lasts 100 ns and dissipates about \(V\,I\,t/2\). How much does it dissipate in total, adding conduction and switching?

    Show solution
    In conduction, \(P_{\text{cond}} = D\,R_{DS(\text{on})}\,I^2\) \(= 0.5 \cdot 0.125 \cdot 4 = 0.25\ \text{W}\).
    Each transition dissipates \(E = \dfrac{12 \cdot 2 \cdot 100 \cdot 10^{-9}}{2}\) \(= 1.2\ \mu\text{J}\), and there are two per cycle, \(P_{\text{sw}} = 2 \cdot 1.2 \cdot 10^{-6} \cdot 20\,000\) \(= 48\ \text{mW}\).
    About 0.30 W; switching weighs more the higher the frequency, which is why gate drivers charge the gate quickly.
STEP 9

How does the mains socket become a steady 5 V?

Most electronic circuits run on a few volts DC, whereas the socket supplies the 127 V AC mains. A linear power supply makes this conversion in four stages, which we can follow one by one with the oscilloscope, from the transformer to the regulator.

The transformer has two windings on the same iron core, and the voltage across each is proportional to its number of turns. In a 127 V to 9 V transformer, we find a turns ratio of about 14 to 1, and the peak on the secondary is \(9\sqrt{2} \approx 12.7\ \text{V}\). The two windings have no electrical connection between them, so the secondary is isolated from the mains.

In the bridge rectifier, two diodes conduct in each half-cycle and steer the current to the same side of the load in both halves of the cycle. Output P loses two drops of about 0.7 V and repeats the half-waves at 120 Hz, twice the mains frequency. Because the oscilloscope measures relative to earth, which here is the negative terminal of the bridge, S1 and S2 each show only half of the sine wave, and to see the whole secondary we measure between the two with the multimeter on V AC.

The smoothing capacitor charges at the top of each half-wave and carries the load on its own until the next peak, discharging along a ramp. This ripple grows with the current and shrinks with the capacitance. The estimate \(\Delta V \approx I/(f\,C)\) assumes that the discharge lasts until the next peak, without subtracting the recharge time, and so it tends to give a little more than we measure. This ripple is what we see on CH1 with AC coupling.

The 7805 voltage regulator delivers 5 V as long as its input stays about 2 V above that, the so-called dropout voltage. We can think of it as a resistance that adjusts itself, and the voltage difference times the current turns into heat inside it. When the trough of the ripple dips below about 7 V, regulation is lost and the ripple passes through to the output.

Today's mobile phone chargers generally use switch-mode power supplies, which are lighter and more efficient, but they too rectify and smooth the mains voltage right at the input.

\(\dfrac{V_2}{V_1} = \dfrac{N_2}{N_1}\)\(V_{p2} = \sqrt{2}\,V_{2,\text{RMS}}\)\(V_{P,\text{peak}} \approx V_{p2} - 1.4\ \text{V}\)\(\Delta V \approx \dfrac{I}{f\,C}\), with \(f = 120\ \text{Hz}\)\(V_{\text{in}} \geq 5\ \text{V} + V_{\text{drop}}\)\(P_{\text{reg}} \approx (\overline{V}_{\text{in}} - 5\ \text{V})\,I\)The transformer voltages are RMS values, and the transformer in the simulation is ideal, with no losses. The diodes are silicon. The 7805 in the simulation is a model with a 5 V reference, an error amplifier and a Darlington pair, with a dropout of 1.7 V to 2 V depending on the current and a quiescent current of about 4 mA; unlike the real component, it neither limits the current nor shuts down when it gets hot. The mains neutral and the negative of the bridge share the same earth symbol only to give the instruments a reference, and no current passes from one side of the transformer to the other.

Let's discuss

  • With the multimeter on V AC, put the red probe on S1 and the black on S2 and read the secondary voltage. Does it agree with \(127 \cdot N_2/N_1\) for all three transformers?
  • Remove the capacitor and put CH1 on P. What shape appears on the screen, and what frequency does the oscilloscope show beneath it?
  • Reconnect the capacitor, switch CH1 to AC coupling at 0.5 V/div and measure the ripple at P with 470 µF, 1000 µF and 2200 µF, on a 10 Ω load. Compare each reading with \(I/(120\,C)\).
  • Choose the 6 V transformer and the 10 Ω load, with CH1 on P and CH2 on O. At what voltage at P does the output start to follow the ripple?
  • Put the ammeter in series with the load, then with \(D_1\), on A DC, and finally with the capacitor, on A AC. Why is the mean current in \(D_1\) half the load current?
  • With the 12 V transformer and the 5.6 Ω load, read the power in the regulator. How much of it remains with the 9 V transformer?
Secondary peak
Peak / trough at P
Ripple at P (peak-to-peak)
Output O (mean)
Load current
Power in the 7805
Exercises for step 9 10 questions · 4 basic · 4 intermediate · 2 challenge
  1. basic

    A transformer steps the 127 V mains down to 12 V, both RMS. What is the turns ratio \(N_1/N_2\), and what is the peak voltage on the secondary?

    Show solution
    The turns ratio equals the voltage ratio, \(\dfrac{N_1}{N_2} = \dfrac{127}{12} \approx 10.6\).
    On the secondary, the peak is \(V_{p2} = \sqrt{2} \cdot 12\).
    About 10.6 turns on the primary for each turn on the secondary, and a peak of about 17.0 V
  2. basic

    A 9 V RMS secondary feeds a bridge of silicon diodes, with no capacitor. What is the peak voltage at the bridge output, and how many half-waves per second does the oscilloscope show?

    Show solution
    The secondary peak is \(9\sqrt{2} \approx 12.73\ \text{V}\), and the current passes through two diodes, which take about 0.7 V each, \(V_{P,\text{peak}} \approx 12.73 - 1.4\).
    Each half-cycle of the mains becomes a positive half-wave, and there are 2 per cycle, \(2 \cdot 60\).
    About 11.3 V peak, with 120 half-waves per second
  3. basic

    A supply with a bridge rectifier delivers 0.5 A to a load, with a 2200 µF smoothing capacitor. Estimate the peak-to-peak ripple.

    Show solution
    With the bridge, the capacitor recharges 120 times per second, and \(\Delta V \approx \dfrac{I}{f\,C} = \dfrac{0.5}{120 \cdot 2200 \cdot 10^{-6}}\).
    About 1.9 V, a little above what we would measure, because the capacitor starts recharging before the end of each half-cycle
  4. basic

    In the bridge rectifier, how many diodes conduct at the same time? If the load draws 0.5 A, what is the average current in each diode?

    Show solution
    In each half-cycle two diodes conduct, one on each side of the load, and in the next half-cycle the other two conduct.
    Each diode carries the load current for only half the time, and its average is \(\dfrac{0.5}{2} = 0.25\ \text{A}\).
    Two at a time, with an average of 0.25 A in each diode; the current peaks, while the capacitor recharges, are much larger than that
  5. intermediate

    We want a ripple of at most 1 V with a 1 A load and bridge rectification. What is the smallest capacitor that will do, and which standard value would we choose?

    Show solution
    Making \(C\) the subject of the ripple estimate, \(C \geq \dfrac{I}{f\,\Delta V} = \dfrac{1}{120 \cdot 1}\) \(\approx 8.3 \cdot 10^{-3}\ \text{F}\).
    At least about 8300 µF; the next standard value is 10,000 µF
  6. intermediate

    The input of a 7805 averages 12 V, and the load draws 0.5 A at 5 V. How much power does the regulator dissipate, and what is the efficiency of this stage?

    Show solution
    The voltage difference is dropped across the regulator, \(P_{\text{reg}} = (12 - 5) \cdot 0.5 = 3.5\ \text{W}\).
    The load receives \(5 \cdot 0.5 = 2.5\ \text{W}\) of the \(12 \cdot 0.5 = 6\ \text{W}\) going in, and \(\eta = \dfrac{2.5}{6}\).
    About 3.5 W becomes heat, and the efficiency is close to 42%, without counting the regulator's own consumption
  7. intermediate

    A supply has a 9 V RMS secondary, a silicon bridge, a 1000 µF capacitor and a 0.5 A load, followed by a 7805 with a dropout voltage of 2 V. According to the ripple estimate, can the regulator hold 5 V?

    Show solution
    The peak at P is \(9\sqrt{2} - 1.4 \approx 11.33\ \text{V}\), and the estimated ripple is \(\Delta V \approx \dfrac{0.5}{120 \cdot 0.001} \approx 4.17\ \text{V}\).
    The trough sits at \(11.33 - 4.17 \approx 7.16\ \text{V}\), and the regulator needs \(5 + 2 = 7\ \text{V}\).
    By the estimate, the trough sits at about 7.2 V, right at the 7 V limit. The estimate exaggerates the ripple and the real trough is a little higher, but there is little margin left for a dip in the mains.
  8. intermediate

    With the same 0.5 A load and the same 2200 µF capacitor, what happens to the ripple if we replace the bridge with a half-wave rectifier, with a single diode?

    Show solution
    With half-wave rectification, the capacitor recharges only once per mains cycle, and the frequency in the calculation becomes 60 Hz, \(\Delta V \approx \dfrac{0.5}{60 \cdot 2200 \cdot 10^{-6}}\).
    About 3.8 V, twice the 1.9 V of the bridge, because the capacitor waits a whole cycle between one recharge and the next
  9. challenge

    We need 5 V and 1 A from the 127 V mains, with a 7805 whose dropout voltage is 2 V and a 4700 µF capacitor, leaving 0.5 V of margin at the trough. What is the smallest RMS secondary voltage that will do? With a 9 V transformer, how much does the regulator dissipate?

    Show solution
    The estimated ripple is \(\Delta V \approx \dfrac{1}{120 \cdot 4.7 \cdot 10^{-3}} \approx 1.77\ \text{V}\), and the trough needs \(5 + 2 + 0.5 = 7.5\ \text{V}\).
    The peak at P must reach \(7.5 + 1.77 = 9.27\ \text{V}\), and the secondary peak \(9.27 + 1.4 = 10.67\ \text{V}\), or \(V_{\text{RMS}} \geq \dfrac{10.67}{\sqrt{2}} \approx 7.55\ \text{V}\).
    With 9 V, the peak at P is \(11.33\ \text{V}\), and the mean of a ramp is close to the peak minus half the ripple, \(11.33 - 0.89 \approx 10.44\ \text{V}\). So \(P_{\text{reg}} \approx (10.44 - 5) \cdot 1\).
    The secondary needs at least about 7.6 V RMS, and 9 V is the standard value that will do; with it, the regulator dissipates some 5.4 W and needs a heatsink.
  10. challenge

    Without a heatsink, a 7805 in the TO-220 package has a thermal resistance of about 65 °C/W from junction to air, and the junction should not exceed 125 °C. In a 25 °C room, with the input averaging 10.4 V, what is the largest current it can supply without a heatsink?

    Show solution
    The junction can rise \(125 - 25 = 100\ ^\circ\text{C}\) above the air, and the maximum power is \(P = \dfrac{100}{65} \approx 1.54\ \text{W}\).
    This power is \((10.4 - 5)\,I\), and \(I = \dfrac{1.54}{5.4}\).
    About 285 mA; above that, the regulator needs a heatsink or a lower input voltage
STEP 10

What sets the gain of an operational amplifier?

The operational amplifier, or op-amp, is an integrated circuit with two inputs, the non-inverting input (+) and the inverting input (−), and one output. It amplifies the difference between its inputs with an enormous gain, typically of the order of a hundred thousand, and for that reason it rarely works on its own. What the circuit actually does is decided by the resistors and capacitors we connect around it.

When part of the output is fed back to the inverting input, this negative feedback makes the op-amp adjust its output until the two inputs sit at almost the same potential. From this we get the two golden rules, valid as long as the output stays away from its limits, which say that the voltage difference between the inputs is practically zero and that no current flows into them.

In the inverting amplifier, the + input is at earth and the − input sits at a virtual earth, and since the current arriving through \(R_1\) has nowhere to go but \(R_f\), the gain is \(-R_f/R_1\). If the signal goes straight into the + input, we have the non-inverting amplifier, with the output in phase and a gain of \(1 + R_f/R_g\), and the case with gain 1 is the voltage follower, which draws almost no current from whatever drives it and supplies the load current by itself.

With several inputs, each with its own resistor, the currents meet at the virtual earth and the inverting amplifier becomes a summing amplifier, typically the heart of an analogue audio mixer. Replacing \(R_f\) with a capacitor, we arrive at the integrator, in which a constant input charges the capacitor with a fixed current and the output falls in a ramp.

If we remove the feedback, the enormous gain throws the output to one of its extremes as soon as one input passes the other, and the circuit becomes a comparator. These extremes, the supply rails, lie a little below the supply voltage, and the output cannot go beyond them, however large the gain we ask for. When we ask for more, the wave comes out clipped and we say that the op-amp has saturated.

\(v_S = A\,(v_+ - v_-)\), \(A \approx 10^5\)\(v_+ \approx v_-\)\(i_+ = i_- \approx 0\)inverting: \(G = -\dfrac{R_f}{R_1}\)non-inverting: \(G = 1 + \dfrac{R_f}{R_g}\)summing: \(v_S = -R_f\left(\dfrac{v_1}{R_1} + \dfrac{v_2}{R_2}\right)\)integrator: \(v_S = -\dfrac{1}{R\,C}\displaystyle\int v_E\,dt\)\(|v_S| \leq V_{CC} - 1.5\ \text{V}\)The op-amp in the simulation has a gain of \(10^5\), inputs that draw no current and an output that saturates 1.5 V below each rail, with no speed limit (slew rate) and no bandwidth limit; real op-amps lose gain at high frequencies. In the integrator, an \(R_f\) of \(1\ \text{M}\Omega\) in parallel with C stops small steady offsets from driving the output to the rails.

Let's discuss

  • In the inverting amplifier, move CH2 to N and turn volts/div down to 5 mV. How far does the inverting input move away from earth, and what happens to it when the output saturates?
  • With the multimeter on A AC, place the ammeter in series with \(R_1\) and then with \(R_f\). Why are the two currents equal?
  • Increase \(R_f\) until the output clips, with 1 V peak at the input. At what gain does this happen with a ±15 V supply, and with ±5 V?
  • In the voltage follower, measure the current in \(R_s\) and in the load. Where does the load current come from?
  • In the comparator, move Vref and read the fraction of the period with the output high. Which Vref gives 50%, and what happens when Vref goes beyond the peak of the input?
  • In the integrator, with a square-wave input, measure the Vpp of the triangle wave at 1 kHz and at 500 Hz. Does the output double when the frequency is halved?
Predicted gain
Measured gain (Vpp out / Vpp in)
Output: max / min
Largest |V(+) − V(−)|
Exercises for step 10 10 questions · 4 basic · 4 intermediate · 2 challenge
  1. basic

    An inverting amplifier has \(R_1 = 10\ \text{k}\Omega\) and \(R_f = 47\ \text{k}\Omega\), with a sine wave of 0.5 V peak at the input. What is the gain, and what does the output look like?

    Show solution
    The gain of the inverting amplifier is \(G = -\dfrac{R_f}{R_1} = -\dfrac{47}{10} = -4.7\).
    The output has a peak of \(4.7 \cdot 0.5 = 2.35\ \text{V}\), and the minus sign means that it rises when the input falls.
    \(G = -4.7\); the output is a sine wave of 2.35 V peak, inverted relative to the input
  2. basic

    A non-inverting amplifier has \(R_g = 10\ \text{k}\Omega\) and \(R_f = 22\ \text{k}\Omega\). What is the gain, and what is the output peak for an input of 1 V peak?

    Show solution
    In the non-inverting amplifier, \(G = 1 + \dfrac{R_f}{R_g} = 1 + \dfrac{22}{10} = 3.2\).
    \(G = 3.2\), with an output of 3.2 V peak, in phase with the input
  3. basic

    In the inverting amplifier with \(R_1 = 10\ \text{k}\Omega\) and \(R_f = 47\ \text{k}\Omega\), the input receives a steady 1 V. Using the golden rules, find the voltage at the inverting input, the current in \(R_1\) and the output voltage.

    Show solution
    The + input is at earth and the feedback brings the − input to the same potential, 0 V, the virtual earth.
    The current in \(R_1\) is \(I = \dfrac{1 - 0}{10\,000} = 0.1\ \text{mA}\), and since nothing flows into the op-amp, all of it carries on through \(R_f\).
    So \(V_S = 0 - R_f\,I\) \(= -47\,000 \cdot 0.1 \cdot 10^{-3}\).
    0 V at the inverting input, 0.1 mA in \(R_1\) and in \(R_f\), and \(V_S = -4.7\ \text{V}\)
  4. basic

    A sensor behaves like a 1 V peak source with an internal resistance of \(100\ \text{k}\Omega\). What voltage reaches a \(1\ \text{k}\Omega\) load connected straight to it, and what voltage reaches the load with a voltage follower in between?

    Show solution
    Connected directly, the load forms a potential divider with the internal resistance, \(V = 1 \cdot \dfrac{1}{100 + 1} \approx 0.0099\ \text{V}\).
    The follower draws no current from the sensor, receives the whole 1 V at its + input and repeats it at the output, supplying the load current itself.
    About 9.9 mV peak without the follower and 1 V with it, with 1 mA peak in the load coming from the op-amp
  5. intermediate

    An inverting amplifier has \(R_1 = 10\ \text{k}\Omega\) and \(R_f = 220\ \text{k}\Omega\), with a ±15 V supply, and saturates 1.5 V below each rail. What does the output look like for a sine wave of 1 V peak? What is the largest input peak that gets through without clipping, and what would it be with a ±5 V supply?

    Show solution
    The gain is \(-22\), so the output would need 22 V peak, but it only reaches \(15 - 1.5 = 13.5\ \text{V}\), and the peaks come out flattened.
    Without clipping, the input can go up to \(\dfrac{13.5}{22} \approx 0.614\ \text{V}\). With ±5 V, the output saturates at 3.5 V, and the limit drops to \(\dfrac{3.5}{22}\).
    The output is clipped at ±13.5 V; the largest peak without clipping is about 0.61 V with ±15 V and about 0.16 V with ±5 V
  6. intermediate

    An inverting summing amplifier has \(R_1 = R_2 = R_f = 10\ \text{k}\Omega\). One input receives a sine wave of 1 V peak, and the other a steady 2 V. Between which values does the output oscillate, and what is its average?

    Show solution
    With equal resistors, \(v_S = -(v_1 + v_2) = -(v_1 + 2)\).
    When \(v_1 = 1\ \text{V}\), \(v_S = -3\ \text{V}\), and when \(v_1 = -1\ \text{V}\), \(v_S = -1\ \text{V}\).
    The output oscillates between −3 V and −1 V, with an average of −2 V
  7. intermediate

    A comparator receives a sine wave of 2 V peak at its + input and a 1 V reference at its − input, with a ±15 V supply (saturation at ±13.5 V). For what fraction of the period is the output high, and what is its average? Which reference would give 50%?

    Show solution
    The output stays high while \(2\,\sin\,\theta > 1\), or \(\sin\,\theta > 0.5\), which holds from 30° to 150°, a band of 120° out of 360°.
    The average is \(13.5 \cdot \dfrac{1}{3} - 13.5 \cdot \dfrac{2}{3}\).
    One third of the period high, with an average of −4.5 V; a 0 V reference would give 50%
  8. intermediate

    An integrator has \(R = 10\ \text{k}\Omega\) and \(C = 10\ \text{nF}\) and receives a ±1 V square wave at 1 kHz. What is the slope of the output ramp, and what is its peak-to-peak value? And at 500 Hz?

    Show solution
    In each half cycle, the input is constant and the output changes at \(\dfrac{V_E}{R\,C} = \dfrac{1}{10^4 \cdot 10^{-8}} = 10\,000\ \text{V/s}\), or 10 V/ms.
    Half a cycle at 1 kHz lasts 0.5 ms, and the output moves \(10 \cdot 0.5 = 5\ \text{V}\). At 500 Hz, half a cycle lasts 1 ms.
    Ramps of 10 V/ms, forming a triangle wave of 5 V peak-to-peak at 1 kHz and 10 V at 500 Hz
  9. challenge

    A microphone delivers 20 mV peak, and we want 2 V peak for the input of a converter, without inverting the signal. Design the amplifier with resistors from the E12 series of preferred values and check whether it saturates with a ±5 V supply (saturation at ±3.5 V).

    Show solution
    Without inverting, we use the non-inverting amplifier, with \(1 + \dfrac{R_f}{R_g} = \dfrac{2}{0.02} = 100\), or \(\dfrac{R_f}{R_g} = 99\).
    With \(R_g = 1\ \text{k}\Omega\) and \(R_f = 100\ \text{k}\Omega\), the gain is 101, and the output reaches \(101 \cdot 0.02 = 2.02\ \text{V}\) peak.
    \(R_g = 1\ \text{k}\Omega\) and \(R_f = 100\ \text{k}\Omega\), with about 2.02 V peak at the output, below the 3.5 V of saturation
  10. challenge

    An integrator with \(R = 100\ \text{k}\Omega\) and \(C = 1\ \mu\text{F}\), with no resistor in parallel with C, starts at 0 V and receives a steady 0.5 V. How long does the output take to saturate at −13.5 V? Why, in practice, do we connect a large resistor in parallel with C?

    Show solution
    The output falls at \(\dfrac{0.5}{10^5 \cdot 10^{-6}} = 5\ \text{V/s}\), and reaches −13.5 V at \(t = \dfrac{13.5}{5}\).
    Any small steady voltage at the input, even the op-amp’s own internal offset, is integrated in the same way and drives the output to the rail over time. A resistor \(R_f\) in parallel limits the DC gain to \(-R_f/R\).
    About 2.7 s; the parallel resistor stops steady offsets from building up until the output saturates
STEP 11

How does an eight-pin chip keep time?

The 555 is an integrated circuit from the 1970s that is probably still inside some flashing light, alarm or timer near you. On the outside it has eight pins, and on the inside it has only a few parts, which the 'inside the 555' panel on the bench shows together with the circuit voltages at every instant.

Three equal 5 kΩ resistors divide the supply and create two references, at 2/3 and at 1/3 of VCC. The threshold comparator watches pin 6 and signals when it goes above 2/3 of VCC, and the trigger comparator watches pin 2 and signals when it drops below 1/3. Both control a flip-flop, a one-bit memory. The trigger switches the output on, at pin 3, the threshold switches it off, and while the output is low a transistor connects pin 7, the discharge, to earth.

In astable mode, the capacitor charges through \(R_1 + R_2\) up to 2/3 of VCC, when the threshold switches the output off and the discharge pin starts to empty it through \(R_2\) alone. When it reaches 1/3 of VCC, the trigger switches the output on again. The cycle then repeats without stopping. Each stretch is an RC charge or discharge between 1/3 and 2/3 of the voltage, which takes \(\ln 2 \approx 0.693\) time constants, and the formula for the frequency follows from that.

Since the high time uses \(R_1 + R_2\) and the low time only \(R_2\), the output stays high for longer than it stays low, and the duty cycle of this astable circuit is above 50%. It gets close to 50% when \(R_2\) is much larger than \(R_1\).

In monostable mode, the output stays low until a tap on pin 2, which sets the flip-flop and makes the discharge pin release the capacitor, which then charges through R from zero up to 2/3 of VCC, when the threshold ends the pulse. This time, which we can measure on the oscilloscope, is \(R\,C\ln 3 \approx 1.1\,R\,C\) and does not depend on how long the tap lasts, provided the tap is shorter than the pulse.

With an LED at the output, we can see the 555 at work. At low frequencies the LED blinks, and above roughly twenty blinks per second the eye tends to merge them, so the LED seems to stay on all the time, at its average brightness.

\(t_{\text{high}} = 0.693\,(R_1 + R_2)\,C\)\(t_{\text{low}} = 0.693\,R_2\,C\)\(f = \dfrac{1}{t_{\text{high}} + t_{\text{low}}}\)\(f \approx \dfrac{1.44}{(R_1 + 2R_2)\,C}\)\(D = \dfrac{R_1 + R_2}{R_1 + 2R_2}\)monostable: \(T \approx 1.1\,R\,C\)thresholds: \(\tfrac{1}{3}\,V_{CC}\) and \(\tfrac{2}{3}\,V_{CC}\)\(D\) is the duty cycle, the fraction of the period with the output high. The 555 in the simulation is a model with the internal 5 kΩ divider, ideal comparators, a flip-flop in which the trigger has priority, and a high output 1.7 V below VCC, as in a bipolar 555 driving a load. Pin 4 (reset) is connected to VCC, and pin 5 is left free, although in real circuits it usually gets a 10 nF capacitor to earth. The comparators are evaluated at every time step, which keeps the error in the frequency below 0.5%.

Let's discuss

  • In the astable circuit, with CH1 on the capacitor (T) and CH2 on the output (O), between which voltages does the capacitor oscillate? Which comparator lights up in the 'inside the 555' panel at the instant the output rises, and which one lights up when it falls?
  • Measure on the screen the high time and the low time of the output and compare them with \(0.693\,(R_1 + R_2)\,C\) and \(0.693\,R_2\,C\).
  • Take \(R_2\) from 10 kΩ to 100 kΩ, without touching \(R_1\). Does the duty cycle approach 50%? And with \(R_1 = 100\ \text{k}\Omega\) and \(R_2 = 1\ \text{k}\Omega\)?
  • With the multimeter on V DC at the output, read the mean and compare it with the high voltage times \(D\). Then, on A DC, place the ammeter in series with \(R_3\) and measure the average LED current.
  • Reduce C little by little. At what frequency does the LED stop blinking and seem to stay on all the time?
  • In the monostable circuit, tap 'Trigger' and measure the width of the pulse. Does it change if you tap again in the middle of the pulse?
Predicted f
f measured at the output
Predicted duty cycle
Measured duty cycle
Exercises for step 11 10 questions · 4 basic · 4 intermediate · 2 challenge
  1. basic

    An astable 555 has \(R_1 = 1\ \text{k}\Omega\), \(R_2 = 10\ \text{k}\Omega\) and \(C = 100\ \text{nF}\). What are the frequency and the duty cycle?

    Show solution
    The frequency is \(f \approx \dfrac{1.44}{(1 + 2 \cdot 10) \cdot 10^3 \cdot 100 \cdot 10^{-9}}\) \(= \dfrac{1.44}{2.1 \cdot 10^{-3}}\).
    The duty cycle is \(D = \dfrac{1 + 10}{1 + 20} = \dfrac{11}{21}\).
    About 686 Hz, with the output high for 52.4% of the period
  2. basic

    A monostable 555 has \(R = 100\ \text{k}\Omega\) and \(C = 10\ \mu\text{F}\). How long does the output pulse last after a tap on the trigger?

    Show solution
    In the monostable circuit, \(T \approx 1.1\,R\,C = 1.1 \cdot 10^5 \cdot 10^{-5}\).
    About 1.1 s
  3. basic

    An astable 555 runs on a 9 V supply. Between which voltages does the capacitor oscillate, and what is the peak-to-peak value of this voltage on the oscilloscope?

    Show solution
    The comparators change state at \(\tfrac{1}{3} \cdot 9 = 3\ \text{V}\) and at \(\tfrac{2}{3} \cdot 9 = 6\ \text{V}\), and the capacitor goes back and forth between these two values.
    Between 3 V and 6 V, with 3 V peak-to-peak
  4. basic

    In the astable circuit of the simulation, with \(R_1 = 10\ \text{k}\Omega\), \(R_2 = 47\ \text{k}\Omega\) and \(C = 10\ \mu\text{F}\), how long does the output stay high and how long low? What is the frequency?

    Show solution
    While high, the capacitor charges through \(R_1 + R_2\), \(t_{\text{high}} = 0.693 \cdot 57\,000 \cdot 10^{-5}\) \(\approx 0.395\ \text{s}\).
    While low, it discharges through \(R_2\) alone, \(t_{\text{low}} = 0.693 \cdot 47\,000 \cdot 10^{-5}\) \(\approx 0.326\ \text{s}\).
    The period is the sum, \(T \approx 0.721\ \text{s}\), and \(f = \dfrac{1}{0.721}\).
    About 0.40 s high and 0.33 s low, with \(f \approx 1.39\ \text{Hz}\)
  5. intermediate

    We want an LED blinking at about 1 Hz with an astable 555, \(R_1 = 10\ \text{k}\Omega\) and \(R_2 = 68\ \text{k}\Omega\). Which capacitor should we use, and what frequency will we get with the nearest standard value?

    Show solution
    Rearranging the formula for C, \(C \approx \dfrac{1.44}{(R_1 + 2R_2)\,f} = \dfrac{1.44}{146\,000 \cdot 1}\) \(\approx 9.86\ \mu\text{F}\).
    With \(10\ \mu\text{F}\), \(f \approx \dfrac{1.44}{146\,000 \cdot 10^{-5}}\).
    \(C = 10\ \mu\text{F}\), giving about 0.99 Hz
  6. intermediate

    Calculate the duty cycle of an astable circuit with \(R_1 = 1\ \text{k}\Omega\) and \(R_2 = 100\ \text{k}\Omega\), and with \(R_1 = 100\ \text{k}\Omega\) and \(R_2 = 1\ \text{k}\Omega\). Why does this circuit never go below 50%?

    Show solution
    In the first case, \(D = \dfrac{101}{201} \approx 50.2\%\), and in the second, \(D = \dfrac{101}{102} \approx 99.0\%\).
    The capacitor charges through \(R_1 + R_2\) and discharges through \(R_2\) alone, so charging always takes longer than discharging.
    About 50.2% and 99.0%; the high time is always longer than the low time, and \(D\) only approaches 50% when \(R_2 \gg R_1\)
  7. intermediate

    The output of a 555 on a 9 V supply sits at 7.3 V when high. Which resistor from the E12 series limits a red LED (1.8 V at 10 mA) to about 10 mA? With a duty cycle of 54.8%, what is the average current in the LED?

    Show solution
    That leaves \(7.3 - 1.8 = 5.5\ \text{V}\) for the resistor, and \(R = \dfrac{5.5}{0.01} = 550\ \Omega\). The E12 value just above is \(560\ \Omega\), with \(I = \dfrac{5.5}{560} \approx 9.8\ \text{mA}\).
    The average only counts the high time, \(0.548 \cdot 9.8\).
    \(560\ \Omega\), with about 9.8 mA while the LED is lit and 5.4 mA on average
  8. intermediate

    A monostable circuit has \(R = 47\ \text{k}\Omega\) and \(C = 22\ \mu\text{F}\). How long does the pulse last? What happens if someone holds the trigger button down for 3 s?

    Show solution
    The pulse lasts \(T \approx 1.1 \cdot 47\,000 \cdot 22 \cdot 10^{-6}\) \(\approx 1.14\ \text{s}\).
    With pin 2 below 1/3 of VCC, the trigger keeps telling the flip-flop to set, and it has priority over the threshold. The capacitor reaches 2/3 of VCC, but the output only drops when the button is released.
    About 1.14 s; holding the button for 3 s keeps the output high for those 3 s
  9. challenge

    We want a 10 s timer using a monostable 555 and a 100 µF electrolytic capacitor. Which resistor will do? With resistors from the E12 series, how can we get close to it? Does the ±20% tolerance of the capacitor matter more or less than the choice of resistor?

    Show solution
    From the formula, \(R = \dfrac{T}{1.1\,C} = \dfrac{10}{1.1 \cdot 10^{-4}}\) \(\approx 90.9\ \text{k}\Omega\).
    In the E12 series, \(82\ \text{k}\Omega + 8.2\ \text{k}\Omega\) in series give \(90.2\ \text{k}\Omega\), and \(T \approx 1.1 \cdot 90\,200 \cdot 10^{-4} \approx 9.9\ \text{s}\).
    With the capacitor varying by ±20%, the time can range from about 7.9 s to 11.9 s.
    About 91 kΩ, for example 82 kΩ + 8.2 kΩ; the tolerance of the capacitor matters much more than the resistor, and fine adjustment calls for a potentiometer in series
  10. challenge

    In the astable circuit with \(R_1 = 10\ \text{k}\Omega\), \(R_2 = 47\ \text{k}\Omega\) and \(C = 10\ \mu\text{F}\), the capacitor starts at 0 V when we switch on the supply. How long does the first high time last, and why is it longer than the others?

    Show solution
    In the first cycle, the capacitor rises from 0 to 2/3 of VCC, rather than from 1/3 to 2/3. The time is \((R_1 + R_2)\,C \ln\dfrac{V_{CC} - 0}{V_{CC} - \tfrac{2}{3}V_{CC}}\) \(= (R_1 + R_2)\,C\ln 3\).
    With the values given, \(t_1 = 57\,000 \cdot 10^{-5} \cdot 1.0986\) \(\approx 0.626\ \text{s}\), against \(0.395\ \text{s}\) in the following cycles.
    About 0.63 s, because the capacitor starts empty and also has to climb the stretch from 0 to 1/3 of VCC
WRAP-UP

Challenges

RC circuits

In a stairwell light timer, a 470 µF capacitor charged to 12 V discharges through 100 kΩ, and the light goes off when the voltage across it falls below 4 V. How long does the light stay on?

Show solution
The time constant is \(\tau = 10^5 \cdot 470 \cdot 10^{-6} = 47\ \text{s}\).
The light goes off when \(4 = 12\,e^{-t/\tau}\), at \(t = \tau \ln 3 = 47 \cdot 1.099\) \(\approx 52\ \text{s}\), less than a minute and a little over one time constant.
RLC circuits

The tuner of an FM radio uses a 0.1 µH coil. What capacitance tunes in a 100 MHz station? If the circuit has Q = 50, what bandwidth does it let through?

Show solution
From the resonance condition, \(C = \dfrac{1}{(2\pi f_0)^2\,L}\) \(= \dfrac{1}{(2\pi \cdot 10^8)^2 \cdot 10^{-7}}\) \(\approx 25\ \text{pF}\).
The bandwidth is \(\Delta f = \dfrac{f_0}{Q} = \dfrac{100\ \text{MHz}}{50} = 2\ \text{MHz}\), far too wide to separate stations 200 kHz apart, which is why real receivers filter again after converting the signal to a lower frequency.
LEDs

A torch has 4 white LEDs (3.1 V and 20 mA each) in parallel, each with its own resistor, powered by three cells in series (4.5 V). Which E12 resistor should each LED have, and how much current do the cells supply?

Show solution
Each resistor gets \(4.5 - 3.1 = 1.4\ \text{V}\), and \(R = \dfrac{1.4}{0.020} = 70\ \Omega\); the nearest E12 value is \(68\ \Omega\), with \(I = \dfrac{1.4}{68} \approx 20.6\ \text{mA}\).
The four branches add up to \(4 \cdot 20.6 \approx 82\ \text{mA}\), and the cells supply \(4.5 \cdot 0.082 \approx 0.37\ \text{W}\). A resistor for each LED stops the one with the smallest voltage drop from stealing the current of the others.
Zener diode

A circuit board uses a 3.3 V Zener diode and a 220 Ω resistor, powered by a 9 V battery that runs down to 6 V. Up to what load current does the output stay regulated at the end of the battery’s life, with 1 mA left in the Zener?

Show solution
At 6 V, the resistor delivers \(I_S = \dfrac{6 - 3.3}{220} \approx 12.3\ \text{mA}\).
Keeping 1 mA for the Zener, the load can take up to about 11.3 mA; with a new battery, the same load would leave \(\dfrac{9 - 3.3}{220} - 0.0113 \approx 14.6\ \text{mA}\) in the Zener.
Power supply · AC and DC

A 127 V to 12 V (RMS) transformer feeds a silicon bridge rectifier, a 2200 µF capacitor and a 7805 delivering 0.5 A. What is the peak voltage across the capacitor, the estimated ripple and the power in the regulator?

Show solution
The peak of the secondary is \(12\sqrt{2} \approx 16.97\ \text{V}\), and the bridge takes away two diode drops, \(16.97 - 1.4 \approx 15.6\ \text{V}\).
The ripple is \(\Delta V \approx \dfrac{0.5}{120 \cdot 2200 \cdot 10^{-6}} \approx 1.9\ \text{V}\), and the average at the regulator input is close to \(15.6 - 0.95 \approx 14.6\ \text{V}\).
In the 7805, \(P \approx (14.6 - 5) \cdot 0.5\), about 4.8 W, so it needs a heat sink.
Transistor as a switch

An NPN transistor with β = 100 switches a 12 V, 3 W lamp from a 3.3 V pin. Which base resistor guarantees saturation with a safety margin of two, taking \(V_{BE} = 0.7\ \text{V}\)?

Show solution
The lamp needs \(I_C = \dfrac{3}{12} = 0.25\ \text{A}\), and the base needs \(2 \cdot \dfrac{0.25}{100} = 5\ \text{mA}\).
So \(R_B = \dfrac{3.3 - 0.7}{0.005} = 520\ \Omega\), and the E12 value below is \(470\ \Omega\), with about 5.5 mA, close to the limit of many pins.
MOSFET and PWM

A 12 V, 24 W LED strip is controlled by a MOSFET with \(R_{DS(\text{on})} = 50\ \text{m}\Omega\) and PWM at 25%. What is the average power in the strip and in the MOSFET, treating the strip as a resistor?

Show solution
The strip draws \(I = \dfrac{24}{12} = 2\ \text{A}\) when switched on, and receives on average \(0.25 \cdot 24 = 6\ \text{W}\).
The MOSFET dissipates \(0.25 \cdot 0.05 \cdot 2^2 = 0.05\ \text{W}\) while conducting, little enough to do without a heat sink.
Divider, comparator and 555

A drawer alarm uses an LDR at the top and 10 kΩ at the bottom, on 9 V. The LDR has 100 kΩ in the dark and 1 kΩ in the light, and a comparator compares the middle of the divider with 4.5 V and enables an astable 555 with \(R_1 = 1\ \text{k}\Omega\), \(R_2 = 4.7\ \text{k}\Omega\) and \(C = 100\ \text{nF}\). What voltages does the comparator see, and what sound does the alarm make?

Show solution
In the dark, \(V = 9 \cdot \dfrac{10}{100 + 10}\) \(\approx 0.82\ \text{V}\), below 4.5 V.
In the light, \(V = 9 \cdot \dfrac{10}{1 + 10}\) \(\approx 8.2\ \text{V}\), above it, and the comparator output switches rail.
The 555 oscillates at \(f \approx \dfrac{1.44}{(1 + 9.4) \cdot 10^3 \cdot 10^{-7}}\) \(\approx 1.4\ \text{kHz}\), a high-pitched beep that a loudspeaker or buzzer can reproduce.

Cheat sheet

Potential divider\(V_{\text{out}} = V\,\dfrac{R_2}{R_1 + R_2}\)
Sine wave\(V_{\text{RMS}} = V_p/\sqrt{2}\), \(T = 1/f\)
RC time constant\(\tau = RC\), 63% at \(\tau\), fully charged at \(5\tau\)
RC cut-off frequency\(f_c = \dfrac{1}{2\pi RC}\)
LC resonance\(f_0 = \dfrac{1}{2\pi\sqrt{LC}}\)
LED resistor\(R = \dfrac{V - V_F}{I_F}\)
Zener regulator\(I_Z = \dfrac{V_E - V_Z}{R_S} - \dfrac{V_Z}{R_L}\)
BJT (active region)\(I_C = \beta\,I_B\)
Common emitter with \(R_E\)\(A_v \approx -R_C/R_E\)
MOSFET (saturation)\(I_D = k\,(V_{GS} - V_{th})^2\)
PWM\(V_{\text{avg}} = D\,V_{DD}\)
Smoothing ripple (bridge)\(\Delta V \approx \dfrac{I}{f\,C}\), \(f = 120\ \text{Hz}\)
7805 regulator\(V_E \geq 5\ \text{V} + 2\ \text{V}\), \(P \approx (\overline{V}_E - 5)\,I\)
Op-amp: inverting and non-inverting\(G = -\dfrac{R_f}{R_1}\), \(G = 1 + \dfrac{R_f}{R_g}\)
Astable 555\(f \approx \dfrac{1.44}{(R_1 + 2R_2)\,C}\), \(D = \dfrac{R_1 + R_2}{R_1 + 2R_2}\)
Monostable 555\(T \approx 1.1\,R\,C\)