What a potentiometer does and why you'd connect one

A potentiometer is a three-legged component that lets you control voltage in a circuit by turning a dial or sliding a knob. When you turn the dial, you change how much electrical resistance the potentiometer creates, which changes how much voltage flows through. The most common reason to connect one is to control brightness on an LED, volume on a speaker, or speed on a motor — anything where you want a smooth range of control instead of just on or off.

The three legs do different jobs. One leg connects to power, one connects to ground, and one connects to the part you want to control. The middle leg is the one that actually sends the changing voltage signal. When you turn the dial toward the power leg, you get more voltage. When you turn it toward ground, you get less.

You do not need special tools or programming knowledge to connect a potentiometer. If you can strip a wire and push it into a breadboard, you can do this. The hardest part is usually figuring out which leg is which on your specific potentiometer, because different brands mark them differently.

Key Takeaways

  • A potentiometer has three legs: one for power, one for ground, and one middle leg that sends the control signal to your device.
  • The middle leg is the one you connect to the thing you want to control, like an LED or motor speed pin.
  • You can test which leg is which by looking at the potentiometer from the front — the legs usually go power, signal, ground from left to right, but always check your specific model's datasheet.
  • Once connected, turning the dial changes the voltage smoothly from zero to full power with no steps in between.

Identifying the three legs on your potentiometer

Most potentiometers have three metal legs sticking out from the bottom. If you hold the potentiometer so the dial faces you, the legs usually go left to right as: power, signal (middle), ground. But this is not a rule — different manufacturers arrange them differently, so checking your specific potentiometer's datasheet is the only way to be sure.

If you do not have a datasheet, you can test with a multimeter set to resistance mode. Touch the meter's two probes to any two legs and turn the dial. On two of the three pairs, the resistance will stay the same no matter how much you turn. Those are the power and ground legs. The pair where resistance changes as you turn the dial — that is the signal leg and one of the power or ground legs. Once you know which pair changes, the signal leg is the one in that pair that is not power or ground.

Write down which leg is which with a permanent marker on the potentiometer itself, or take a photo of the datasheet and keep it nearby. This saves you from guessing later.

Connecting the potentiometer to a breadboard

Start by pushing the three legs into a breadboard, spacing them out so they are not touching each other. Each leg should go into its own row. Leave at least one empty row between each leg so you have room to add wires later.

Once the potentiometer is seated firmly in the breadboard, you are ready to connect wires. Use a wire to connect the power leg to the positive rail (usually marked red). Use another wire to connect the ground leg to the negative rail (usually marked black or blue). These two connections are the same for every potentiometer circuit.

The middle leg — the signal leg — is where your specific project matters. If you are controlling an LED, this wire goes to the pin on your microcontroller that reads analog input. If you are controlling a motor, it goes to the motor control pin. The exact destination depends on what you are trying to control, but the potentiometer side of the connection is always the middle leg.

Connecting to a microcontroller like Arduino

If you are using an Arduino or similar microcontroller, the signal leg of the potentiometer connects to one of the analog input pins — usually labeled A0, A1, A2, and so on. These pins read the changing voltage and send that information to your code.

The power leg connects to the 5V pin on the Arduino (or 3.3V if your board uses that). The ground leg connects to any GND pin. Most Arduino boards have multiple GND pins, so pick whichever one is closest to your potentiometer on the breadboard to keep wires short and organized.

Once the wires are connected, you can write code that reads the analog pin. In Arduino, this is usually one line: int value = analogRead(A0); This reads the voltage on pin A0 and stores it as a number between 0 and 1023. As you turn the potentiometer dial, this number changes smoothly. You can then use that number to control brightness, speed, or anything else in your project.

Testing your connection before powering on

Before you plug in power or connect your board to a computer, do a quick visual check. Look at each wire and make sure it is actually pushed into the breadboard hole, not just resting on top. Gently tug each wire — it should not come out easily. Check that the potentiometer legs are fully inserted and not bent sideways.

Look at the power and ground connections. Make sure the power leg wire goes to a positive rail or power pin, and the ground leg wire goes to a negative rail or ground pin. Swapping these will not break anything, but the potentiometer will work backward — turning the dial one way will decrease the value instead of increasing it. You can fix this in code later if it happens.

Once everything looks right, power on your board or plug it in. If you are using an Arduino, open the Serial Monitor in the Arduino IDE and watch the numbers change as you turn the potentiometer dial. You should see the value go from 0 to 1023 and back down as you turn. If the numbers do not change, or if they jump around randomly, check that all three wires are fully inserted and that you connected the signal leg to an analog input pin, not a digital one.

Fixing common connection problems

If the potentiometer does not respond when you turn it, the most common cause is that the signal leg is connected to a digital pin instead of an analog pin. Digital pins can only read on or off, not the smooth range of voltages a potentiometer sends. Move the signal wire to an analog pin (A0 through A5 on most Arduino boards) and try again.

If the value jumps around randomly instead of changing smoothly, the wire is probably not fully inserted into the breadboard. Push it in further until it clicks or feels solid. Loose connections create electrical noise that makes the reading unstable.

If the potentiometer works but backward — turning the dial right decreases the value instead of increasing it — you can either swap the power and ground legs physically, or flip the reading in your code by subtracting the value from 1023. The code fix is usually easier: int value = 1023 - analogRead(A0);

Frequently Asked Questions

Can I connect a potentiometer without a microcontroller?

Yes. A potentiometer can control an LED brightness directly if you wire it in series with the LED and power supply. The potentiometer acts as a variable resistor, and turning the dial changes how much current flows to the LED. This works but gives you less control — you cannot read the exact position in code or use it to trigger other actions.

What happens if I connect the power and ground legs backward?

Nothing breaks. The potentiometer will just work backward — turning the dial one way will decrease the voltage instead of increasing it. If you are using a microcontroller, you can fix this in code. If you want to fix it physically, swap which leg connects to power and which connects to ground.

Do I need a resistor with a potentiometer?

No. A potentiometer is already a resistor. You do not need to add another one in series unless your specific project calls for it. The potentiometer itself controls the voltage, so adding more resistance would just make the control less responsive.

Can I use a potentiometer to control AC power or high voltage?

Not directly. Potentiometers are designed for low-voltage DC circuits, usually 5V or less. For AC power or high voltage, you need a different component called a rheostat or a dimmer switch. A potentiometer can send a signal to a relay or transistor that then controls the high voltage, but the potentiometer itself stays in the low-voltage circuit.

Why does my potentiometer value jump between two numbers instead of changing smoothly?

This usually means the dial is at a position where the internal contact is between two resistor segments, creating electrical noise. It is normal and harmless. If it bothers you, you can smooth the readings in code by averaging the last few values instead of reading just one.