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
Name | Description | Default value |
---|---|---|
value | Initial value of the potentiometer, between 0 and 1023 | "0" |
travelLength | Travel length of the tip (mm). Controls the width of the potentiometer. Common values: "15", "20", "30", "45", "60", "100" | "30" |
Examples
Result | Attrs |
---|---|
{ "travelLength": "15" } | |
{ "travelLength": "60" } | |
{ "travelLength": "100" } |
Simulator examples
- Slide potentiometer + Servo - Control a servo with a slide potentiometer