How can we use potentiometer to regulate voltage form o-5v?

That is, if we rotate the potentiometer it will give some voltage variation as output. If there any circuit available please let me know the function of that circuit.

  • \$\begingroup\$ Note that this does not accomplish the traditional meaning of "regulate" as the output voltage would vary with the input voltage and the load, instead of remaining stable as a "regulator" usually attempts to achieve. \$\endgroup\$ – Chris Stratton Dec 21 '11 at 16:01
  • \$\begingroup\$ How can user7141 edit this question with a reputation of 5? \$\endgroup\$ – abdullah kahraman Dec 21 '11 at 16:20
  • \$\begingroup\$ @abdullahkahraman any one can edit a question, you don't even have to be a member to edit. What happens is people who have enough rep have to approve the edit before it becomes active. \$\endgroup\$ – Kellenjb Dec 21 '11 at 16:23
  • \$\begingroup\$ The answer depends if you want to provide only a small current (a few mA) or more. What kind of power supply do you have? Is it's voltage stable (e.g. regulated by a linear regulator like a lm8705)? \$\endgroup\$ – 0x6d64 Dec 21 '11 at 16:44
  • \$\begingroup\$ A potentiometer can indeed regulate voltage. Or, rather, it can represent the input part of the closed loop for voltage control. A voltage meter provides the output, and a human operator turning the knob or moving the slider provides the control. \$\endgroup\$ – Kaz Oct 31 '12 at 16:38

Now that you have provided more information, a voltage regulator is not actually what you want. I will go ahead and leave that part of the answer in here for reference though.

What you actually want is a voltage divider. A voltage divider looks like so:

enter image description here

and follows the formula of enter image description here.

Selecting Values for your System

Note, Majenko already answered with a simpler method, but since you still had questions I will give you a slightly different approach to it in the hope to grow your understanding more.

The specifics of the values you choose will be related to your specific circumstance, but let me give you an example:

First lets set Vin to be a constant 10v. In order to get down to 0v you will have to set Z2 to be your pot, that way when you pot is at 0 ohms, Vout is 0v.

Now you need to select the values for Z1 and select the max value of your pot. The best way to approach this is to look at your current draw from Vin in your worst case, which is when Z2 is at 0. You probably want to keep your current in the lower mA range, so I will randomly select 5mA, to solve for Z1 you use ohms law. V/I=Z1 or 10v/5mA=2Kohm

Now that you know Vin, Z1, and your desired range of Vout, you need to solve for Z2. The max Vout that you want is 5v, so lets plug that all into the voltage divider equation.

5v = (Z2/(2kohm+Z2))*10v => Z2 = 2Kohm meaning that your pots max resistance should be 2 Kohm

Correlating Voltage to degrees on the Pot

Now that you have a system setup that outputs 0-5v, I will skip past the sampling of the voltage and move on to how to relate your measured voltage to the position of the pot.

This will depend directly with the range of motion of your specific pot, but for example purposes I will assume a range of 180* and that you are using a linear pot.

If you look at the equation for the voltage divider, you will find that the output voltage is not so linear. In fact if you were to plot it, it would look like so:

enter image description here

If you use Majenko's method, you will get a linear relationship

You can still determine what the resistance your pot is at, it will just require a little bit of math. I will let you go ahead and do this math yourself and assume you can find the resistance of your pot. Once you get this resistance, you can just divide it by the max resistance of your pot (2 kohm) in this example. This will give you a percentage that you can then multiply your pots range of motion by and get the pots current location. So if you come up with 1kohm, divide that by 2kohm, and get 50% then multiple 50% by 180* and your pot is at 90*.

First you must understand what it means to regulate a voltage. The basics principal of a regulator is to take a variable higher voltage and produce a constant lower voltage. You can use a voltage divider with one of the resistors being a potentiometer to create a lower voltage, the problem is that your voltage out will depend on both the voltage in as well as the load of the output (ie, what your voltage regulator is powering).

So you must use a regulator to get a constant voltage out. In order to achieve the ability to adjust the output voltage with a pot, you will want to use something like the LM117. Their website shows an example circuit as shown here, where R2 is your pot:


Or more precisely the datasheet says:

In operation, the LM117 develops a nominal 1.25V reference voltage, VREF , between the output and adjustment terminal. The reference voltage is impressed across program resistor R1 and, since the voltage is constant, a constant current I 1 then flows through the output set resistor R2, giving an output voltage of

enter image description here

Since the 100μA current from the adjustment terminal represents an error term, the LM117 was designed to minimize I ADJ and make it very constant with line and load changes. To do this, all quiescent operating current is returned to the output establishing a minimum load current requirement. If there is insufficient load on the output, the output will rise

This will allow you to regulate all of the way down to 1.2v, but is not able to go beyond that, and you will be hard pressed to find a regulator that can do anything much better.

  • \$\begingroup\$ my doubt is cleared now.. i gonna use this as sensor... that is while we rotate the potentiometer(when used in voltage divider) there will be a variation in output voltage. finally i have to calibrate the voltage variation to show the angle at which the potentiometer is rotated.. \$\endgroup\$ – vijay Dec 21 '11 at 17:07
  • \$\begingroup\$ @vijay that sounds like a voltage divider would be a better fit. It would be good for you to include all of this information in your questions. \$\endgroup\$ – Kellenjb Dec 21 '11 at 17:43
  • \$\begingroup\$ what will be the variation voltage with one degree rotation of potentiometer \$\endgroup\$ – vijay Dec 21 '11 at 17:54
  • \$\begingroup\$ @vijay if you just want to sense the change in resistance, you're probably feeding the "signal" into a high impedance input (e.g. an Analog-to-Digial converter) and that's why Kellenjb's subsequent suggestion of a voltage is a much simpler and adequate solution for your needs. \$\endgroup\$ – vicatcu Dec 21 '11 at 17:59
  • \$\begingroup\$ yes i can sens voltage... can i use any one resistor as potentiometer in voltage divider circuit..so that i can keep other resistor as constant one \$\endgroup\$ – vijay Dec 21 '11 at 18:06

The arrangement is what is known as a "Voltage Divider".

Usually this is made up of two resistors in series between the 5V and the Ground connections. The center tap where they join is the new output voltage, which is at the ratio of the two resistors:

Resistive Voltage Divider

\$V_{out} = V_{in} \times \frac{R_2}{R_1+R_2}\$

You can replace the two resistors with a potentiometer in the exact same arrangement. The wiper of the potentiometer is the center tap of the voltage divider, and the two resistances between the wiper and either end are the two resistors R1 and R2.

  • \$\begingroup\$ if i want the votage output with in 0-5v means ...what is the the voltage input i should give and what is the potentiometer specification \$\endgroup\$ – vijay Dec 21 '11 at 16:08
  • \$\begingroup\$ @vijay I don't understand why you wanted to add the extra $$ \$\endgroup\$ – Kellenjb Dec 21 '11 at 16:18
  • \$\begingroup\$ The voltage input is 5V. The pot can be whatever you have lying around. The higher the resistance the less current will flow through it. \$\endgroup\$ – Majenko Dec 21 '11 at 17:28
  • \$\begingroup\$ This is the normal way of connecting a pot to an ADC on a microcontroller, for instance, when you want to be able to detect how far round the pot has been turned. I usually use 10K linear pots. \$\endgroup\$ – Majenko Dec 21 '11 at 17:59
  • 1
    \$\begingroup\$ Using a resistor and a potentiometer will just mean that you reduce and offset the possible voltage range. \$\endgroup\$ – Majenko Dec 21 '11 at 20:29

protected by Community Feb 26 '18 at 5:16

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.