In my last post I used the ADC on the PIC10F322 to read the voltage output from a potentiometer – convert the voltage value to a number, that we compared to see if we should turn on an LED or not.

You can read that post here.

PIC10F322 XC8 Analog-to-Digital Converter (ADC) Getting Started

This post I want to cover some things about using a Potentiometer as a voltage divider. A voltage divider turns a large voltage into a smaller one.

Potentiometers can be used as voltage dividers. To use the potentiometer as a voltage divider, all the three pins are connected. One of the outer pins is connected to the GND, the other to Vcc and the middle pin is the voltage output.


Potentiometer As An Adjustable Voltage Divider

When the potentiometer is used as a voltage divider, the wiper position determines the output voltage. This voltage can be used for measurement – like we did in the ADC circuit. However, do not try to use it as a way to power a circuit.

The reason why – is depending on how much current your circuit will draw, it will destroy the potentiometer if it pulls too much beyond what it is rated for. Could also cause a fire. Use a voltage regulator instead.

If you want to see the voltage divider in action – hook up your voltage meter to the output and see what happens when you adjust the knob.

The output voltage can be calculated using the following equation obtained from Ohm’s Law:

voltage divider formula

Potentiometer As An Adjustable Voltage Divider
In the next few posts about the ADC in the PIC10F322 – we are going to use the potentiometer to adjust the trip point of various other sensors and have the PIC do something based on the input.

Something You Might Be Intrested In


10F32X Rapid Prototype Board

Make The PIC10F322 and other PIC10F Processors Breadboard Friendly for Quick and Easy Prototyping.

{Click to learn more}

Potentiometer As An Adjustable Voltage Divider
Potentiometer As An Adjustable Voltage Divider