Documentation
Potentiometer Control
The potentiometer control reads analog input values from 0 to 1024 with built-in debounce.
Overview
The potentiometer control is an analog control that returns an integer value from 0–1024. It will only fire an event once the state has changed from its previous value. To help prevent floating values from firing multiple events, the potentiometer value must change by at least 3 before it will fire an event.
Configuration
Set the type to potentiometer in your control configuration:
JSON
{
"controls": [
{
"pin": 0,
"type": "potentiometer",
"name": "Flow Rate Dial"
}
]
}
Settings
| Property | Value | Description |
|---|---|---|
type |
potentiometer |
Control type identifier |
Returns
Integer — A value from 0 to 1024.
Tip
The built-in debounce buffer of 3 helps prevent noisy analog signals from firing excessive events. If you need more aggressive filtering, consider adding additional smoothing logic in your trigger conditions.