ToolSphere
All perfboard layouts

Potentiometer to Arduino Perfboard Layout

A potentiometer is an adjustable voltage divider: its two outer pins go to +5V and GND, and the middle pin (the wiper) gives anything from 0 to 5 V depending on the knob. Wire the wiper to an analog input and you have a dial.

Potentiometer input perfboard layoutRV1 10kJ1 ADC
Open this layout in the simulator Connection check: no shorts, 3 named nets

Red wires carry power, white is ground, yellow and blue are signals. Every hole is an isolated pad; connections are the wires shown. In the simulator you can move parts, add your own and re-run the check.

Parts list

As an Amazon Associate, ToolSphere earns from qualifying purchases.

How it works

With the outer pins across the supply, the wiper voltage is

V_wiper = 5 V × (position from the GND end)

so a 5 V Arduino reads it with analogRead as 0 at one end, about 512 in the middle and 1023 at the other.

int value = analogRead(A0);          // 0 … 1023
int brightness = value / 4;          // 0 … 255, for analogWrite

10 kΩ is the usual value: low enough for the ADC to read accurately, high enough to draw only 0.5 mA. If turning the knob clockwise makes the value go down, swap the two outer wires.

Building it, step by step

  1. Run +5V along the top row and GND along the bottom.
  2. Fit the potentiometer with its three legs in a row.
  3. Wire one outer leg to +5V and the other to GND.
  4. Wire the middle leg (wiper) to the A0 pin of the 3-pin header.
  5. Read A0 with analogRead and turn the knob: the value should sweep from 0 to 1023.

Tools for this build

Frequently asked questions

How do I connect a potentiometer to an Arduino?

Outer pins to 5V and GND, the middle pin to an analog input such as A0. Then analogRead(A0) returns 0 to 1023 as you turn it.

Which potentiometer value should I use?

10 kΩ linear (marked B10K) is the standard choice for reading with an ADC. Avoid logarithmic (A-taper) pots unless you want an audio-style response.

Why is my potentiometer reading jumpy?

Check the wiper connection and the ground. A 100 nF capacitor from the wiper to GND and averaging a few readings both steady it.