skill
Voltage dividers
Two resistors split a voltage — the trick behind almost every sensor.
first shows up at Level 3 · Sense
Put two resistors in series across a battery and the voltage at the point between them is a fraction of the battery voltage — and you get to choose the fraction with the resistor sizes.
V_mid = V_battery × R_bottom ÷ (R_top + R_bottom)
So on 4.5 V, if the top resistor is 10 kΩ and the bottom is also 10 kΩ, the middle sits at exactly 2.25 V — half. Change the ratio and the middle voltage moves.
Why every sensor uses this
Most cheap sensors are just resistors that change:
- An LDR (light-dependent resistor) has lots of resistance in the dark and little in the bright light.
- A thermistor has resistance that shifts with temperature.
Put one of those in a voltage divider with a normal fixed resistor, and the middle voltage becomes a measurement. Cover the LDR → middle voltage swings one way. Shine a flashlight on it → swings the other way. A Sense level project turns that swinging voltage into a switch that flips an LED.
Voltage dividers are how nearly every analog sensor in the world turns a changing resistance into a voltage.