Summary
Learn what a potentiometer is, how its three pins work, the difference between linear and logarithmic types, and how to connect a 10K potentiometer to Arduino.
A potentiometer is a three-terminal variable resistor. Turning its knob moves an internal contact called a wiper, changing the resistance between the wiper and the two ends of the resistive track. When connected as a voltage divider, it can provide an adjustable output voltage, for example, a 10K linear potentiometer connected between 5V and GND can provide a variable voltage from approximately 0V to 5V for an Arduino analog input.
Potentiometers are used to adjust volume, brightness, motor-control reference settings, and sensor calibration. In Arduino projects, they are especially useful for learning analog inputs and controlling a parameter with a physical knob.
What Is a Potentiometer?
A potentiometer is an electronic component that lets you adjust resistance manually. It typically has three terminals: two connected to the ends of a resistive track and one connected to a movable wiper.
As you turn the shaft, the wiper changes position along the track. This changes the resistance between the wiper and either end terminal.
A potentiometer can be used in two common ways:
-
As a voltage divider: All three terminals are used to produce an adjustable output voltage.
-
As a variable resistor (rheostat): The wiper and one end terminal are used to vary resistance in a circuit.
A potentiometer marked 10K has a nominal total resistance of 10,000 ohms between its two end terminals. The value does not mean that the output voltage is always 10V or that the component can safely handle any load.
Components and Supplies
How Does a Potentiometer Work?
A potentiometer works by moving a wiper along a resistive element. The wiper divides the track into two sections whose resistance changes as the shaft turns.
When used as a voltage divider, connect one end terminal to the supply voltage and the other to ground. The middle terminal—the wiper—provides the adjustable output.
For an ideal unloaded potentiometer, the output voltage is approximately:
Here, \(R_{\text{bottom}}\) is the resistance between the wiper and ground, while \(R_{\text{top}}\) is the resistance between the supply and the wiper.
For a 10K potentiometer connected across 5V:
-
At one end of its travel, the output is close to 0V.
-
Near the middle, the output is approximately 2.5V.
-
At the other end, the output is close to 5V.
The exact voltage depends on the potentiometer’s position, its tolerance and the load connected to the wiper. A circuit that draws significant current from the wiper can change the expected output voltage.
Potentiometer Pinout: 3 Pins Explained
Most basic rotary potentiometers have three terminals. Identify the terminals from the component datasheet or test them with a multimeter rather than relying entirely on their physical orientation.
|
Terminal |
Function |
Typical Arduino connection |
|---|---|---|
|
Pin 1 |
One end of the resistive track |
5V |
|
Pin 2 |
Wiper, or variable output |
A0 |
|
Pin 3 |
Other end of the resistive track |
GND |
Pins 1 and 3 can be swapped. Doing so reverses the direction in which the output voltage changes when you turn the knob. The middle terminal is usually the wiper, but confirm the pinout for your component.
How to identify potentiometer pins with a multimeter
-
Set the multimeter to resistance (Ω).
-
Measure between two terminals while turning the shaft.
-
The pair that stays close to the potentiometer’s rated resistance is usually the two ends of the track.
-
The resistance between the wiper and either end changes as you turn the shaft.
For a nominal 10K potentiometer, the resistance between the two end terminals should be close to 10KΩ, within the component’s tolerance. Measurements between the wiper and either end should vary as the shaft turns.
Types of Potentiometers
Potentiometers are available in different shapes, resistance values and adjustment patterns. The right type depends on how you want to adjust a circuit and how the output should change as you turn or move the control.
1. Rotary potentiometer
A rotary potentiometer changes resistance when you turn its shaft. It is commonly used in audio equipment, Arduino projects, control panels and DIY electronics.
Rotary models are available in different resistance values, including 1K, 10K, 50K and 100K. A 10K model is a convenient choice for many low-current voltage-divider applications.
2. Linear potentiometer
A linear slide potentiometer changes resistance as you move a slider along a straight track. It performs the same basic electrical function as a rotary potentiometer but provides a different physical control.
Slide potentiometers are often used in audio mixing consoles, lighting controls, and projects where a visible slider position is useful.
3. Logarithmic potentiometer
A logarithmic, or audio-taper, potentiometer changes resistance nonlinearly as the shaft turns. It is commonly used for audio volume controls because the response better matches how people perceive changes in loudness.
The output does not change in direct proportion to the shaft angle. This makes logarithmic potentiometers different from linear-taper models.
4. Multi-turn potentiometer
A multi-turn potentiometer requires several rotations to travel through its full adjustment range. This allows finer manual adjustment than many ordinary single-turn controls.
Multi-turn models are commonly used for calibration, reference-voltage adjustment and precision settings. They are useful when a small change in position needs to produce a more gradual adjustment.
5. Digital potentiometer
A digital potentiometer changes its effective resistance electronically in response to digital commands from a microcontroller or other control circuit. It can be useful when a circuit needs software-controlled adjustment rather than a physical knob.
Digital potentiometers have limits on their terminal voltages, current, resistance range and control interface. Check the datasheet before using one in place of a conventional potentiometer.
Linear vs Logarithmic Potentiometer: What Is the Difference?
The most important difference is how resistance changes as the control moves.
|
Feature |
Linear taper |
Logarithmic taper |
|---|---|---|
|
Resistance change |
Approximately proportional to shaft position |
Nonlinear change with shaft position |
|
Common applications |
Arduino inputs, general adjustment and sensor controls |
Audio volume and other perceptual controls |
|
Output behaviour |
Predictable proportional change in a voltage-divider setup |
Nonlinear change in a voltage-divider setup |
|
Best choice |
When you want a roughly proportional control response |
When a nonlinear response suits the application |
For most beginner Arduino projects, a 10K linear potentiometer is a sensible starting point. It provides an adjustable analog voltage that the microcontroller can read.
For an audio volume control, a logarithmic taper may be more appropriate. Remember that taper describes the resistance-versus-position relationship; it is not the same as the potentiometer's resistance rating.
Reading a 10K Potentiometer with Arduino
One of the easiest ways to understand a potentiometer is to connect it to an Arduino and display the changing analog value in the Serial Monitor.
Components required
-
Arduino Uno or a compatible board
-
10K potentiometer
-
Breadboard
-
Jumper wires
-
USB cable for programming and serial output
Wiring diagram reference
Connect the potentiometer as follows:
|
Potentiometer terminal |
Arduino connection |
|---|---|
|
One end terminal |
5V |
|
Middle terminal (wiper) |
A0 |
|
Other end terminal |
GND |
The two outer terminals can be swapped. This only reverses the direction of the readings as you turn the knob.
Arduino code
Upload this sketch to read the potentiometer and display its value:
const int potPin = A0;
void setup() {
Serial.begin(9600);
}
void loop() {
int potValue = analogRead(potPin);
Serial.print("Potentiometer value: ");
Serial.println(potValue);
delay(100);
}
How the code works
-
potPinspecifies the analog input connected to the wiper. -
analogRead(A0)reads the voltage at the analog pin. -
On a typical Arduino Uno with its default 10-bit ADC configuration and a 5V reference, the reading ranges from 0 to 1023.
-
Serial.println()displays the reading in the Serial Monitor. -
delay(100)adds a short pause between readings.
When you turn the potentiometer, the displayed value should change. One end of its travel produces a reading near zero, and the other produces a reading near the maximum. Small differences from the exact endpoints are normal.
Board compatibility note: ADC resolution and reference voltage vary across Arduino-compatible boards. For example, not every board uses a 10-bit ADC or a 5V analog reference. Consult the documentation for your specific board when interpreting readings.
Convert the analog reading into a voltage
You can estimate the input voltage from an Arduino Uno's default analog reading using:
For example, a reading of approximately 512 corresponds to about 2.5V when the analog reference is 5V.
This is an estimate. The actual result depends on the board's reference voltage, ADC characteristics and supply stability.
Use a potentiometer to control LED brightness
You can also use the potentiometer as an input to control LED brightness through PWM. Connect an LED with a suitable current-limiting resistor to a PWM-capable Arduino pin, such as pin 9 on an Uno, and use this code:
const int potPin = A0;
const int ledPin = 9;
void setup() {
pinMode(ledPin, OUTPUT);
}
void loop() {
int potValue = analogRead(potPin);
int brightness = map(potValue, 0, 1023, 0, 255);
analogWrite(ledPin, brightness);
delay(10);
}
Here, the potentiometer sets a brightness command from 0 to 255. The analogWrite() function on a typical Arduino Uno uses PWM to control the LED's average power; it does not produce a continuously adjustable analog voltage.
This example demonstrates the difference between reading an analog input and producing a PWM output. Always use a current-limiting resistor with a standard LED.
How to Choose a Potentiometer Value
Potentiometers are available in a wide range of resistance values. The right value depends on the circuit, the input impedance of the device being controlled and how much current the potentiometer will draw.
|
Potentiometer value |
Typical use |
|---|---|
|
1KΩ |
Low-resistance adjustment in circuits designed for it |
|
10KΩ |
General-purpose Arduino analog inputs and voltage dividers |
|
50KΩ |
Some audio and control circuits |
|
100KΩ |
Higher-resistance adjustment circuits and some audio applications |
For a beginner Arduino project, 10KΩ is often a good starting point because it provides a useful balance between input loading and current consumption. However, always follow the circuit or component datasheet where a specific value is required.
For example, a 10K potentiometer connected across 5V draws approximately 0.5mA between its outer terminals:
That is a low current suitable for many simple voltage-divider applications. The wiper should normally feed a high-impedance input, not a load that requires substantial current.
Before choosing a potentiometer, consider:
-
Resistance value: Match the circuit's requirements.
-
Taper: Choose linear for proportional adjustment or logarithmic for suitable audio controls.
-
Power rating: Ensure the component can handle the expected dissipation.
-
Mechanical type: Select rotary, slide or multi-turn according to the required control.
-
Tolerance and durability: Important for calibration and frequently adjusted controls.
How to Test a Potentiometer with a Multimeter
A multimeter can help you determine whether a potentiometer is working correctly.
-
Disconnect the potentiometer from the powered circuit.
-
Set the multimeter to resistance (Ω).
-
Measure between the two outer terminals. The reading should be close to the rated resistance.
-
Measure between the wiper and one outer terminal.
-
Slowly turn the shaft. The resistance should change smoothly.
-
Repeat between the wiper and the other outer terminal. The resistance should change in the opposite direction.
A reading that jumps erratically, drops out or remains unchanged while turning may indicate a worn or damaged component, a poor probe connection or an incorrect terminal identification.
If you want to measure the voltage-divider output instead, power the circuit and set the multimeter to an appropriate DC voltage range. Connect the black probe to circuit ground and the red probe to the wiper output. Never use resistance mode on a powered circuit.
Conclusion
A potentiometer is a simple but versatile component for adjusting resistance or producing a variable voltage. Its three terminals consist of two ends of a resistive track and a movable wiper. Used as a voltage divider, it can provide an adjustable signal for an Arduino analog input.
For most beginner electronics projects, a 10K linear potentiometer is a practical choice. You can connect its outer terminals to 5V and GND, connect the wiper to A0, and use analogRead() to measure its position. The same input can be used in software to control PWM-based LED brightness or another parameter.
Choose the correct resistance value and taper for your circuit, verify the pinout, and use a multimeter to test the component if its readings are unstable. For a straightforward Arduino project, a 10K potentiometer pack of 5 is a useful component to keep in your electronics toolkit.
Excerpt
Frequently Asked Questions
1. What is a potentiometer used for?
A potentiometer is a three-terminal electrical component used to vary the electrical resistance in a circuit. It functions as a voltage divider, allowing a portion of the input voltage to appear at the output terminal. Potentiometers are commonly used as adjustable resistors in various electronic circuits and applications, including volume control in audio equipment, position sensing in robotics, and as sensors for various physical quantities such as light, temperature, and force. They can be manually adjusted with a knob or lever or used as a variable resistor controlled by an external voltage or current.
2. What is potentiometer and its principle?
A potentiometer controls the flow of current with the adjustment of resistance within a circuit. It operates through the enigma of a variable resistor, the resistance adjustable through the twisting of a dial or the sliding of a lever along a strip of resistance. The potentiometer finds itself frequently employed in situations such as controlling the volume in auditory apparatus or calibrating the instruments of science. The output of the potentiometer, a riddle wrapped in a mystery, is proportional to the angle of rotation of its controlling shaft, providing a straightforward yet effective method for controlling the flow of current in a circuit.
3. What is advantage of potentiometer over voltmeter?
Potentiometers and Voltmeters, both gauging voltage, but utilizing a potentiometer exhibits certain benefits. Unlike Voltmeters which simply measure voltage, Potentiometers enable you to make modifications to the voltage whilst measuring it. Resulting in immense precision when it comes to output control. Additionally, Potentiometers are constructed with sturdier materials, thus imparting longer lifespans. This makes them an ideal choice for industrial usage. They can also serve as an adjustable voltage divider. Proving to be an indispensable tool when it comes to calibrating instruments or setting reference voltages. To sum it up, Potentiometers offer versatility and dependability that supersedes Voltmeters, rendering it as the preferred option for many applications.
4. What is a potentiometer and how does it work?
A potentiometer is an adjustable resistor that varies resistance to control voltage in a circuit. It consists of three terminals: two fixed terminals and one movable wiper. By turning the knob or sliding the wiper, you can change the resistance and thus control the output voltage. Potentiometers are commonly used in volume controls, lighting dimmers, and sensor applications.
5. What are the main types of potentiometers?
The main types of potentiometers include linear and rotary potentiometers. Linear potentiometers change resistance along a straight path, while rotary potentiometers vary resistance by rotating a knob. Other types include digital potentiometers, which are often used in electronic circuits for precision adjustments, and trimmer potentiometers, designed for fine-tuning settings.
6. How is a potentiometer different from a rheostat?
A potentiometer has three terminals and can vary voltage across a circuit, while a rheostat has only two terminals and is used to control current. Potentiometers are typically used in applications requiring precise adjustments, whereas rheostats are suited for general current control in applications like dimming lights or adjusting motor speeds.
7. What are common applications of potentiometers?
Common applications of potentiometers include volume control in audio devices, brightness adjustment in lights, and user interface controls in electronic devices. They are also used in robotics for position sensing and in sensors for voltage adjustment in various machining processes. Their versatility makes them essential in many electronic projects.
8. How does a potentiometer measure EMF?
A potentiometer measures Electromotive Force (EMF) by balancing the unknown voltage against a known reference voltage. In this setup, the potentiometer allows for precise adjustments, enabling the user to find the point where no current flows, indicating that the voltages are equal. This measurement method is accurate and widely used in electrical applications.
9. What materials are used in potentiometer construction?
Potentiometers are typically constructed from materials like carbon, cermet, or conductive plastic for the resistive element. The wiper is usually made from metal, providing good conductivity. Insulating materials like plastic or ceramic are often used for the housing, ensuring durability and reliability in various environmental conditions.
10. How to connect a potentiometer in a circuit?
To connect a potentiometer in a circuit, identify the three terminals: one for the input voltage, one for the output voltage, and one to ground. Connect the input terminal to your voltage source, the output terminal to the device you are controlling, and the ground terminal to the negative side of the circuit. Adjust the potentiometer to change the output voltage as needed.
11. What are linear vs. rotary potentiometers?
Linear potentiometers have a straight slider that moves across a resistive track, changing resistance linearly. They are typically used in applications needing direct, linear adjustments. Rotary potentiometers, on the other hand, use a knob to rotate along a circular track, allowing for more compact designs. Both types serve similar functions but fit different mechanical needs.
12. How to test a faulty potentiometer?
To test a faulty potentiometer, first, disconnect it from the circuit. Then, use a multimeter set to measure resistance. Check the resistance across the terminals while adjusting the knob. If the resistance doesn’t change smoothly or shows discontinuities, the potentiometer is likely faulty and needs replacement.
13. Can potentiometers be used in Arduino projects?
Yes, potentiometers can be effectively used in Arduino projects. They can serve as analog sensors to control input values like brightness, volume, or motor speed. By connecting the middle wiper terminal to an analog input pin on the Arduino, you can read the varying voltage and react accordingly within your code.
1. What is a potentiometer used for?
A potentiometer is a three-terminal electrical component used to vary the electrical resistance in a circuit. It functions as a voltage divider, allowing a portion of the input voltage to appear at the output terminal. Potentiometers are commonly used as adjustable resistors in various electronic circuits and applications, including volume control in audio equipment, position sensing in robotics, and as sensors for various physical quantities such as light, temperature, and force. They can be manually adjusted with a knob or lever or used as a variable resistor controlled by an external voltage or current.
2. What is potentiometer and its principle?
A potentiometer controls the flow of current with the adjustment of resistance within a circuit. It operates through the enigma of a variable resistor, the resistance adjustable through the twisting of a dial or the sliding of a lever along a strip of resistance. The potentiometer finds itself frequently employed in situations such as controlling the volume in auditory apparatus or calibrating the instruments of science. The output of the potentiometer, a riddle wrapped in a mystery, is proportional to the angle of rotation of its controlling shaft, providing a straightforward yet effective method for controlling the flow of current in a circuit.
3. What is advantage of potentiometer over voltmeter?
Potentiometers and Voltmeters, both gauging voltage, but utilizing a potentiometer exhibits certain benefits. Unlike Voltmeters which simply measure voltage, Potentiometers enable you to make modifications to the voltage whilst measuring it. Resulting in immense precision when it comes to output control. Additionally, Potentiometers are constructed with sturdier materials, thus imparting longer lifespans. This makes them an ideal choice for industrial usage. They can also serve as an adjustable voltage divider. Proving to be an indispensable tool when it comes to calibrating instruments or setting reference voltages. To sum it up, Potentiometers offer versatility and dependability that supersedes Voltmeters, rendering it as the preferred option for many applications.
4. What is a potentiometer and how does it work?
A potentiometer is an adjustable resistor that varies resistance to control voltage in a circuit. It consists of three terminals: two fixed terminals and one movable wiper. By turning the knob or sliding the wiper, you can change the resistance and thus control the output voltage. Potentiometers are commonly used in volume controls, lighting dimmers, and sensor applications.
5. What are the main types of potentiometers?
The main types of potentiometers include linear and rotary potentiometers. Linear potentiometers change resistance along a straight path, while rotary potentiometers vary resistance by rotating a knob. Other types include digital potentiometers, which are often used in electronic circuits for precision adjustments, and trimmer potentiometers, designed for fine-tuning settings.
6. How is a potentiometer different from a rheostat?
A potentiometer has three terminals and can vary voltage across a circuit, while a rheostat has only two terminals and is used to control current. Potentiometers are typically used in applications requiring precise adjustments, whereas rheostats are suited for general current control in applications like dimming lights or adjusting motor speeds.
7. What are common applications of potentiometers?
Common applications of potentiometers include volume control in audio devices, brightness adjustment in lights, and user interface controls in electronic devices. They are also used in robotics for position sensing and in sensors for voltage adjustment in various machining processes. Their versatility makes them essential in many electronic projects.
8. How does a potentiometer measure EMF?
A potentiometer measures Electromotive Force (EMF) by balancing the unknown voltage against a known reference voltage. In this setup, the potentiometer allows for precise adjustments, enabling the user to find the point where no current flows, indicating that the voltages are equal. This measurement method is accurate and widely used in electrical applications.
9. What materials are used in potentiometer construction?
Potentiometers are typically constructed from materials like carbon, cermet, or conductive plastic for the resistive element. The wiper is usually made from metal, providing good conductivity. Insulating materials like plastic or ceramic are often used for the housing, ensuring durability and reliability in various environmental conditions.
10. How to connect a potentiometer in a circuit?
To connect a potentiometer in a circuit, identify the three terminals: one for the input voltage, one for the output voltage, and one to ground. Connect the input terminal to your voltage source, the output terminal to the device you are controlling, and the ground terminal to the negative side of the circuit. Adjust the potentiometer to change the output voltage as needed.
11. What are linear vs. rotary potentiometers?
Linear potentiometers have a straight slider that moves across a resistive track, changing resistance linearly. They are typically used in applications needing direct, linear adjustments. Rotary potentiometers, on the other hand, use a knob to rotate along a circular track, allowing for more compact designs. Both types serve similar functions but fit different mechanical needs.
12. How to test a faulty potentiometer?
To test a faulty potentiometer, first, disconnect it from the circuit. Then, use a multimeter set to measure resistance. Check the resistance across the terminals while adjusting the knob. If the resistance doesn’t change smoothly or shows discontinuities, the potentiometer is likely faulty and needs replacement.
13. Can potentiometers be used in Arduino projects?
Yes, potentiometers can be effectively used in Arduino projects. They can serve as analog sensors to control input values like brightness, volume, or motor speed. By connecting the middle wiper terminal to an analog input pin on the Arduino, you can read the varying voltage and react accordingly within your code.




