Skip to main content
WalesElectronicsSyllabus dot point

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.

Generated by Claude Opus 4.89 min answer

Reviewed by: AI editorial process; not yet individually human-reviewed

Have a quick question? Jump to the Q&A page

Jump to a section
  1. What this topic is asking
  2. Why a floating input is a problem
  3. Pull-down and pull-up resistors
  4. Current-limiting a light-emitting diode
  5. Calculating the LED series resistor
  6. Try this

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 0V0\,\text{V}. With a pull-up, the open switch leaves the input held high, and pressing connects it to 0V0\,\text{V}. A typical pull resistor is around 10kΩ10\,\text{k}\Omega: 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 2.0V2.0\,\text{V} runs at 20mA20\,\text{mA} from a 12V12\,\text{V} supply. Calculate the series resistor. [2 marks]

  • Cue. VR=122.0=10VV_R = 12 - 2.0 = 10\,\text{V}; R=100.020=500ΩR = \dfrac{10}{0.020} = 500\,\Omega (use 470Ω470\,\Omega or 510Ω510\,\Omega).

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 0V0\,\text{V} 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 0V0\,\text{V} (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 15mA15\,\text{mA} and has a forward voltage of 2.0V2.0\,\text{V}. It is connected through a series resistor to a 9.0V9.0\,\text{V} 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: VR=9.02.0=7.0VV_R = 9.0 - 2.0 = 7.0\,\text{V} (1 mark for subtracting the LED voltage). The same current flows through the resistor and the LED, I=15mA=0.015AI = 15\,\text{mA} = 0.015\,\text{A} (1 mark). Then R=VRI=7.00.015=467ΩR = \dfrac{V_R}{I} = \dfrac{7.0}{0.015} = 467\,\Omega, so choose the nearest preferred value, about 470Ω470\,\Omega (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 9.0V9.0\,\text{V} across the resistor.

Related dot points

Sources & how we know this