

A voltage divider is a simple yet essential electronic circuit used to reduce a higher voltage to a lower voltage. It consists of two resistors connected in series, with the output voltage taken from the junction between the two resistors. The voltage divider operates based on the principle of resistive voltage division, where the output voltage is proportional to the ratio of the two resistors.








The voltage divider circuit is defined by the following formula:
[ V_{out} = V_{in} \times \frac{R_2}{R_1 + R_2} ]
Where:
A voltage divider does not have pins like an IC but consists of two resistors connected as follows:
| Pin/Connection | Description |
|---|---|
| ( V_{in} ) | Input voltage to the circuit |
| ( V_{out} ) | Output voltage from the resistor junction |
| Ground | Common ground connection |
Select Resistor Values:
Connect the Circuit:
Verify the Output:
To measure a 12V battery voltage using an Arduino UNO (which has a 5V ADC input limit), you can use a voltage divider to step down the voltage.
// Define the analog pin connected to the voltage divider
const int voltagePin = A0;
// Define the resistor values in the voltage divider
const float R1 = 10000.0; // 10k ohms
const float R2 = 5000.0; // 5k ohms
void setup() {
Serial.begin(9600); // Initialize serial communication
}
void loop() {
int sensorValue = analogRead(voltagePin); // Read the ADC value
float voltage = sensorValue * (5.0 / 1023.0); // Convert ADC value to voltage
// Calculate the input voltage using the voltage divider formula
float inputVoltage = voltage * ((R1 + R2) / R2);
// Print the input voltage to the Serial Monitor
Serial.print("Input Voltage: ");
Serial.print(inputVoltage);
Serial.println(" V");
delay(1000); // Wait for 1 second before the next reading
}
Incorrect Output Voltage:
Overheating Resistors:
Output Voltage Fluctuations:
Arduino Reads Incorrect Voltage:
Q1: Can I use a voltage divider to power a device?
A1: Voltage dividers are not suitable for powering devices, as they cannot provide significant current. Use a voltage regulator instead.
Q2: How do I choose resistor values for a voltage divider?
A2: Select resistors based on the desired output voltage and ensure their combined resistance does not draw excessive current from the source.
Q3: What happens if I reverse ( R_1 ) and ( R_2 )?
A3: Reversing the resistors will change the output voltage. Ensure the resistors are connected as per the desired voltage ratio.
Q4: Can I use a potentiometer as a voltage divider?
A4: Yes, a potentiometer can act as an adjustable voltage divider, allowing you to vary the output voltage.