Skip to main content

wokwi-slide-potentiometer Reference

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

NameDescriptionDefault value
valueInitial value of the potentiometer, between 0 and 1023"0"
travelLengthTravel length of the tip (mm). Controls the width of the potentiometer.
Common values: "15", "20", "30", "45", "60", "100"
"30"

Examples

ResultAttrs
{ "travelLength": "15" }
{ "travelLength": "60" }
{ "travelLength": "100" }

Simulator examples