Why do switches need pull-up or pull-down resistors, and how do we protect an LED with a series resistor?
Pull-up and pull-down resistors that give a switch a defined logic level, and the current-limiting (series) resistor that protects an LED, including calculating its value.
A focused answer to WJEC Eduqas GCSE Electronics on pull-up and pull-down resistors and current-limiting resistors, covering how a switch is given a defined logic level and how to calculate the series resistor that protects an LED.
Reviewed by: AI editorial process; not yet individually human-reviewed
Have a quick question? Jump to the Q&A page
Jump to a section
What this topic is asking
WJEC Eduqas wants you to know two practical uses of resistors at the edges of a logic system: a pull-up or pull-down resistor that gives a switch a definite logic level, and a current-limiting resistor in series with an LED to stop it being destroyed. You must be able to explain why each is needed and to calculate the LED series resistor.
Why a floating input is a problem
A floating input is unreliable: it can read high or low at random and respond to interference, so the circuit behaves unpredictably. The fix is to add a resistor that gently "pulls" the input to a known voltage whenever the switch is not pressed, while still allowing the switch to override it when pressed.
Pull-down and pull-up resistors
In both cases the resistor and the switch form a kind of potential divider for the logic input. With a pull-down, the open switch leaves the input held low through the resistor, and pressing the switch connects it firmly to the supply; the resistor then limits the current that flows from the supply to . With a pull-up, the open switch leaves the input held high, and pressing connects it to . A typical pull resistor is around : large enough to waste little current, small enough to beat the noise.
Current-limiting a light-emitting diode
Like any diode, an LED does not obey Ohm's law: once it is conducting, its voltage barely changes while the current can rise without limit, so it would quickly burn out. The series resistor takes up the difference between the supply voltage and the LED's forward voltage, and because it does obey Ohm's law, it fixes the current. Forgetting the resistor is a classic way to destroy an LED.
Calculating the LED series resistor
The resistor and LED are in series, so the same current flows through both, and the voltage across the resistor is the supply voltage minus the LED's forward voltage (the series voltage rule). Dividing that voltage by the working current gives the resistance. You then round up to the nearest preferred value, which slightly reduces the current, keeping the LED safe.
Try this
Q1. State the logic level at a switch input that uses a pull-up resistor when the switch is open. [1 mark]
- Cue. Logic 1 (high): the pull-up holds the input at the supply when the switch is open.
Q2. An LED with forward voltage runs at from a supply. Calculate the series resistor. [2 marks]
- Cue. ; (use or ).
Exam-style practice questions
Practice questions written in the style of WJEC exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.
Eduqas style4 marksExplain why a push switch connected to a logic input needs a pull-down resistor, and state the logic level at the input when the switch is open and when it is closed.Show worked answer →
A Component 1 Explain question. Without a resistor, an open switch leaves the logic input floating (not connected to a definite voltage), so its logic level is undefined and may pick up noise (1 mark). A pull-down resistor connects the input to through a resistor, so when the switch is open the input is held at logic 0 (low) (1 mark). When the switch is closed it connects the input to the positive supply, making it logic 1 (high), and the resistor limits the current that flows to (2 marks for the closed state and the role of the resistor). Markers reward the floating-input problem, the open state low and the closed state high.
Eduqas style4 marksAn LED needs a current of and has a forward voltage of . It is connected through a series resistor to a supply. Calculate the resistor value needed.Show worked answer →
A Component 1 Calculate question on a current-limiting resistor. The resistor takes the supply voltage minus the LED forward voltage: (1 mark for subtracting the LED voltage). The same current flows through the resistor and the LED, (1 mark). Then , so choose the nearest preferred value, about (2 marks for the calculation and a preferred value). Markers reward subtracting the LED voltage, using the LED current and a sensible preferred value. A common error is to use the full across the resistor.
Related dot points
- The potential divider: how two resistors share a supply voltage, the potential divider equation, and designing and analysing a divider to produce a required output voltage.
A focused answer to WJEC Eduqas GCSE Electronics on potential dividers, covering how two resistors share a supply voltage, the potential divider equation, and designing and analysing a divider for a required output voltage.
- Calculating the total resistance of resistors in series and in parallel, and identifying a resistor's value, tolerance and power rating from its colour code or the E24 preferred-value series.
A focused answer to WJEC Eduqas GCSE Electronics on combining resistors, covering the total resistance of series and parallel resistors and reading a resistor's value, tolerance and power rating from colour codes and the E24 series.
- The silicon diode and its one-way (rectifying) behaviour: using a diode to protect a circuit against reverse polarity and against inductive spikes, and half-wave rectification to convert AC into DC.
A focused answer to WJEC Eduqas GCSE Electronics on diodes and rectification, covering the silicon diode's one-way behaviour, using a diode to protect against reverse polarity and inductive spikes, and half-wave rectification of AC to DC.
- Logic levels (logic 1 and logic 0 as high and low), the NOT, AND, OR, NAND, NOR and XOR gates, their logic symbols, and constructing and using truth tables to describe combinational logic.
A focused answer to WJEC Eduqas GCSE Electronics on logic gates and truth tables, covering logic levels, the NOT, AND, OR, NAND, NOR and XOR gates and their symbols, and constructing truth tables for combinational logic.
- Electrical power and energy, the power equations linking power to voltage, current and resistance, the energy equation, and using them to choose a suitable power rating for a component.
A focused answer to WJEC Eduqas GCSE Electronics on electrical power and energy, covering the power equations, the energy equation, and choosing a suitable power rating for a resistor or other component.
Sources & how we know this
- WJEC Eduqas GCSE Electronics specification (from 2017) — WJEC Eduqas (2017)