A voltage divider is a simple, fundamental circuit used primarily to produce a specific, lower output voltage (Vout) from a higher input voltage (Vin). It's one of the most common and useful circuits in electronics.
Here's a breakdown of its key purposes and applications:
Scaling Down Voltages: This is its core function. It takes a higher voltage and outputs a predictable fraction of it.
Example: Converting a 12V battery signal down to 5V for a logic input, or converting a 5V sensor output down to 3.3V for a microcontroller.
Signal Level Shifting: Adapting signal voltage levels between different parts of a circuit or between different devices.
Example: Interfacing a sensor designed for 5V operation with a microcontroller that runs on 3.3V logic.
Creating Reference Voltages: Providing a stable, specific voltage point for other circuits to use as a reference.
Example: Setting the bias voltage for the base of a transistor or the non-inverting input of an op-amp.
Sensor Measurement (Potentiometers): Many sensors (like potentiometers, thermistors, light-dependent resistors - LDRs, flex sensors, some pressure sensors) work by changing their resistance in response to a physical quantity.
How: The sensor is used as one resistor (R2) in the divider. A fixed voltage (Vin) is applied across the divider. As the sensor's resistance changes (e.g., with temperature, light, position), the output voltage (Vout) changes proportionally. This varying Vout is easily measured by an ADC (Analog-to-Digital Converter) in a microcontroller.
Example: The volume knob on an old radio is often a potentiometer used as a voltage divider.
Biasing Active Components: Setting the correct DC operating point (quiescent point) for transistors or operational amplifiers.
Attenuation: Reducing the amplitude of an AC signal (like audio or radio frequency signals) without significantly distorting it.
Key Formula:
The output voltage (Vout) of a simple two-resistor voltage divider is determined by:
Vout = Vin * (R2 / (R1 + R2))
Where:
Vin is the input voltage.
R1 is the resistance of the first resistor (connected between Vin and Vout).
R2 is the resistance of the second resistor (connected between Vout and Ground).

