Electronics & control · Higher

Voltage dividers & sensors

6 cards · 6 quiz · 0 exam
What you're learning in this topic

Learning intention WALT

We are learning about voltage dividers & sensors, specifically to:

understand

  • how a sensing circuit works using LDR or thermistor resistance and Vout

be able to

  • calculate the voltages in a voltage divider
  • rearrange the voltage divider formula to find a resistor value
  • design a voltage divider to switch at a given light level or temperature

Success criteria WILF

  • I can calculate the voltages in a voltage divider
  • I can rearrange the voltage divider formula to find a resistor value
  • I can describe how a sensing circuit works using LDR or thermistor resistance and Vout
  • I can design a voltage divider to switch at a given light level or temperature

How a voltage divider works

Two resistances in series across a supply share the voltage in proportion to their resistance: the bigger resistance gets the bigger share.

  • V1 / V2 = R1 / R2
  • V2 = Vs × R2 ÷ (R1 + R2)
  • V1 + V2 = Vs.
+Vs (e.g. 5 V)0 VR1R2Vout = V2V2V1V1 ÷ V2 = R1 ÷ R2V2 = Vs × R2 ÷ (R1 + R2)
The supply voltage is shared between R1 and R2 in proportion to their resistance. Swap R2 for an LDR or thermistor and Vout changes with light or temperature.

Replace one resistor with an LDR or thermistor and the output voltage changes with light or temperature: this is the input signal for a control circuit. Put the sensor at the bottom to make Vout rise when its resistance rises (e.g. LDR at the bottom: Vout rises as it gets darker). Swap them to reverse the action.

Voltage divider with V out between the resistors
A voltage divider: the supply voltage is shared between R1 and R2, and Vout is taken across R2.

Interactive simulation: try this on the revision site, where you can change the values and see the result.

Designing a divider

Example: a thermistor of 4.8 kΩ is at the bottom and the transistor needs 1.4 V across the top resistor on a 5 V supply. Vtherm = 5 − 1.4 = 3.6 V; R1/4.8 k = 1.4/3.6, so R1 = 1.9 kΩ. Read sensor resistances from the characteristic graph (resistance against light or temperature) carefully, including the kΩ scale.

Worked examples: voltage dividers

1. Find Vout. R1 = 4.7 kΩ (top) and R2 = 2.2 kΩ (bottom) on a 6 V supply. Vout across R2 = 6 × 2.2 ÷ (4.7 + 2.2) = 6 × 2.2 ÷ 6.9 = 1.91 V.

2. Using the ratio. If V1 = 4 V and V2 = 2 V with R2 = 5 kΩ, then V1 ÷ V2 = R1 ÷ R2 → R1 = 5 × 4 ÷ 2 = 10 kΩ.

3. Thermistor reading. A thermistor (bottom) is 3.3 kΩ at 25 °C and 1.2 kΩ at 60 °C, with a 4.7 kΩ resistor at the top and a 5 V supply.

  • 25 °C: Vout = 5 × 3.3 ÷ (4.7 + 3.3) = 2.06 V
  • 60 °C: Vout = 5 × 1.2 ÷ (4.7 + 1.2) = 1.02 V
  • As the temperature rises the thermistor's resistance falls, so Vout falls. To make an output switch on when it gets hot, put the thermistor at the top instead.

4. Choosing a resistor (design). An LDR at the bottom is 15 kΩ at dusk. The transistor must switch on (0.7 V) at dusk with a 9 V supply. 0.7 = 9 × 15 ÷ (R + 15) → R + 15 = 135 ÷ 0.7 = 192.9 → R ≈ 178 kΩ. Choose a variable resistor so the switching point can be adjusted.

Describing a sensing circuit

A full description follows the chain: sensor resistance changes → Vin changes → transistor switches on/off → relay/output switches. E.g. "As the water heats up the thermistor's resistance falls, so Vin rises; the transistor switches on, the relay activates, the blue LED turns off and the red LED turns on." The 2024 report: some didn't refer to the thermistor resistance or Vout.

Thermistor resistance against temperature graph
Thermistor graph: resistance falls as temperature rises. Read values off the line for the thermistor named in the question.
LDR resistance against light intensity graph
LDR graph: resistance falls as light intensity rises (both scales are logarithmic).

Adjusting the sensitivity

Replace the fixed resistor with a variable resistor and the circuit can be set to switch at a different light level or temperature: for example an outside light that comes on at dusk in summer and in winter. Changing the variable resistor changes how much of the supply the sensor gets, so it changes the level at which Vout reaches the transistor's switch-on voltage.

Example: an LDR at the bottom of a divider on 9 V, and the transistor must switch on (0.7 V) when the LDR is 2 kΩ. V1 = 9 − 0.7 = 8.3 V, so R1 = 2000 × 8.3 ÷ 0.7 = 23.7 kΩ: set the variable resistor to about 24 kΩ.

To make the circuit work the opposite way (on when light, or on when hot), swap the sensor and the variable resistor.

Design challenge: frost warning

The brief. A Fife farm wants a buzzer to sound when the temperature in a polytunnel drops towards freezing.

  1. Choose the sensor and its position in the voltage divider.
  2. Explain how the circuit operates as it gets colder.
  3. State how the switching temperature could be adjusted.
  4. Suggest one way to test the circuit without waiting for a frost.
What a good answer includes
  • Put the thermistor at the bottom of the divider: as it gets colder its resistance increases, so Vout across it increases.
  • Colder → thermistor resistance increases → Vout increases → at 0.7 V the transistor switches on → buzzer sounds.
  • Replace the fixed resistor with a variable resistor.
  • Cool the thermistor with ice or a freezer spray, or simulate it first.

Higher: designing to a specification HIGHER

Use the sensor's characteristics to choose resistor values that give the required switching voltage at a stated light level or temperature, often in combination with a reference divider and an op-amp comparator. A Wheatstone bridge uses two dividers: it is balanced (zero difference) when RA/RB = R1/R2. It is used with strain gauges (see Materials).

Key terms

Voltage divider ruleV1/V2 = R1/R2
V out of a dividerV2 = Vs × R2 ÷ (R1 + R2)
Sensor at the bottom of a dividerVout rises when the sensor's resistance rises.
LDR at the bottomVout rises as it gets darker (resistance rises).
Describing a sensing circuitSensor resistance → Vin → transistor → relay → output.
Balanced bridgeRA/RB = R1/R2; no voltage difference across the middle.

Quick check

1. Why replace the fixed resistor in a sensing divider with a variable resistor?

  1. To increase the supply voltage to the circuit
  2. To protect the LDR from too much current
  3. To reverse the current through the sensor
  4. To adjust the level at which the circuit switches
Show answer
D: To adjust the level at which the circuit switches. It adjusts the sensitivity.

2. An LDR (2 kΩ) is at the bottom of a 9 V divider; the transistor must switch at 0.7 V. The top resistor is about…

  1. 24 kΩ
  2. 2 kΩ
  3. 12 kΩ
  4. 0.16 kΩ
Show answer
A: 24 kΩ. 2000 × 8.3 ÷ 0.7 = 23.7 kΩ.

3. In a divider, the larger resistor has…

  1. The smaller share of voltage
  2. The larger share of voltage
  3. No voltage
  4. The same voltage
Show answer
B: The larger share of voltage. Voltage shares in proportion to resistance.

4. Vs = 9 V, R1 = 1 kΩ, R2 = 2 kΩ. V2 is…

  1. 3 V
  2. 4.5 V
  3. 6 V
  4. 9 V
Show answer
C: 6 V. 9 × 2/3.

5. A thermistor is at the bottom of a divider. As temperature rises, Vout…

  1. Rises
  2. Reverses
  3. Stays the same
  4. Falls
Show answer
D: Falls. Its resistance falls, so its share falls.

6. A good description of a sensing circuit starts with…

  1. The sensor's resistance changing
  2. The relay switching on the output
  3. The LED lighting up as a warning
  4. The battery supplying the voltage
Show answer
A: The sensor's resistance changing. Follow the chain from the sensor.

Printable worksheet

An I do, we do, you do worksheet for this topic, with a separate answer sheet.

Worksheet (PDF)Answers (PDF)