Skip to content
Home > Components > Sensors > Linear Slide Potentiometer

Linear Slide Potentiometer

An adjustable resistor module that outputs a variable analog voltage based on linear position.

Component Preview

Linear Slide PotentiometerSlide Potentiometer

A slide potentiometer (often called a fader or slider) works exactly like a rotary potentiometer, but features a straight linear track instead of a circular one. Moving the knob left or right along the track adjusts the resistance linearly, changing the output voltage on the signal pin.

SensorsAnalogInput

Overview

Because this slider provides analog output, it's perfect for projects requiring precise, continuous linear control like audio mixing desks, robotic arm positioning, or adjusting the brightness of an LED strip. The outer pins connect to Power and Ground, while the middle pin acts as the wiper.

Pin Reference

PinTypeDescription
VCCpowerPower input. Connect to Arduino 5V.
GNDpowerGround. Connect to Arduino GND.
SIGanalogSignal output. Connect to an analog input (e.g., A0).

Configurable Attributes

AttributeTypeDefaultDescription
valuenumber50The simulated knob position percentage (0-100).

Wiring Diagram (Arduino Uno)

  1. Connect the VCC pin on the slider to Arduino 5V.
  2. Connect the GND pin to Arduino GND.
  3. Connect the SIG (Wiper) pin to Arduino A0.

Wiring Diagram

Example Arduino Code

This sketch reads the analog value from the slide potentiometer and maps it to a 0-100% scale for easy reading.

cpp
const int slidePin = A0;

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

void loop() {
  // Read the analog value (0-1023)
  int slideValue = analogRead(slidePin);
  
  // Calculate percentage
  int percentage = map(slideValue, 0, 1023, 0, 100);
  
  Serial.print("Raw Slider Value: ");
  Serial.print(slideValue);
  Serial.print(" | Position: ");
  Serial.print(percentage);
  Serial.println("%");
  
  delay(100);
}

Simulation Notes

  • In the simulator, click and drag the dark grey fader knob left and right to adjust the value.
  • Moving the knob changes the simulated resistance instantly, updating the voltage on the SIG pin in real-time.

Released under the MIT License.