Skip to main content
Sliding variable resistor (linear potentiometer) The function and pin-out of the slide potentiometer are same as wokwi-potentiometer. Check out the wokwi-potentiometer docs for more information.

Attributes

value
string
default:"0"
Initial value of the potentiometer, between 0 and 1023
travelLength
string
default:"30"
Travel length of the tip (mm). Controls the width of the potentiometer. Common values: “15”, “20”, “30”, “45”, “60”, “100”

Simulator examples

Build docs developers (and LLMs) love