Wednesday, 21 September 2022

Voltage Divider Tutorial For Beginners

A voltage divider is a circuit that creates a smaller voltage from an input voltage by using two resistors. You’ll see it in both simple and advanced circuits all the time. Here’s the basic setup:

The basic voltage divider circuit

It is useful for example for reading sensors like thermistors and photoresistors since it converts an unknown resistance into a voltage. Or to reduce the volume of an audio signal via a potentiometer.

You can find the output voltage by inserting the resistor values and the input voltage into the following formula:

V_{OUT} = \frac{R2}{R1+R2} \cdot V_{IN}

Or you can use the calculator a little bit further down on this page.

Once you know how it works, it’s much easier to see how circuits work. And it will let you calculate voltages at many different points in a circuit – which is often needed to understand it.

Voltage Divider Formula

This formula is one of the few electronics formulas (in addition to Ohm’s law) that I use on a regular basis.

It’s for finding the output voltage when you have two resistors connected like this:

The basic voltage divider circuit

The formula for calculating the output voltage is:

V_{OUT} = \frac{R2}{R1+R2} \cdot V_{IN}

This can be a useful formula to remember. It will come in handy often. Or use the voltage divider calculator below if you prefer the easy way ;)

Voltage Divider Calculator

Fill in the input voltage and resistor values in the voltage divider calculator below to find the output voltage:

Voltage Input (V1)
V
1st Resistance (R1)
2nd Resistance (R2)
Voltage Output (Vout)
=V
Voltage Calculator Diagram

We’ve added this calculator to a practical voltage divider calculator page that you can bookmark and come back to in the future.

Where Do You Find The Voltage Divider?

One example of a voltage divider circuit is for reading analog sensors. For example, the thermistor is a temperature sensor. It changes its resistance based on the temperature. If you connect it with a known resistor value in a voltage divider setup, you’ll get a voltage that depends on temperature:

Voltage divider circuit with thermistor

Or you can combine a known resistor with a photoresistor. The photoresistor changes resistance based on the amount of light it detects. This way, you have a circuit that increases or decreases the voltage based on light.

Photoresistor sensor circuit

You can connect the output of any of these circuits into a comparator to check it’s above or below a certain voltage. Then do something based on that. For example, if the temperature is above 40 degrees, turn on a fan.

Or connect into an analog pin of an Arduino or a microcontroller and do cool stuff with it. Maybe turn on a light if the photocell indicates that it’s dark?

Calculation Example: Different resistor values

Let’s say we have the following values:

V_{in}=6V

R_{1}=180\Omega

R_{2}=470\Omega

By using the formula above we get

V_{out} = \frac{470 \Omega}{180 \Omega + 470 \Omega} * 6 V = 4.3 V

Calculation Example: Equal resistor values

Now, let’s say R1 and R2 has the same value.

V_{in} = 6 V

R_{1} = R_{2} = 470 \Omega

By using the formula above we get

V_{out} = \frac{470 \Omega}{470 \Omega + 470 \Omega} * 6 V = 3 V

This means that when the two resistors have the same value, the output is always half the input.

Can You Use Voltage Divider as a Power Supply?

If you have a circuit that needs 4.5 V, could you use a voltage divider with two 500 Ω resistors to get 4.5 V from your 9V battery?

Unfortunately, it’s not that easy.

Any circuit you want to power will have an internal resistance. So from the perspective of the voltage divider, whatever circuit you connect to the voltage output can be seen as a resistor (RLOAD) connected in parallel with R2.

A circuit diagram with three resistors

If the internal resistance of the circuit (RLOAD) is also 500 Ω, what happens?

Now, the R2 from the voltage divider formula becomes the parallel resistance of R2 and RLOAD. Which is just 250 Ω. If you put this into the voltage divider formula, you get an output voltage of 3V instead of the 4.5V you wanted.

For a power supply, you want the voltage to stay at the chosen level no matter if the circuit you connect has a high or low internal resistance. That’s why the voltage divider is not commonly used for power supplies.

Instead, you need to use a voltage regulator.

Questions?

What are your questions about the voltage divider? Let me know in the comment section below.

Copyright Build Electronic Circuits

No comments:

Post a Comment

Tiny, wireless antennas use light to monitor cellular communication

Researchers developed a biosensing technique that eliminates the need for wires. Instead, tiny, wireless antennas use light to detect minute...