The Complete Potentiometer Wiring Guide for Engineers

Complete potentiometer wiring guide for engineers: learn voltage divider and variable resistor modes, pin identification, soldering tips, and troubleshooting.

The
Image Source: statics.mylandingpages.co

A potentiometer has three pins: two fixed ends of a resistive track and one movable wiper. You wire it in one of two primary modes. The voltage divider mode uses all three terminals. The variable resistor mode uses the wiper plus one end.

The wiper outputs the adjusted signal. The end pins connect across the resistive track. This arrangement matters when you wire a potentiometer correctly. A floating terminal or a missing ground connection produces jittery readings and inconsistent ADC values. Correct setup protects your ADC inputs and keeps signal accuracy intact. This potentiometer wiring guide covers both modes, the middle pin, and practical checks.

Key Takeaways

  • Identify the three pins first: two outer pins connect to the resistive track, and the middle pin is the wiper.
  • Choose voltage divider mode for reading a signal: connect outer pins to supply and ground, and wiper to an analog input.
  • Choose variable resistor mode for controlling a load: connect wiper and one outer pin in series with the load.
  • Test connections with a multimeter before power-up to catch reversed pins or open circuits.
  • Keep source impedance low and grounds solid to prevent noisy or jittery readings.

Potentiometer Basics

Three Pins and Their Roles

A potentiometer is a variable resistor with a mechanical adjustment mechanism. You turn a shaft or slide a lever, and the resistance changes by hand. The construction defines the three-pin configuration. A resistive track forms an arc or a flat strip, and each end of that track connects to a terminal on the case. A sliding contact, the wiper, moves along the track and touches one point of it. The housing holds both parts and lets the mechanism sweep the wiper from end to end.

The middle pin is the wiper on most parts, and the middle pin is connected to the wiper through the center terminal. The two outer pins are the fixed ends of the track. This table shows how each pin maps to the physical build:

PinPhysical connectionRole
End terminal 1One end of the fixed resistive trackReference-voltage connection
End terminal 2Opposite end of the trackGround or return connection
Wiper terminalMovable contact along the trackOutput tap that splits total resistance into two parts

The third terminal exists so you can tap a point along the track without breaking the circuit at either end. The two end terminals fix the total resistance, and the wiper terminal reports its position as a divided voltage.

Voltage Divider Principle

Wire all three terminals, and the part becomes an adjustable voltage divider. You apply the input across the track, from one end terminal to the other. The wiper then taps an adjustable output between those two ends. This is the voltage divider principle in its simplest form.

The wiper position sets the output voltage. On a linear taper, marked B, resistance changes in proportion to wiper travel. Put the wiper at the midpoint, and the output equals half the total voltage across the part. A logarithmic taper, marked A, gives a non-linear position-to-voltage curve for audio work. Wire only one end plus the wiper, and the same three-terminal variable resistor acts as a plain variable resistor in series with a load.

Potentiometer Types and Selection

Taper, Resistance, and Power Ratings

Three specifications decide whether a potentiometer suits your circuit. The first is taper, the relationship between wiper position and resistance. A linear taper changes resistance evenly across the travel. A logarithmic taper compresses the change at one end, which suits audio volume control. The second is total resistance. A low value draws more current through the track, and a high value forms a weaker divider against your ADC input impedance. Match the value to the load the wiper drives. The third is power rating. The track dissipates heat as current flows through it, so check the wattage against your supply voltage and resistance before you commit.

Treat the power rating as a hard limit, not a suggestion. A part run near its rating drifts and wears faster.

Rotary, Trimmer, and Slide Formats

The physical format follows from how often a person adjusts the control. Rotary potentiometers use a circular shaft and a knob. You find them in audio equipment volume control and lighting brightness control, and they come in single- or multi-turn versions with various resistance values. Slide potentiometers move a lever along a linear track. Studio mixers and lighting dimmer panels use them for smooth, frequent human interaction with intuitive visual feedback.

Presets and trimmers are small, usually board-mounted devices adjusted with a small screwdriver and used for tuning and calibration in a circuit. Trimmers offer high resolution via multi-turn screws, are mainly used during system calibration, and remain at a fixed position most of the time.

Pot TypeDistinguishing Features (Operation)Common Applications
Rotary PotCircular resistive arc with a wiper attached to a rotating shaft; turning the shaft sweeps the wiper along the resistive element to change resistanceAudio volume control; appliance control
Slide PotLinear resistive element with a knob/lever sliding along a track; optimized for smooth, frequent human interaction with intuitive visual feedbackLighting dimmer panels; studio mixers
Trimmer Pot (Trimpot)Small, often multi-turn device mounted directly on a PCB; adjusted with a screwdriver/small tool for infrequent, precise 'set-and-forget' calibrationCalibration; control systems

A trimmer works as a variable resistor for one-time calibration. A panel-mounted rotary or slide part works as a user control you adjust repeatedly.

Potentiometer Wiring Guide: Core Configurations

Potentiometer
Image Source: statics.mylandingpages.co

Voltage Divider Wiring

This mode uses all three terminals. You apply the input across the track and take the output at the wiper. Follow these steps for a typical microcontroller board:

  1. Connect the board's 3V supply to one end terminal of the potentiometer.
  2. Connect the board's Gnd to the opposite end terminal.
  3. Wire the wiper, the middle pin, to an analog input such as A0.
Board SymbolPotentiometer Connection
3VOne end of the potentiometer
GndOpposite end from 3V
A0Wiper of the potentiometer

Any analog input pin from A0 to A5 works for the reading. Typical 10k to 20k parts draw negligible current from the supply. The output follows a simple ratio: output voltage equals input voltage times the resistance from wiper to ground, divided by the total track resistance. Moving the wiper changes that ratio, and the ADC measures the result. The part never drives a load such as an LED or motor directly. The ADC reads the wiper voltage, and your code processes it.

The audio volume control is the classic application of this voltage divider configuration. You apply the input signal across the outer pins and tap a portion of it at the wiper. Turning the shaft lowers the signal voltage delivered to the amplifier. Audio-taper parts suit this job best.

Variable Resistor Wiring

This mode uses the wiper plus one end terminal, and it places the part in series with the load. Work through these steps:

  1. Confirm the operating voltage, load current range, and rated power of the part before you begin.
  2. Identify the terminals with a multimeter in resistance mode. Sweep the wiper and note the direction of resistance change.
  3. With power off, connect one end terminal to the supply's positive output and the wiper to one end of the load. Connect the load's other end to the supply's negative terminal.
  4. Set the wiper to maximum resistance before you apply power. Reduce it slowly while you watch the load behavior and the ammeter.
  5. Run the circuit continuously and check the housing for excessive heating.

Never connect the two outer terminals together in this mode. That produces no resistance change as you turn the shaft. Tie the unused end terminal to the wiper instead, so a momentary loss of wiper contact keeps the full resistance in circuit rather than opening the load path.

Current limiting matters here. The track carries the full load current, so size the part's power rating against your supply voltage and resistance. If the housing overheats, move to a higher-power model or a more efficient approach such as PWM.

Soldering and Testing Potentiometer Wiring

Soldering Terminals and PCB Mounts

A temperature-controlled iron with a fine tip keeps heat brief at the terminals. Set the temperature to the manufacturer's spec, often a maximum of 260°C for about 3 seconds, so the resistive track survives. Pre-tin the lugs and wires first. This step protects against oxidation and gives you an instant bond.

Seat a PCB-mount part flat against the board. Solder the mounting tabs before the pins, so the tabs carry mechanical load. Then solder the three pins one at a time with brief heat, and avoid bridging adjacent pins. For panel-mount lug pots, hook the stripped wire through the lug for mechanical grip, then heat lug and wire together into a shiny fillet.

Use strain relief and routing that avoids wiper lead stress.

Inadequate cable strain relief causes wire fatigue, a common setup error. Anchor the cable to the panel so the solder joint never carries the pull.

Continuity and Output Sweep Checks

Test only with the device unpowered. Touch the probe tips together first and confirm the beep, because a low battery or wrong mode gives false results. Set the meter to resistance mode and probe the two outer terminals. The reading should match the rated value printed on the part, within about ±5 percent. A very high value points to a damaged track, and no reading means an open circuit.

Next, check the resistance between the wiper and the side pins. Place one probe on the middle pin and sweep the shaft slowly. The value should rise or fall smoothly. Watch for sudden drops to zero or flat spots, which signal a worn track. After assembly, apply power and confirm a smooth output voltage sweep as you rotate the pot. Verify the ground and supply connections first.

Wiring Best Practices

Pin Identification and Grounding

Start every build by identifying terminals before you solder anything. Use a multimeter in resistance mode to identify terminals and confirm which pin is the wiper. Sweep the shaft and watch the reading between the middle pin and each outer pin. The value should change smoothly in opposite directions. This check is one of the core potentiometer wiring essentials, and it stops a reversed end terminal from inverting your control response.

Grounding deserves the same care. Match the potentiometer supply to the controller reference so readings stay ratiometric and stable. Verify ground connections at every stage of assembly. Bond a cable shield at one end only, at the control panel ground, to prevent ground loops. Check all potentiometer connections before power-up, and solder the terminals with brief heat so the track survives.

Noise Reduction and Safety

Long runs pick up noise. Use twisted pairs with shielding for long or noisy runs, and keep sensor cables away from drives, contactors, and VFD output leads. Cross power conductors at right angles instead of running them parallel. Add bypass capacitors at the input, and consider digital filtering in firmware.

PracticeRecommendation
Cable typeTwisted pairs with shielding for long or noisy runs
Shield terminationBond at one end only, at the control panel ground
Cable routingSeparate sensor cables from power and drives
TerminationsFerrules and strain relief

Use twisted shielded cable, keep runs away from high current conductors, and ground the shield at a single location. These practices reduce pickup and make readings steady.

Set a low-pass cutoff near one-fifth of the fastest expected position change, then fine-tune it during commissioning. Scale the signal to use 80–95% of the input range, and log raw counts while you tune. Safety follows the same discipline. Never exceed the maximum voltage ratings, calculate power dissipation, and implement proper fusing and current limiting. Choose an IP rating and enclosure that suit the environment.

Potentiometer Wiring Examples for Microcontrollers

Potentiometer
Image Source: statics.mylandingpages.co

Arduino and Raspberry Pi Examples

These potentiometer wiring examples start with the classic Arduino hookup. Connect the middle pin to an analog input such as A0. Connect the two outer pins to 5V and GND. The sketch below reads the wiper voltage and prints it to the Serial Monitor:

void setup() {
  Serial.begin(9600);
}

void loop() {
  int sensorValue = analogRead(A0);
  Serial.println(sensorValue);
  delay(1);
}

The reading spans 0 to 1023, which maps to roughly 0V through 5V. The call Serial.begin(9600) opens serial communication, analogRead(A0) samples the wiper, and Serial.println(sensorValue) sends the result out.

Raspberry Pi boards split into two cases. A Raspberry Pi Pico needs no external ADC, because the RP2040 carries a built-in 12-bit converter. Wire one outer terminal to the 3.3V pin, the other to GND (AGND, Pin 33, gives better analog accuracy), and the center terminal to GP28 (ADC2). A standard Raspberry Pi lacks an analog converter, so add an MCP3008. That chip talks to the Pi over SPI0 using CE0, MOSI, MISO, and SCLK. The wiper feeds channel 0, the outer terminals go to 3.3V and GND, and the 10-bit result converts to a voltage between 0 and 3.3V.

STM32 ADC Setup

The STM32 ADC ships with a self-calibration mode. Calibration computes an error-correction code for each internal capacitor, and later conversions use that code to cancel the error. Set the ADCAL bit in the ADC_CR register, then poll until hardware clears it. Run this once at every power-on. The HAL wraps the same step in HAL_ADCEx_Calibration_Start(&hadc1).

On F3 parts, enable the voltage regulator first by toggling ADVREGEN through 0x00, then wait about 10 microseconds for the output to settle. Keep the ADC clock disabled during calibration. For the hardware side, tie one terminal to 3.3V, the wiper to PA5 (ADC channel 5), and the third terminal to ground. In the main loop, call HAL_ADC_Start, poll with HAL_ADC_PollForConversion(&hadc1, 1), and read the result through HAL_ADC_GetValue. Mapping that value to a PWM duty cycle, such as TIM2->CCR1 = (AD_RES<<4), gives you dimmer control.

Each platform fits a different job. Arduino suits quick prototypes and teaching. The Pico handles compact analog sensing at low cost. A full Raspberry Pi shines when you need Linux tooling alongside the measurement. STM32 targets production firmware that demands calibrated, deterministic conversion. Whatever the board, sound connections and a verified wiper sweep keep these wiring examples reliable.

Performance and Troubleshooting

Noise, Resolution, and Loading Effects

Your potentiometer output impedance changes with wiper position and scales with total resistance. A 100k part therefore presents a higher source impedance than a 10k part. That higher impedance invites leakage current, interference pickup, and sampling errors. A 10k linear potentiometer is the balanced general-purpose default between current draw and impedance.

ADC sampling creates a second pressure point. The converter charges an internal capacitor through your source impedance. A high-impedance source may not settle within the acquisition window, so conversions turn unstable. Keep the Thevenin equivalent resistance below 10 kΩ on AVR parts, or extend sampling time. A 10 nF to 100 nF capacitor between the ADC input and ground is the cheapest stabilization method. Decouple each IC with a 100 nF capacitor to steady the analog supply. Software averaging over about 10 samples also smooths readings.

Loading distorts the adjustable voltage divider. The next stage must present an input impedance much higher than the pot's effective output impedance. A precision rail-to-rail op-amp voltage follower preserves accuracy when wiper current sits in the sub-µA range.

Diagnosing Common Wiring Faults

Most failures trace back to a handful of causes. Work through the symptoms in order:

  • Wrong pin for the wiper: the signal sticks near 0V or near Vref, or behaves like a switch.
  • No common ground: readings jump randomly or sit at nonsense values, especially with separate supplies.
  • Dead spots: voltage stops changing over part of the travel or jumps abruptly.
  • Noisy wiper: small movement causes large random changes even after filtering.
  • Intermittent open: the signal snaps to 0V or Vref, then returns.
  • Compressed range: the output never reaches near 0V and near Vref at full travel.

Loose wires, cold solder joints, and oxidation on the track explain most jitter. A floating terminal leaves the control stuck near half value. Check your connections with a meter before you blame the code. A variable resistor wired with both outer terminals joined shows no resistance change at all.


You now have the full picture. Identify the three pins first, then pick your mode: voltage divider for a signal you read, variable resistor for a load you control. Solder with brief heat, test before power-up, and keep grounds solid and source impedance low.

Verification testing prevents most potentiometer wiring failures in embedded designs. Capture raw ADC values at both ends of travel, repeat the sweep after several cycles, and log raw against filtered data while the load runs. Drift and wandering expose wear or layout problems early.

Modern microcontrollers make integration straightforward. Apply this potentiometer wiring guide, and your potentiometer becomes a reliable input in any embedded system.

FAQ

Which pin is the wiper on a potentiometer?

The middle pin is the wiper on most parts. Confirm it with a multimeter in resistance mode. Sweep the shaft and watch the reading between the center pin and each outer pin. The value should change smoothly in opposite directions. This check stops a reversed end terminal from inverting your control response.

Can I wire a potentiometer with only two pins?

Yes. Connect the wiper plus one end terminal in series with the load. This variable resistor mode uses two pins. Tie the unused end terminal to the wiper, so a momentary loss of wiper contact keeps full resistance in circuit rather than opening the load path. Never join both outer terminals together.

Why does my potentiometer reading jump around?

A floating terminal or a missing common ground explains most jitter. Loose wires, cold solder joints, and oxidation on the track cause the rest. Check your connections with a meter before you blame the code. A 10 nF to 100 nF capacitor between the ADC input and ground is the cheapest stabilization method.

What resistance value should I choose?

A 10k linear potentiometer is the balanced general-purpose default between current draw and impedance. A low value draws more current through the track. A high value forms a weaker divider against your ADC input impedance. Keep the Thevenin equivalent resistance below 10 kΩ on AVR parts, or extend sampling time.

Do I need to calibrate the ADC after wiring?

Run the converter's self-calibration once at every power-on. On STM32 parts, set the ADCAL bit and poll until hardware clears it. Then verify a smooth output voltage sweep across the full travel. Capture raw counts at both ends and repeat the sweep after several cycles to expose drift early.

Related Articles