- All levels
- National 5 Physics
- Tools
N5 · Electricity · Practical electrical and electronic circuits · Ohm's law
Circuit walkthroughs
LI: I am learning how switching circuits work.
SC: I can explain what an LDR, a thermistor, a transistor and a relay do in a circuit · I can explain how a switching circuit works.
Step-by-step guides to the switching circuits that come up in the exam. Each one shows you a circuit, lets you change the light or temperature, and shows what every part does as it happens. When you are ready, try building them yourself in the circuit builder.
Part 1: the building blocks
- 1The potential dividerHow two resistors share the supply voltage
- 2The LDRHow light changes its resistance
- 3The thermistorHow temperature changes its resistance
- 4Transistors as switchesThe npn transistor and the MOSFET
- 5The relayA small current switching on a big one
Part 2: exam circuits
- 6Light comes on when it gets darkLDR, npn transistor and LED
- 7Fan comes on when it gets hotThermistor, MOSFET and motor
- 8Heater comes on when it gets coldThermistor, variable resistor, MOSFET and relay
- 9Alarm sounds when it gets lightLDR at the top: what changes?
- 10Time delayCapacitor, resistor and transistor
1. The potential divider
Two resistors share the supply
Two resistors in series across a supply make a potential divider. The 6.0 V of the supply is shared between them: V1 across R1 and V2 across R2.
Right now both have a resistance of 10 kΩ, so they get equal shares.
Change one resistor
R2 is a variable resistor, so you can change its resistance.
1.R2 is made bigger. What happens to V2, the voltage across R2?
Look at V1 + V2: whatever you do, it is always 6.0 V.
The rule
Bigger resistance, bigger share of the voltage.
The shares always add up to the supply voltage: Vs = V1 + V2.
On your relationships sheet: V2 = (R2 / (R1 + R2)) × Vs
2.A potential divider has R1 = 2.0 kΩ and R2 = 4.0 kΩ on a 6.0 V supply. Calculate V2.
That's V1, the share across R1. R2 is the bigger resistor, so it gets the bigger share.
The answer can't be more than the supply voltage. Divide R2 by the total resistance R1 + R2.
Hint
The total resistance is R1 + R2. What fraction of it is R2? R2 gets that fraction of the 6.0 V.
The middle point
In every switching circuit, a wire goes from the middle point of a potential divider to a transistor. The bottom of the divider is joined to 0 V.
So the voltage at the middle point (compared with 0 V) is the same as the voltage across the bottom part, V2. Change the bottom part's share, and you change the voltage the transistor gets.
3.R1 and R2 are both 10 kΩ, on a 6.0 V supply. What is the voltage at the middle point?
2. The LDR
A resistor that senses light
An LDR (light-dependent resistor) is a resistor whose resistance depends on how much light falls on it. The ohmmeter is measuring its resistance.
1.The light gets brighter. What happens to the resistance of the LDR?
An LDR in a potential divider
Now the LDR is in a potential divider with a 10 kΩ resistor, on a 5.0 V supply.
2.It gets darker. What happens to the voltage across the LDR?
What to remember
Brighter: lower resistance, smaller share of the voltage.
Darker: higher resistance, bigger share of the voltage.
3.Which of these would use an LDR? Tap all that apply.
3. The thermistor
A resistor that senses temperature
A thermistor is a resistor whose resistance changes with temperature. The ohmmeter is measuring its resistance.
1.The thermistor gets hotter. What happens to its resistance?
Careful: an ordinary metal wire is the other way round. Its resistance goes up as it gets hotter.
A thermistor in a potential divider
Now the thermistor is in a potential divider with a 1.0 kΩ resistor, on a 5.0 V supply.
2.It gets colder. What happens to the voltage across the thermistor?
What to remember
Hotter: lower resistance, smaller share of the voltage.
Colder: higher resistance, bigger share of the voltage.
3.Which of these would use a thermistor? Tap all that apply.
4. Transistors as switches
Meet the circuit
A transistor is a switch with no moving parts. Instead of a finger pressing it, it is switched on by a voltage.
This one is an npn transistor. Its three connections are the base, the collector and the emitter. Tap each of the ringed parts to find out what it does.
Switching it on
An npn transistor switches on when the voltage across its base and emitter reaches 0.7 V. Then current can flow through it from the collector to the emitter, and the LED lights.
1.The voltage across the base and emitter is 0.9 V. Is the LED on or off?
The MOSFET
An n-channel enhancement MOSFET does the same job. Its connections are the gate, the drain and the source. This one switches on when the voltage across its gate and source reaches 2.0 V. (Exam questions tell you the switching voltage of the MOSFET they use.)
2.The voltage across the gate and source is 1.5 V. Is the LED on or off?
Matching connections
3.Match each npn transistor connection to the MOSFET connection that does the same job.
Drag each one onto its partner, or tap one and then its partner.
The key idea
A transistor only responds to the voltage across the part joined between its base and emitter (for a MOSFET, its gate and source).
In exam circuits, that is the part at the bottom of the potential divider, joined to the 0 V line.
4.What is this component?
5. The relay
Two separate circuits
A relay is a switch worked by an electromagnet. Its coil is in one circuit and its switch is in another.
On the left is a 5.0 V circuit with a switch and the relay coil. On the right is a 230 V mains circuit with the relay switch and a heater. No wire joins the two. Tap each of the ringed parts.
Working the relay
1.The switch is closed, so current flows in the relay coil. What happens to the heater?
Look at the moving dots. In the 5.0 V circuit they go one way (d.c.). In the mains circuit they keep changing direction (a.c.).
Why use a relay?
2.Why do switching circuits use a relay to turn on a mains heater?
6. Light comes on when it gets dark
What it does
This circuit switches an LED on automatically when it gets dark, like a street light. Tap each of the ringed parts to find out what it does.
Which voltage matters?
1.The transistor switches on when the voltage across which part reaches 0.7 V?
Make it dark
2.It gets darker. What happens to the resistance of the LDR?
Choosing the resistor
The resistor at the top decides how dark it has to get before the LED comes on.
3.The LED should come on earlier in the evening, while it is still fairly bright. Should the resistor at the top be bigger or smaller?
Hint
The LDR needs 0.7 V across it. Which gives the LDR a bigger share: a bigger or a smaller resistor above it?
Write the exam answer
4.Explain how this circuit switches the LED on when it gets dark. Put the sentences in order. Two of them are wrong: put those in "Not needed".
Drag each sentence to its place, or tap a sentence and then its place.
Hint
Start with what changes first: the light. Then follow the chain on this page from top to bottom.
Now build it yourself: try task 6 in the circuit builder.
7. Fan comes on when it gets hot
What it does
This circuit switches on a fan (a motor) when it gets hot. It uses a MOSFET as the switch. Tap each of the ringed parts.
Look carefully: the thermistor is at the top of the potential divider this time.
Which voltage matters?
1.The MOSFET switches on when the voltage across which part reaches 2.0 V?
Turn up the heat
2.It gets hotter. What happens to the voltage across the resistor?
Hint
First think about the thermistor: what happens to its resistance, and so to its share of the voltage? The two shares always add up to 5.0 V.
Swap them over
3.The thermistor and the resistor are swapped over, so the thermistor is at the bottom. Now the fan would come on when it gets…
Write the exam answer
4.Explain how this circuit switches the fan on when it gets hot. Put the sentences in order. Two of them are wrong: put those in "Not needed".
Drag each sentence to its place, or tap a sentence and then its place.
Now build it yourself: try task 7 in the circuit builder.
8. Heater comes on when it gets cold
What it does
This circuit switches a mains heating element on when it gets cold. Circuits like this come up in the exam a lot. Tap each of the ringed parts to find out what it does.
Which voltage matters?
1.The MOSFET switches on when the voltage across which part reaches its switching voltage?
Let it get cold
2.It gets colder. What happens to the resistance of the thermistor?
The variable resistor
3.What is the variable resistor for?
The relay
4.Why does this circuit need a relay?
Write the exam answer
5.Explain how this circuit switches the heating element on when it gets cold. Put the sentences in order. Two of them are wrong: put those in "Not needed".
Drag each sentence to its place, or tap a sentence and then its place.
Exam questions on this circuit often go on to ask why a relay is used, or what the variable resistor is for. You have just answered both.
9. Alarm sounds when it gets light
What it does
This alarm sits inside a jewellery box. When someone opens the lid, light gets in and the alarm sounds.
Compare it with walkthrough 6: the LDR is now at the top of the potential divider. Tap each of the ringed parts.
Which voltage matters?
1.The transistor switches on when the voltage across which part reaches 0.7 V?
Open the lid
2.The lid opens and light gets in. What happens to the voltage across the resistor?
The rule for any switching circuit
1. Find the part between the base (or gate) and the 0 V line.
2. The output comes on when the voltage across that part goes up to the switching voltage.
3. That happens when its own resistance goes up, or when the resistance of the part above it goes down.
3.A switching circuit has a resistor at the top of its potential divider and a thermistor at the bottom. When does its output come on?
Write the exam answer
4.Explain how this circuit makes the alarm sound when the lid is opened. Put the sentences in order. Two of them are wrong: put those in "Not needed".
Drag each sentence to its place, or tap a sentence and then its place.
10. Time delay
What it does
When you close the switch, the LED comes on a few seconds later. The potential divider is a resistor and a capacitor. Tap each of the ringed parts.
Close the switch
1.The switch is closed. What happens to the voltage across the capacitor?
Opening the switch doesn't empty the capacitor. Press "Empty the capacitor" before you try again.
Changing the delay
2.The resistor is changed for one with a bigger resistance. What happens to the delay?
Write the explanation
3.Explain why the LED comes on a short time after the switch is closed. Put the sentences in order. Two of them are wrong: put those in "Not needed".
Drag each sentence to its place, or tap a sentence and then its place.
Now build it yourself: try the Challenge in the circuit builder.