Before you start. This topic builds directly on National 5. Make sure you are confident with Ohm’s law, series circuits, the voltage divider rule, how LDRs and thermistors change resistance, and the transistor as a switch. If you need to revise, use the National 5 Analogue Electronics notes.
Data booklet. In the exam you are given the Higher Engineering Science data booklet. It includes most of the formulae in these notes, for example hFE = IC/IB and the op-amp gain equations. The main exception is the voltage divider equation for Vout (Section 1), which you need to learn. Others, such as IB = (Vin − 0.7)/RB, come straight from Ohm’s law. Learn how and when to use each one.
Section 1: Voltage Dividers as Sensors
Most electronic control systems start with an input sub-system that turns a physical quantity (light, temperature, position) into a voltage. At Higher this is almost always a voltage divider made from a component such as an LDR or thermistor and a fixed or variable resistor. The output voltage is then passed on to the next stage of the system — for example, to switch on a transistor that drives a lamp, motor or buzzer.
Vout = R2R1 + R2 × VS
where R2 is the resistor across which Vout is measured (normally the lower one). You can also use the fact that the supply voltage divides between the two resistors in the same ratio as their resistances: V1V2 = R1R2.
R2 is the resistor Vout is measured across.
Example: in the circuit above, Vout = 5.010 + 5.0 × 9 = 5.015 × 9 = 3.0 V.
Learn this equation. The data booklet only gives the ratio form V1V2 = R1R2 (under “Voltage Divider”). The Vout equation is not in it, so you need to remember it.
Which way round?
The same LDR used two ways. (a) LDR at the bottom: Vout rises as it gets darker. (b) LDR at the top: Vout rises as it gets lighter.
Sensor
Resistance when…
In the lower position, Vout…
In the upper position, Vout…
LDR
high in the dark, low in bright light
rises as it gets darker (dark sensor)
rises as it gets lighter (light sensor)
NTC thermistor
high when cold, low when hot
rises as it gets colder (cold sensor)
rises as it gets hotter (heat sensor)
Variable resistor
set by hand
sets a reference voltage or adjusts the switching point
Rule of thumb: Vout follows the resistance of whichever component it is measured across. If the sensor is at the bottom, Vout rises when the sensor’s resistance rises.
Component characteristics
Manufacturers publish how a component’s resistance changes, usually as a graph on a logarithmic scale, because the resistance changes over a very wide range. These notes use the same two graphs as National 5: the ORP12 LDR and the thermistor graph, type 3. Open them with the button below — they appear in a separate window that you can keep beside the notes while you work.
Reading a log scale. Each major gridline is ten times the one before (1, 10, 100…), and the minor gridlines between them are 2, 3, 4… 9 times that value. On the thermistor graph, the y-axis uses k (× 1000) and M (× 1 000 000) prefixes.
The thermistor graph has six curves, types 1 to 6. These notes mostly use type 3, but an exam question can use any of them, so always check which type the question gives before reading the graph.
The values below were read from the graphs. Graph readings are approximate, so answers within a few percent of these are fine.
ORP12 LDR — values read from the graph:
Illumination (lux)
5
10
20
50
100
200
500
Resistance
18 kΩ
10 kΩ
5.0 kΩ
2.2 kΩ
1.2 kΩ
630 Ω
270 Ω
Thermistor, type 3 — values read from the graph:
Temperature (°C)
0
10
20
25
30
40
50
75
100
Resistance
31 kΩ
19 kΩ
12 kΩ
10 kΩ
8.0 kΩ
5.4 kΩ
4.0 kΩ
1.7 kΩ
800 Ω
Exam practice: rounding. Carry full values through a calculation (write down at least 4 significant figures, or keep them in your calculator) and round only the final answer, to 2 significant figures, with its unit. Almost all exam questions give their data to 2 significant figures, so giving the answer to the same number of significant figures is good practice. Rounding part-way through can change the final answer. See Top tips for more on significant figures and units.
Worked example — LDR voltage divider
Calculate Vout at 50 lux for the circuit below.
Circuit for this example
1
From the ORP12 graph, RLDR = 2.2 kΩ at 50 lux.
2
Vout is measured across the LDR, so Vout = 2.24.7 + 2.2 × 6 = 1.913 V.
3
Vout = 1.9 V (2 s.f.).
Note: When it gets darker the LDR’s resistance rises, so Vout rises: this is a dark sensor.
✏️ Task 1 — Sensor voltage divider calculations
a) A 9 V supply feeds a voltage divider with a 10 kΩ fixed resistor at the top and an LDR at the bottom. Using the ORP12 graph, calculate Vout at 20 lux and at 200 lux. Is this a light sensor or a dark sensor?
Circuit for (a)
Answer
b) A 12 V supply feeds a 10 kΩ fixed resistor (top) and a type 3 thermistor (bottom). Calculate Vout at 0 °C and at 40 °C, and state what kind of sensor this is.
Circuit for (b)
Answer
c) A variable resistor (top) and a fixed 2.2 kΩ resistor (bottom) form a voltage divider on a 6 V supply. Vout is measured across the fixed resistor. What value must the variable resistor be set to for Vout = 2 V?
Circuit for (c)
Answer
d) A 5 V supply feeds a type 2 thermistor (top) and a 10 kΩ resistor (bottom). Use the thermistor graph to find the thermistor’s resistance at 25 °C, then calculate Vout.
Circuit for (d)
Answer
Section 2: Designing Sensor Voltage Dividers
At Higher you must be able to design a voltage divider to meet a specification. Typically you are told the supply voltage, the condition at which something should happen (for example 30 °C), and the voltage Vout must reach at that point. You read the LDR or thermistor’s resistance at that condition from its characteristics, then calculate the other resistor.
Worked example — heat sensor for a 9 V system
In the circuit below, Vout must be 6.0 V at 30 °C. Calculate R2.
Circuit for this example
1
From type 3, the thermistor is 8.0 kΩ at 30 °C. R2 must have 6.0 V across it, so the thermistor has 9 − 6.0 = 3.0 V across it.
2
Ratio: R2Rth = 6.03.0, so R2 = 8.0 × 2 = 16 kΩ.
3
Check at 40 °C (5.4 kΩ): Vout = 16 / (5.4 + 16) × 9 = 6.729 V = 6.7 V. Vout rises when hotter — correct for a heat sensor.
Real resistor values. Fixed resistors only come in preferred values (for example 1.0, 1.2, 1.5, 1.8, 2.2, 2.7, 3.3, 3.9, 4.7, 5.6, 6.8, 8.2 × a power of ten). If your calculated value is not available, choose the nearest one and work out the effect — or use a variable resistor so the switching point can be adjusted on site.
✏️ Task 2 — Designing sensor voltage dividers
a) A frost warning system in a greenhouse needs an input voltage that rises as the temperature in the greenhouse falls. The voltage must be produced by a voltage divider made from a thermistor (type 3) and a fixed resistor on a 5 V supply. Vout must be 2.5 V at 0 °C. (i) State whether the thermistor goes in the upper or lower position. (ii) Calculate the value of the fixed resistor. (iii) Calculate Vout at 10 °C.
Answer
b) A street lamp control system needs an input voltage that rises as it gets darker. The voltage must be produced by a voltage divider made from an ORP12 LDR and a fixed resistor on a 9 V supply. Vout must be 6.0 V at 10 lux. (i) State whether the LDR goes in the upper or lower position. (ii) Calculate the value of the fixed resistor. (iii) The nearest available value is 4.7 kΩ. Calculate Vout at 10 lux using this resistor.
Answer
c) Research task. Find out why a variable resistor is often used instead of a fixed resistor in a sensor voltage divider in a real installation, and explain your findings.
This is the circuit from Task 1(a): a 9 V supply with a 10 kΩ resistor at the top and an LDR at the bottom, with a voltmeter measuring Vout across the LDR. Drag the slider beside the LDR to change the light level and watch Vout. The label beside the LDR shows its resistance as it changes. To change the circuit itself, click Open in editor: the same circuit opens in a new tab where you can move components, change values and rewire.
NoResistanceSim V1.6.1
The simulator’s LDR is a simple model: its light level is shown as a percentage, not in lux, so its readings will not match the ORP12 graph exactly. Use it to see how Vout changes, and the graph for calculations.
🔍 Investigation 1 — Sensor position
a) In the embedded simulator, drag the LDR’s light slider from bright to dark. Describe how Vout changes, and explain why.
Answer
b) Click Open in editor. Swap the LDR and the 10 kΩ resistor, keeping the voltmeter across the bottom component. Run the circuit and repeat (a). Describe and explain what has changed.
Answer
c) Put the LDR back at the bottom and change the fixed resistor from 10 kΩ to 47 kΩ. How does this change the light level at which Vout reaches a particular voltage?
Answer
Section 3: The BJT as a Current Amplifier
At National 5 you used the bipolar junction transistor (BJT) as a switch. At Higher you also need to treat it as a current amplifier: a small current into the base (IB) controls a much larger current through the collector and emitter (IC). The ratio of the two currents is the transistor’s current gain, hFE.
hFE = ICIB so IC = hFE × IB
An npn BJT used as a current amplifier. A small base current IB controls a much larger collector current IC. The emitter current is the sum of the two: IE = IB + IC
Symbol
Meaning
IB
base current
IC
collector current
IE
emitter current: IE = IB + IC (and since IB is tiny, IE ≈ IC)
VBE
base–emitter voltage: about 0.7 V when the transistor is conducting
VCE
collector–emitter voltage
VL
voltage across the load: VCC = VL + VCE
A helpful way to picture it. Think of the transistor as a variable resistor between collector and emitter, controlled by the base current. The bigger the base current, the smaller this resistance, so the bigger the collector current through the load.
The base resistor RB limits the base current. It has (Vin − 0.7) V across it, so IB = (Vin − 0.7) / RB.
Worked example — analysing a BJT circuit
Calculate IC and VCE for the circuit below. VBE = 0.7 V.
Circuit for this example
1
Voltage across RB = 9 − 0.7 = 8.3 V, so IB = 8.3 / 150 000 = 55.33 µA.
2
IC = 200 × 55.33 µA = 11.07 mA = 11 mA (2 s.f.).
3
VL = 0.01107 × 470 = 5.201 V, so VCE = 9 − 5.201 = 3.799 V = 3.8 V (2 s.f.).
Worked example — designing a BJT driver
The relay coil in the circuit below needs 75 mA. Choose RB.
Circuit for this example
1
Base current needed: IB = IC / hFE = 0.075 / 150 = 0.5 mA.
2
RB = (5 − 0.7) / 0.0005 = 8.6 kΩ.
3
Choose the next lower preferred value, 8.2 kΩ: a slightly larger base current makes sure the transistor is fully on.
Protect the transistor. Relays, motors and solenoids are inductive: when they are switched off they produce a large reverse voltage (back emf). A diode connected in reverse across the coil gives this a safe path and protects the transistor.
✏️ Task 3 — BJT calculations and explanations
a) A transistor has IC = 75 mA when IB = 0.5 mA. Calculate hFE.
Answer
b) For the circuit below (VCC = 12 V, RL = 220 Ω, RB = 47 kΩ, 5 V input, hFE = 100), calculate: (i) IB (ii) IC (iii) VL (iv) VCE.
Circuit for (b)
Answer
c) A transistor (hFE = 30) controls the current through a 6 V, 60 mA lamp. The base is driven from the 6 V supply. Calculate the base current needed and the value of RB.
Circuit for (c)
Answer
d) Explain why a diode is connected across a relay coil that is switched by a transistor.
Answer
Section 4: Transistor Circuit Calculations
Exam questions often ask you to calculate the base current, collector current, gain or power in a transistor circuit. There are two common ways the base is driven, and they are calculated differently.
1. Voltage divider driving the base directly
A voltage divider driving the base directly. When the transistor is on, the base is held at 0.7 V, so R2 has 0.7 V across it and R1 has (VS − 0.7) V across it. The current I1 splits: I1 = I2 + IB
This is the circuit where many candidates go wrong. Once the transistor switches on, the base is held at 0.7 V, so the voltage across R2 is fixed at 0.7 V — it is not set by the voltage divider rule.
Why the voltage divider rule doesn’t work here: the rule assumes the same current flows through both resistors. Here the current through R1 splits at the junction: some goes down through R2 and the rest flows into the base. So I1 ≠ I2, and the rule no longer applies.
Instead, work out each current separately and subtract:
I1 = VS − 0.7R1 I2 = 0.7R2 IB = I1 − I2
If I1 is smaller than I2, there is not enough current to turn the transistor on: the base voltage stays below 0.7 V and IB = 0.
2. Base driven through a base resistor
A transistor driven through a base resistor. The base is held at 0.7 V, so RB has (Vin − 0.7) V across it and IB = (Vin − 0.7) / RB
When the base is fed from a microcontroller output or a switch through a base resistor RB, the base sits at 0.7 V when the transistor is on. So the base resistor has (Vin − 0.7) V across it:
IB = Vin − 0.7RB
Output calculations
Collector current: IC = hFE × IB.
Voltage across the load: VL = IC × RL, and VCE = VCC − VL.
Power dissipated in the transistor: P = VCE × IC.
Saturation
The largest current that can ever flow through the load is the current that flows when the whole supply is across the load (VCE ≈ 0). This is called IC(max):
IC(max) = VCCRL
If hFE × IB is bigger than IC(max), the transistor is saturated (fully on) and IC = IC(max). The minimum hFE needed to saturate the transistor is:
hFE(min) = IC(max)IB
Worked example 1 — thermistor divider driving the base
R1 is a type 3 thermistor. Calculate the base current at 50 °C.
Circuit for this example
1
From type 3, R1 = 4.0 kΩ at 50 °C. I1 = (6 − 0.7) / 4000 = 1.325 mA.
2
I2 = 0.7 / 1000 = 0.7000 mA.
3
IB = I1 − I2 = 1.325 − 0.7000 = 0.625 mA = 0.63 mA (2 s.f.).
Note: the voltage divider rule would give 6 × 1.0 / 5.0 = 1.2 V across R2. That is impossible, because the base holds it at 0.7 V.
Worked example 2 — microcontroller driving a relay
Find IB, IC and the power dissipated in the transistor. VBE = 0.70 V.
Circuit for this example
1
IB = (5 − 0.70) / 6800 = 0.6324 mA.
2
IC = 120 × 0.6324 mA = 75.88 mA = 76 mA (2 s.f.).
3
Vrelay = 0.07588 × 60 = 4.553 V, so VCE = 9 − 4.553 = 4.447 V.
4
P = VCE × IC = 4.447 × 0.07588 = 0.3375 W = 0.34 W (2 s.f.).
Worked example 3 — minimum gain to saturate
Calculate the minimum hFE for the transistor to be saturated. VBE = 0.7 V.
Circuit for this example
1
IB = (5 − 0.7) / 2200 = 1.955 mA.
2
Largest possible collector current: IC(max) = 12 / 24 = 0.50 A.
3
hFE(min) = 0.50 / 0.001955 = 255.8 = 260 (2 s.f.). Any transistor with a higher gain will also be saturated.
Worked example 4 — the switching point
At what light level does the transistor start to switch on?
Circuit for this example
1
The transistor starts to conduct when the voltage across the LDR reaches 0.7 V. At that exact point the base current is still zero, so here — and only here — the voltage divider rule applies.
A 1 kΩ resistor R1 and a variable resistor RV1 (top) and a thermistor TH1 (bottom) drive the base of a transistor directly. (R1 stops the full 9 V reaching the base if RV1 is turned right down.) The transistor switches a 22 Ω heater, and the voltmeter and graph show the base voltage. Drag the slider beside the thermistor to change the temperature. Use Open in editor to change the circuit.
NoResistanceSim V1.6.1
🔍 Investigation 2 — The base is held at 0.7 V
a) Make the thermistor colder and colder. What is the highest base voltage you can reach? Explain why it stops there.
Answer
b) Open the editor and delete the wire to the transistor’s base. Make the thermistor cold again. State the voltmeter reading and explain why it differs from your answer to a).
Answer
c) Reconnect the base. Increase the setting of RV1. State whether the heater switches on at a higher or lower temperature and explain why.
Answer
✏️ Task 4 — Transistor circuit calculations
a) A push switch connects a separate 5 V supply to the base of a transistor through a 3.9 kΩ base resistor. VBE is 0.70 V. Calculate the base current when the switch is pressed.
Circuit for (a) and (b)
Answer
b) The transistor in a) has hFE = 150 and switches a 40 Ω lamp from a 9 V supply. Calculate the maximum possible value for IC and determine whether the transistor is fully saturated. State the lamp current.
Answer
c) A microcontroller output (5 V) switches a relay that needs 120 mA. The transistor has hFE = 200. Calculate the base resistor needed (VBE = 0.70 V).
Circuit for (c)
Answer
d) A type 3 thermistor (top) and a 1.5 kΩ resistor (bottom, between base and 0 V) drive a transistor from a 5 V supply. (i) Calculate the base current at 75 °C. (ii) Calculate the temperature at which the transistor will switch off.
Circuit for (d)
Answer
e) A 22 kΩ resistor (top) and an ORP12 LDR (bottom, between base and 0 V) drive a transistor (hFE = 250) from a 9 V supply. Calculate the base current and the collector current at 5 lux.
Circuit for (e) and (f)
Answer
f) The collector current in e) flows through a 60 Ω relay coil on the 9 V supply. Calculate the power dissipated in the transistor.
Answer
g) A microcontroller output (5 V) drives a transistor through a 1.0 kΩ base resistor. The load is a 15 Ω solenoid on a 12 V supply. Calculate the minimum hFE needed for the transistor to be saturated.
Circuit for (g)
Answer
h) A type 3 thermistor (top) and a 470 Ω resistor (bottom, between base and 0 V) control a transistor on a 6 V supply. Use the thermistor graph to find the temperature at which the transistor starts to switch on.
Circuit for (h)
Answer
Section 5: The MOSFET as a Voltage-Operated Switch
A MOSFET (metal oxide semiconductor field effect transistor) is another type of transistor. At Higher you need the n-channel enhancement mode MOSFET. Its three terminals are the gate (g), drain (d) and source (s) — they do the same jobs as the base, collector and emitter of an npn BJT.
The n-channel enhancement MOSFET. The gate controls the current flowing from drain to source.
The gate is insulated from the rest of the device, so no current flows into the gate. The MOSFET is controlled by the voltage between gate and source, VGS. Below the threshold voltage VT it is off; once VGS reaches VT it switches on and a drain current ID flows through the load.
MOSFET on when VGS ≥ VT
The same picture as the BJT. Think of the MOSFET as a variable resistor between drain and source, this time controlled by the gate voltage. The bigger VGS is above VT, the smaller this resistance and the bigger the drain current.
An n-channel enhancement MOSFET switching a motor. The gate voltage VGS comes from a thermistor voltage divider; the motor turns on when VGS reaches the threshold voltage VT. The diode protects the MOSFET from the back-emf of the motor.
Because the gate draws no current, the voltage divider that drives it is not affected by the MOSFET. That means the voltage divider rule gives the gate voltage exactly. To design the circuit, choose the resistor so that VGS = VT at the condition where the load should switch on.
Worked example — designing a MOSFET fan switch
The circuit above runs from 12 V. The MOSFET has VT = 3.0 V. The fan must switch on at 30 °C, when the type 3 thermistor is 8.0 kΩ. Find RV.
1
RV needs 3.0 V across it and the thermistor 12 − 3.0 = 9.0 V.
Above 30 °C the thermistor’s resistance falls, VGS rises above 3.0 V, and the fan stays on.
Gate voltage and drain current
Once VGS is above VT, a larger gate voltage gives a larger drain current ID, until the MOSFET is fully on and the current is limited by the load. Exam questions do test this: for example, a motor driven by a MOSFET speeds up as the gate voltage increases above the threshold. How much ID changes for a given change in VGS is the transconductance, gm, which is in the data booklet:
gm = ΔIDΔVGS
gm is measured in amperes per volt (A V−1), also called siemens (S).
When the MOSFET is fully on, the voltage between drain and source is very small, so almost all of the supply is across the load: ID ≈ Vsupply / Rload.
Exam questions sometimes give the MOSFET’s drain–source resistance when fully on, RDS(on). Treat it as a small resistor in series with the load: ID = Vsupply / (Rload + RDS(on)). If the load is described by its power rating, find its resistance first with R = V2 / P.
Worked example — MOSFET on-resistance
The motor in the circuit below is rated 1.5 W at 12 V. Calculate the drain current when the MOSFET is fully on.
Circuit for this example
1
Rmotor = V2 / P = 122 / 1.5 = 96 Ω.
2
Rtotal = 96 + 4.0 = 100 Ω.
3
ID = 12 / 100 = 0.12 A.
When the MOSFET is not fully on
If the gate voltage is only a little above VT, the MOSFET is not fully on, and there is a noticeable voltage VDS between its drain and source. This type of question comes up regularly. You are given VDS and a table or graph of the MOSFET’s characteristics, and you are asked for the gate voltage VGS. Work through it in this order:
1
Voltage across the load. The load and the MOSFET are in series, so Vload = Vsupply − VDS.
2
Drain current. The same current flows through the load and the MOSFET: IDS = VloadRload.
3
Gate voltage. Find this value of IDS in the table or on the graph, and read off VGS.
Worked example — finding the gate voltage
A solenoid with a resistance of 3.6 Ω is switched by a MOSFET on a 9.0 V supply. The voltage across the MOSFET is VDS = 1.8 V. Use the table to determine the gate voltage VGS.
Circuit for this example
Gate voltage VGS
Current IDS
3.0 V
0.15 A
3.5 V
0.80 A
4.0 V
1.6 A
4.5 V
2.0 A
5.0 V
2.3 A
1
Vsolenoid = 9.0 − 1.8 = 7.2 V.
2
IDS = 7.23.6 = 2.0 A.
3
From the table, IDS = 2.0 A when VGS = 4.5 V.
Exam tip: the most common mistake is to use the whole supply voltage across the load. Always subtract VDS first. There is usually one mark for each step, so set out all three steps. If the exam gives a graph rather than a table, mark your IDS value on the graph and read across and down carefully. Don’t round IDS before you use it. If your calculated current falls between two values in a table, choose the gate voltage for the nearer value.
✏️ Task 5 — MOSFET circuits
a) Explain what is meant by the threshold voltage of a MOSFET.
Answer
b) A microcontroller output gives 5 V to the gate of a MOSFET with VT = 2 V. The load is a 20 Ω motor on a 12 V supply. Is the MOSFET on? If so, calculate the motor current.
Circuit for (b)
Answer
c) A lamp must switch on when it gets dark. An LDR and a fixed resistor drive the gate of a MOSFET (VT = 2.4 V) from a 6 V supply. The lamp should come on at 10 lux. Using the ORP12 graph, state where the LDR goes and calculate the fixed resistor.
Answer
d) A motor rated 5.0 W at 12 V is switched by a MOSFET with an on-resistance of 1.2 Ω, from a 12 V supply. Calculate (i) the drain current, (ii) the power dissipated in the MOSFET.
Circuit for (d)
Answer
e) Explain why, when designing the voltage divider for a MOSFET, you do not need to allow for any current flowing into the gate.
Answer
f) A MOSFET has a drain current of 0.20 A when VGS = 3.0 V, and 0.50 A when VGS = 4.0 V. Calculate its transconductance gm.
Answer
g) A MOSFET drives a small fan. The gate voltage is increased from just above VT to a few volts higher. Describe and explain what happens to the fan.
Answer
h) A 4.8 Ω lamp is switched by a MOSFET on a 12 V supply. The voltage across the MOSFET is VDS = 2.4 V. (i) Use the table to determine the gate voltage VGS. (ii) Calculate the power dissipated in the MOSFET.
Circuit for (h)
Gate voltage VGS
Current IDS
3.6 V
0.40 A
3.9 V
1.1 A
4.2 V
2.0 A
4.5 V
2.7 A
4.8 V
3.1 A
Answer
Section 6: Comparing BJTs and MOSFETs
Both devices can be used to switch a load. Which one is better depends on the application — and in the exam you may be asked to justify a choice.
Feature
BJT (npn)
MOSFET (n-channel enhancement)
Controlled by
base current
gate voltage
Input current
needs a base current, so it loads the circuit driving it
negligible — gate is insulated
Switches on at
about 0.7 V (VBE)
threshold voltage VT, typically 2–4 V
Base / gate resistor
needed to limit base current
not needed to limit current
Load current
small to moderate; heats up at high currents
very high currents possible, with little heating when fully on
Handling
robust
easily damaged by static electricity
Good for…
low-voltage control signals, simple low-current loads
high-current loads (motors, heaters) and driving from microcontrollers or high-resistance sensor dividers
Where each is used. BJTs are well suited to audio amplification: in their active region the collector current follows the base current in a straight-line (linear) way, so the signal is amplified without distortion. MOSFETs are used in integrated circuits for data processing — the processor in a phone or computer contains billions of transistors. Each BJT needs a base current to stay on, so billions of them would draw an enormous current and produce an enormous amount of heat. MOSFETs draw almost no gate current, and they are also much easier to make at a tiny scale, so they are the only practical choice for commercial processors and memory.
✏️ Task 6 — Choosing a transistor
a) A microcontroller must switch a 10 A DC motor. Would you choose a BJT or a MOSFET? Justify your answer.
Answer
b) A sensor voltage divider uses two 100 kΩ resistors. Explain why connecting it to the base of a BJT could make the circuit switch at the wrong light level, and why a MOSFET avoids this.
Answer
c) State one reason why a designer might still choose a BJT.
Answer
Section 7: The Operational Amplifier
An operational amplifier (op-amp) is an integrated circuit that amplifies voltages. It has two inputs — the inverting input (−) and the non-inverting input (+) — and one output. On its own its gain is enormous, so it is almost always used with resistors that set the gain to a sensible value.
What an op-amp actually does is decided by how it is connected: which input the signal goes to, and the resistors placed around it. In particular, whether there is a feedback connection from the output back to an input, and how that feedback is arranged, determines which type of op-amp circuit is created — comparator, inverting amplifier, non-inverting amplifier, voltage follower, difference amplifier or summing amplifier. Each of these is explained in the sections that follow.
The op-amp symbol. The supply connections are usually left off circuit diagrams, but the output can never go beyond the supply.
The op-amp symbol above labels the two inputs V1 and V2. In an amplifier circuit, the signal being amplified is called the input voltage, Vin, and the voltage produced at the output is the output voltage, Vo, measured from 0 V. (The data booklet writes the input voltage as Vi.) The voltage gain AV tells you how many times bigger the output is than the input:
Voltage gain AV = VoVin
Saturation
The output can never go beyond the supply voltage — in practice it saturates a little below it. Exam questions always tell you the saturation percentage (recent Higher papers have used 75%, 78%, 82%, 85% and 87%), so the saturation voltage is simply Vsat = percentage × supply. If the calculated output is bigger than this, the op-amp is saturated and the output stays at the limit. In these notes, assume 85% unless a question says otherwise.
With a ±12 V supply, the output can only reach ±(0.85 × 12) = ±10.2 V. Always check your answer against this limit.
An ideal op-amp also has a very high input resistance (it draws almost no current from whatever is connected to its inputs) and a very low output resistance (it can drive a load without its output voltage dropping).
✏️ Task 7 — Saturation
a) An op-amp runs from a ±15 V supply. State the largest output voltage it can produce.
Answer
b) An op-amp on a 9 V supply saturates at 78% of its supply voltage. Calculate its saturation voltage.
Answer
Section 8: The Inverting Amplifier
The input signal goes to the inverting input through the input resistor Ri. The feedback resistor Rf connects the output back to the inverting input, and the non-inverting input is connected to 0 V.
Inverting amplifier. The input goes to the inverting (−) input through Ri; Rf feeds part of the output back; the + input is at 0 V.
AV = −RfRi Vo = −RfRi × Vin
The minus sign means the output is inverted: a positive input gives a negative output, and vice versa.
Worked example
Calculate the gain and Vo for the circuit below. The op-amp saturates at 85% of its supply.
Circuit for this example
1
AV = −470 / 15 = −31.33.
2
Vo = −31.33 × 0.2 = −6.267 V = −6.3 V (2 s.f.) — within the ±10.2 V limit, so not saturated.
✏️ Task 8 — Inverting amplifier
a) For the circuit below (Ri = 10 kΩ, Rf = 100 kΩ, ±12 V supply, Vin = +0.8 V), calculate Vo. Is the op-amp saturated?
Circuit for (a)
Answer
b) An inverting amplifier has a gain of −20 and runs from ±12 V. Calculate the output for an input of +0.8 V.
Answer
c) For the circuit below, calculate the gain and Vo. Is the output bigger or smaller than the input?
Circuit for (c)
Answer
d) Calculate the value of Rf needed to give a gain of −25 when Ri = 4.7 kΩ.
Circuit for (d)
Answer
e) (i) Two inverting amplifiers are connected one after the other. Stage 1 has Rf = 47 kΩ and Ri = 10 kΩ; stage 2 has Rf = Ri = 22 kΩ. Calculate the overall gain and the final output for an input of 0.50 V.
Circuit for (e)
Answer
(ii) Suggest why a designer might connect two inverting amplifiers like this. Hint: look at the gain of the second stage.
Answer
f) The oscilloscope trace below shows the input and output of an inverting amplifier. When the input is +0.20 V the output is −1.2 V. When the input rises to +0.60 V the output stays at −3.0 V and its peaks look flattened. (i) Calculate the gain. (ii) Explain what is happening to the output.
Oscilloscope trace for (f)
Answer
g) Calculate the required gain and the value of Rf for the circuit below (Vin = 0.25 V, Ri = 2.2 kΩ, Vo = −4.0 V).
An inverting amplifier with Ri = 1 kΩ and Rf = 2 kΩ on a ±9 V supply. The input is an AC signal of 3 V peak, and the graph shows the input and output waveforms. The op-amp saturates at 85% of its supply. To read values, click the graph and press Pause graph. The graph lists the peak values of each trace, and while it is paused you can move the pointer over it to read both voltages at any instant. Use Open in editor to change values.
NoResistanceSim V1.6.1
🔍 Investigation 3 — Gain and saturation
a) Compare the input and output waveforms. Describe two differences (ignore the colours of the traces) and use the peak values to state the gain. Does this match −Rf/Ri?
Answer
b) In the editor, increase the input to 5 V peak. Calculate the expected output peak, then run the circuit. Describe what you see and explain why.
Answer
c) Set the input back to 1 V peak and change Rf to 4.7 kΩ. Calculate the expected output peak, then check it using the peak values on the graph.
Answer
Section 9: The Non-Inverting Amplifier
The input goes straight to the non-inverting input. Rf and Ri feed a fraction of the output back to the inverting input. The output has the same polarity as the input.
Non-inverting amplifier. The input goes straight to the + input; Rf and Ri feed a fraction of the output back to the − input.
AV = 1 + RfRi Vo = (1 + RfRi) × Vin
The gain is always at least 1. Because the signal goes straight into an op-amp input, this circuit has a very high input resistance — ideal for amplifying a sensor that cannot supply much current.
✏️ Task 9 — Non-inverting amplifier
a) For the circuit below (Ri = 10 kΩ, Rf = 39 kΩ, Vin = 1.5 V), calculate the gain and Vo.
Circuit for (a)
Answer
b) An LDR voltage divider produces 0.6 V. A non-inverting amplifier must boost this to at least 3 V. Choose suitable values for Ri and Rf, then calculate Vo for your chosen values to show it is at least 3 V.
A non-inverting amplifier with Ri = 1 kΩ and Rf = 2 kΩ on a ±12 V supply, with a 3 V peak AC input. The op-amp saturates at 85% of its supply. To read values, click the graph and press Pause graph. The graph lists the peak values of each trace, and while it is paused you can move the pointer over it to read both voltages at any instant.
NoResistanceSim V1.6.1
🔍 Investigation 4 — Non-inverting gain
a) Compare the input and output waveforms (ignore the colours of the traces). Describe how the output differs from the inverting amplifier’s. Use the peak values to calculate the gain and check it against 1 + Rf/Ri.
Answer
b) In the editor, change Rf to 4.7 kΩ. Calculate the expected output peak, then run the circuit. Describe what you see and explain why.
Answer
Section 10: The Voltage Follower
The voltage follower is a non-inverting amplifier with the output connected directly to the inverting input. Its gain is exactly 1, so Vo = Vin.
Voltage follower. The output is joined directly to the − input, so Vo = Vin.
Vo = Vin (AV = 1)
If it does not amplify, why use it? Because it has a very high input resistance and a very low output resistance. It takes almost no current from a sensor voltage divider, but can supply the current a following stage or meter needs without its voltage dropping. It is used as a buffer between stages of a circuit.
A buffer isolates one stage of a circuit from the next. Without it, the next stage (a meter, a transistor, another amplifier) draws current from the stage before it, and that current changes the voltage it is meant to be measuring — this is called loading. With a voltage follower in between, the first stage supplies almost no current, so its voltage is unchanged, and the follower supplies whatever current the second stage needs from its own power supply.
✏️ Task 10 — Voltage follower
a) State the gain of a voltage follower and explain why the circuit is useful even though it does not amplify.
Answer
b) A thermistor voltage divider gives 2.0 V, but when it is connected straight to a 1 kΩ meter, as in circuit (a) below, the reading drops to 1.2 V. Explain why, and how a voltage follower would solve the problem.
A voltage follower on a ±9 V supply. Drag the slider on the variable source to change Vin; voltmeter V1 shows the input and V2 the output.
NoResistanceSim V1.6.1
🔍 Investigation 5 — Voltage follower
a) Move the input slider to several values. What do you notice about V1 and V2? State the gain.
Answer
b) Increase Vin above 8 V. What happens to the output? Explain.
Answer
c) In the editor, connect a 100 Ω resistor from the output to 0 V. Does the output voltage change? What does this show?
Answer
Section 11: The Comparator
A comparator uses the op-amp with no feedback resistor (open loop). Its huge gain means even a tiny difference between the inputs drives the output to saturation. It simply compares the two input voltages:
V+ > V− → Vo = +Vsat V+ < V− → Vo = −Vsat
One input is a reference voltage, set by a fixed voltage divider or potentiometer. The other is the sensor voltage from an LDR or thermistor divider. The switching point is where the sensor voltage equals the reference.
A comparator. The sensor divider feeds the − input (V1) and the reference divider feeds the + input (V2). With no feedback, the output saturates high when V2 > V1 and low when V2 < V1.
Two-state control. The output is either fully high or fully low — like an on/off thermostat. This is ideal for alarms, frost warnings and lights that just need switching on or off. The output usually drives a BJT or MOSFET, which switches the actual load.
To make the output go high for the condition you want, connect the sensor to the input that makes V+ > V− under that condition. In the circuit above, the sensor voltage V1 rises as it gets darker. In the dark, V1 rises above the reference V2, so V+ < V− and the output goes low. To make it go high in the dark instead, swap the two inputs, or swap the LDR and R1.
✏️ Task 11 — Comparator
a) A comparator runs from ±9 V and saturates at 85% of its supply. A 3 V reference is on the non-inverting input. State Vo when the sensor voltage on the inverting input is (i) 2 V, (ii) 4 V.
Circuit for (a)
Answer
b) Explain why a comparator gives two-state control.
Answer
c) A street lamp must switch on below 50 lux. The sensing divider runs from 12 V with an ORP12 LDR at the top and a 2.2 kΩ resistor at the bottom. (i) Use the ORP12 graph to calculate the sensor voltage at 50 lux. (ii) Design a reference divider (from 12 V) to set this switching point. (iii) State which comparator input each divider should go to so the output goes high when it is dark.
A comparator on a ±9 V supply. Two variable sources set V1 (on the − input) and V2 (on the + input). Drag their sliders and watch the output voltmeter and the graph. The op-amp saturates at 85% of its supply.
NoResistanceSim V1.6.1
🔍 Investigation 6 — Two-state switching
a) Set V1 to about 4 V. Slowly move V2 from 0 V up past 4 V. Describe what the output does.
Answer
b) Explain how your observations show that a comparator gives two-state control.
Answer
Comparators driving transistors
A comparator’s output can rarely supply enough current for a lamp, motor or relay, so it usually drives a transistor through a base resistor. When the output is high, the voltage applied to the base resistor is the op-amp’s saturation voltage — the percentage of the supply given in the question — so:
A comparator driving a transistor. When the comparator output is saturated positively, Vsat is applied to RB; the base is held at 0.7 V, so IB = (Vsat − 0.7) / RB.
IB = Vsat − 0.7RB
Everything else is calculated exactly as in Section 4: IC = hFE × IB, check against IC(max), and P = VCE × IC.
Worked example — comparator driving a relay
The comparator below is on a 9 V supply and saturates at 80% of its supply. VBE = 0.70 V. Find IB, IC and the power dissipated in the transistor when the comparator output is saturated positively.
Circuit for this example
1
Op-amp output: Vsat = 9 × 0.80 = 7.2 V.
2
IB = (7.2 − 0.70) / 10 000 = 0.65 mA.
3
IC = 120 × 0.65 mA = 78 mA.
4
Vrelay = 0.078 × 60 = 4.68 V, so VCE = 9 − 4.68 = 4.32 V. P = 4.32 × 0.078 = 0.3370 W = 0.34 W (2 s.f.).
✏️ Task 12 — Comparators driving transistors
a) For the circuit below (9 V supply, 3.9 kΩ base resistor), calculate the base current when the comparator output is saturated positively. VBE = 0.70 V and the op-amp saturates at 75% of its supply.
Circuit for (a) and (d)
Answer
b) An op-amp on a 12 V supply saturates at 82% of its supply. A relay needs 120 mA and the transistor has hFE = 200. Calculate the base resistor needed (VBE = 0.70 V).
Circuit for (b)
Answer
c) A comparator on a 12 V supply saturates at 78% of its supply. It drives a transistor (hFE = 54) through a 10 kΩ base resistor. The relay coil (85 Ω) is on the 12 V supply. VBE = 0.7 V. When the op-amp output is saturated positively, calculate: (i) the base current (ii) the collector current (iii) [harder] the power dissipated in the transistor. Hint: find the voltage across the relay first, then VCE.
Circuit for (c)
Answer
d) [harder] The transistor in a) has hFE = 150 and switches a 40 Ω lamp from the 9 V supply. Determine whether the transistor is saturated.
Answer
Finding the switching point: the balance method
When both comparator inputs come from voltage dividers on the same supply, the output switches when the two input voltages are equal. That happens when the two dividers have the same ratio — so you don’t need to calculate the voltages at all:
The comparator switches when V1 = V2, which happens when the two dividers have the same ratio.
Rtop 1Rbottom 1 = Rtop 2Rbottom 2
Worked example — balance method
Find R so the comparator in the circuit below switches at 100 lux.
Two comparators can share a chain of three resistors that sets two reference voltages. The input is compared with both, so the circuit can tell whether a quantity is too low, about right, or too high — for example to switch on a heater when it is too cold and a fan when it is too hot.
A window comparator. Vin goes to the + input of op-amp A and the − input of op-amp B. Output A goes high when Vin > VrefA; output B goes high when Vin < VrefB. Between the two, both outputs are low.
Work out each reference with the voltage divider rule, using the resistance below that point: VrefA = VS × (RB + RC) / (RA + RB + RC) and VrefB = VS × RC / (RA + RB + RC).
Vin
Op-amp A
Op-amp B
below VrefB
saturates negatively (low)
saturates positively (high)
between VrefB and VrefA
low
low
above VrefA
saturates positively (high)
low
In exam questions describing a circuit like this, say what each op-amp does and what each output device does for each range of input voltage, and refer to the reference voltages by name or value.
✏️ Task 13 — Balance method and window comparators
a) A comparator has a sensor divider made from a type 3 thermistor (top) and a 4.7 kΩ resistor (bottom). The reference divider is a 10 kΩ resistor (top) and R (bottom). Calculate R so that the comparator switches at 40 °C.
Circuit for this question
Answer
b) A window comparator uses RA = 1.0 kΩ, RB = 6.8 kΩ and RC = 2.2 kΩ on a 12 V supply. Calculate VrefA and VrefB.
Circuit for (b)
Answer
c) In the window comparator in b), output A switches on a cooling fan and output B switches on a heater, each through a transistor, as shown below. Describe how the circuit operates as Vin rises from 0 V to 12 V.
Circuit for (c)
Answer
Section 12: The Difference Amplifier
Like the comparator, the difference amplifier has a signal on each input. Unlike the comparator, it has feedback, so its output is proportional to the difference between the two inputs — not simply fully on or off.
Difference amplifier. With matching pairs of resistors, Vo = (Rf/Ri)(V2 − V1).
Vo = RfRi × (V2 − V1)
Here V2 is on the non-inverting side and V1 on the inverting side. The two resistors called Ri must be equal, and so must the two called Rf.
Proportional control and error detection. If V1 is a set point (what we want) and V2 comes from a sensor (what we have), V2 − V1 is the error. A large error gives a large output; as the system approaches the set point the output falls, and at the set point it is zero. This is how a closed-loop system can respond gradually instead of switching on and off.
Worked example — incubator heater
A temperature sensor gives V2 = 3.4 V and the set point is V1 = 3.0 V. Calculate Vo for the circuit below.
Circuit for this example
1
Vo = (100/10) × (3.4 − 3.0) = 4.0 V.
2
As the error shrinks, Vo falls in proportion — at an error of 0.1 V, Vo is only 1.0 V.
✏️ Task 14 — Difference amplifier
a) For the circuit below (Ri = Rf = 10 kΩ, V1 = 2.5 V, V2 = 3.1 V), calculate Vo.
Circuit for (a)
Answer
b) Explain why a difference amplifier gives proportional control, and give one application where this matters.
Answer
c) Two strain gauges each form the bottom half of a voltage divider, with a 200 Ω resistor at the top, on a 6 V supply. Unstrained, both gauges are 200 Ω. Under load, gauge 2 rises to 205 Ω while gauge 1 stays at 200 Ω. The divider outputs go to a difference amplifier with Ri = 1 kΩ and Rf = 100 kΩ, as shown below. Calculate V1, V2 and Vo. (Assume the amplifier does not load the dividers.)
Circuit for (c)
Answer
Exam-style difference amplifier calculations
In exam questions, one input is usually a reference voltage from a voltage divider and the other is a sensor or feedback signal. You may be asked to find a resistor value for a given output, or the input voltage at which the output saturates.
Worked example — when does the output saturate?
In the circuit below, V1 = 2.0 V is a reference and V2 = Vin. The op-amp is on a 9 V supply, saturates at 80% and drives a motor. Find the value of Vin at which the output saturates.
Circuit for this example
1
Vsat = 9 × 0.80 = 7.2 V.
2
7.2 = (22/10) × (Vin − 2.0), so Vin − 2.0 = 3.273 V.
3
Vin = 5.273 V = 5.3 V (2 s.f.).
Note: above 5.3 V the motor runs at full speed; as Vin falls below 5.3 V the motor slows in proportion; at 2.0 V it stops. This is proportional control.
Exam tip: when you describe how a motor or other output behaves, quote the voltages from the question or from your answer, for example “above 5.3 V the motor runs at full speed because the op-amp is saturated”. Marks are often given only when the actual values are referred to. Describe every stage, from full speed, through slowing down, to stopped.
Making the output positive. When V2 is smaller than V1, the output of a difference amplifier is negative. If the output needs to be positive (for example, to drive an npn transistor or a motor in the right direction), you can either: • swap the inputs, so that the larger voltage goes to the non-inverting side, or • add an inverting amplifier with a gain of −1 after the difference amplifier (Rf = Ri), so that the output is turned the other way up without changing its size.
The difference amplifier from the worked example above: Ri = 10 kΩ, Rf = 22 kΩ, ±9 V supply. To match the worked example, this op-amp saturates at 80% of its supply. Drag the sliders to set V1 and V2.
NoResistanceSim V1.6.1
🔍 Investigation 7 — Proportional output
a) Set V1 = 2.0 V and V2 = 3.6 V. Predict the output, then check it in the simulator.
Answer
b) Keep V1 = 2.0 V and slowly increase V2. At what value of V2 does the output stop rising? Compare with the worked example.
Answer
c) Now make V2 smaller than V1. What happens to the output, and what would this mean for a motor controlled by it?
Answer
✏️ Task 15 — Exam-style difference amplifier
a) The reference V1 of the difference amplifier below comes from a 5 V divider with 10 kΩ at the top and 15 kΩ at the bottom. Ri = 10 kΩ. When V2 = 2.0 V the output is −2.4 V, as shown. Calculate V1 and Rf.
Circuit for (a)
Answer
b) A difference amplifier (Rf = 33 kΩ, Ri = 15 kΩ) on a 12 V supply saturates at 85% of its supply. V1 = 3.0 V. Calculate the input V2 at which the output saturates.
Circuit for (b)
Answer
c) The output in (b) controls the speed of a motor. Describe how the motor behaves as V2 falls from 10 V to 2 V.
Answer
d) Explain why a two-state (on/off) control system would not be suitable for keeping a conveyor motor running at a steady speed.
Answer
e) In (a), the output of the difference amplifier is negative. Describe two adaptations to the circuit that would produce a positive output of the same size.
Answer
Section 13: The Summing Amplifier
A summing amplifier is an inverting amplifier with two or more inputs, each connected through its own resistor to the inverting input. The output is the inverted sum of the inputs, each multiplied by its own gain.
Summing amplifier with three inputs. Each input feeds the − input through its own resistor; the output is the inverted, weighted sum.
Vo = −Rf × (V1R1 + V2R2 + V3R3)
The output is inverted. To get a positive result, feed the output through a second inverting amplifier with a gain of −1 (Ri = Rf).
Worked example
Calculate Vo for the summing amplifier below. The supply is ±15 V.
Circuit for this example
1
Vo = −5000 × (4/10 000 + 2/5000 + 1/2000)
2
= −5000 × 0.0013 = −6.5 V (inside the ±12.75 V limit).
✏️ Task 16 — Summing amplifier
a) Rf = 10 kΩ. Three inputs of 1 V, 2 V and 3 V are each connected through 10 kΩ. Calculate Vo.
Circuit for (a)
Answer
b) How could the circuit in (a) be changed so that the output is +6 V?
Answer
c) Three switches each give 5 V when on. They are connected through R1 = 10 kΩ, R2 = 20 kΩ and R3 = 40 kΩ, with Rf = 8 kΩ and a ±12 V supply. Calculate Vo with all three switches on.
Four switches each connect 1 V to the − input through a 1 kΩ resistor, with Rf = 1 kΩ and a ±9 V supply. Click the switches to turn the inputs on and off.
NoResistanceSim V1.6.1
🔍 Investigation 8 — Adding voltages
a) Turn the switches on one at a time. Record the output each time and explain the pattern using the summing amplifier formula.
Answer
b) In the editor, change the four input resistors to 1 kΩ, 2 kΩ, 4 kΩ and 8 kΩ. Switch each input on by itself and record the output. What is the output with all four on?
Answer
Section 14: Choosing the Right Configuration
Configuration
Output
Control type
Typical use
Inverting amplifier
inverted, amplified
signal conditioning
amplifying a sensor signal
Non-inverting amplifier
same polarity, amplified
signal conditioning
amplifying a sensor that cannot supply much current
Voltage follower
equal to input (gain 1)
buffering
isolating a sensor from the next stage
Comparator
+Vsat or −Vsat
two-state (on/off)
street lamp, frost alarm, thermostat
Difference amplifier
proportional to V2 − V1
proportional
strain gauges, precise temperature or speed control
Summing amplifier
inverted, weighted sum
mixing
audio mixer, digital-to-analogue conversion
✏️ Task 17 — Choosing a configuration
a) An automatic street light switches on at dusk and off at dawn. Name the most suitable op-amp configuration and explain your choice.
Answer
b) The heater in an incubator must reduce its output gradually as the temperature approaches the desired temperature. Which configuration is most suitable? Explain your choice.
Answer
c) An audio mixer combines a guitar (50 mV) and a microphone (20 mV) signal with equal gain. Which configuration is most suitable? Explain your choice.
Answer
d) A buffer is needed between a high-resistance sensor divider and a low-resistance meter. Which configuration is most suitable? Explain your choice.
Answer
Section 15: Design Challenges
Each challenge gives you a real context and a written specification, like an engineering brief. You will analyse the problem, design a circuit, build or simulate it, test it and evaluate it — the same stages as the Higher assignment.
How to approach these: read the whole specification first. Identify the input, process and output sub-systems. Do your calculations before you build. In your evaluation, refer back to each numbered point in the specification and say whether, and how well, it is met.
Design Challenge 1 — Whisky warehouse temperature alarm, Speyside
A distillery stores casks in a bonded warehouse. If the temperature rises too far, more spirit evaporates from the casks. The warehouse manager wants a siren to sound automatically when the temperature goes above 25 °C.
i
Supply: 12 V (single supply). The op-amp output can reach 85% of the supply when high, and 0 V when low.
ii
A thermistor with the characteristics of type 3 is used.
iii
The siren must sound above 25 °C and be silent below it. The siren draws 100 mA.
iv
The siren is switched by an n-channel MOSFET with VT = 3.0 V.
v
Fixed resistors are available in the values 1.0, 2.2, 4.7, 5.6, 10 and 22 kΩ. A 10 kΩ potentiometer is also available.
Optional support. The starter circuit opens in the simulator editor with the 12 V thermistor divider (with a voltmeter), an op-amp on a 12 V single supply, and a MOSFET with the siren already placed. You still choose the values and make the remaining connections yourself. Try the challenge without it first if you can.
✏️ Design Challenge 1 — Warehouse temperature alarm
a) Analysis. Draw or describe a system diagram for the alarm, identifying the input, process and output sub-systems.
Answer
b) Design. Design the sensor and reference voltage dividers, decide which comparator input each goes to, and show that the comparator output can switch on the MOSFET. Show your calculations.
Answer
c) Build. Build your circuit in the simulator. Describe or paste your completed circuit.
Answer
d) Test. Change the thermistor’s resistance to represent temperatures from 20 °C to 30 °C. Record the sensor voltage, the comparator output and whether the siren sounds.
Answer
e) Evaluate. Evaluate your design against each point of the specification. Suggest one improvement for a real warehouse.
Engineers want to monitor the strain in one of the bridge’s stay cables. A strain gauge bonded to the cable is compared with an identical unstrained gauge, and the small difference must be amplified so that a data logger can record it.
i
Each strain gauge is 120 Ω when unstrained. At the cable’s maximum safe load, the active gauge rises to 121.2 Ω.
ii
Each gauge is the lower half of a voltage divider with a 120 Ω resistor at the top, on a 10 V supply.
iii
The amplifier runs from ±12 V. At the maximum safe load its output must be between 4.5 V and 5.5 V.
iv
Available resistors: 1.0, 2.2, 4.7, 10, 22, 47, 100, 220 and 470 kΩ.
Optional support. The starter circuit opens in the simulator editor with the two strain-gauge dividers on 10 V (with voltmeters for V1 and V2) and an op-amp on ±12 V already placed. You still choose the values and make the remaining connections yourself. Try the challenge without it first if you can.
✏️ Design Challenge 2 — Cable strain monitor
a) Analysis. Explain why the signal from the strain gauges must be amplified, and why a difference amplifier is the right choice.
Answer
b) Design. Calculate V1 and V2 at the maximum safe load, the gain needed, and choose Ri and Rf from the available values. Show that your output meets point iii.
Answer
c) Build and test. Simulate your circuit using resistors in place of the gauges. Record Vo with the active gauge at 120, 120.6 and 121.2 Ω.
Answer
d) Evaluate. Evaluate your design against the specification. Explain one advantage of using a second, unstrained gauge rather than a fixed 120 Ω resistor.
Answer
Design Challenge 3 — Harbour tide gauge, Ullapool
A pressure sensor on the harbour wall measures the depth of water. Its output must be fed to a microcontroller’s analogue input so the tide height can be logged and displayed online.
i
The sensor gives 0 V at low water and 0.40 V at the highest tide. It can supply almost no current.
ii
The microcontroller’s analogue input accepts 0 to 5 V. At the highest tide the signal must be as close to 5 V as possible without exceeding it.
iii
The op-amp runs from a single +9 V supply.
iv
Available resistors: 1.0, 1.2, 1.5, 1.8, 2.2, 2.7, 3.3, 3.9, 4.7, 5.6, 6.8 and 8.2 kΩ, and the same values × 10.
Optional support. The starter circuit opens in the simulator editor with a 0 to 0.40 V variable source standing in for the sensor, an op-amp on +9 V, and a voltmeter for the microcontroller input already placed. You still choose the values and make the remaining connections yourself. Try the challenge without it first if you can.
✏️ Design Challenge 3 — Tide gauge signal conditioning
a) Analysis. Which op-amp configuration should be used? Justify your choice using the specification.
Answer
b) Design. Calculate the ideal gain, then choose Ri and Rf from the available values to meet point ii. Show the output at the highest tide.
Answer
c) Test. Simulate your design and record Vo for sensor outputs of 0, 0.10, 0.20, 0.30 and 0.40 V.
Answer
d) Evaluate. Evaluate your design against the specification. How much of the microcontroller’s input range does it use, and how could the design be improved?
Answer
💾 Answers saved automatically in this browser on this device.