Skip to main content

Potentiometer

3D render of the assembled potentiometer PCB

A 10 kΩ linear knob for setting an absolute level such as volume or brightness.

Download datasheet (PDF)

Shaft-tip height: 20 mm above the component-side PCB surface, with the frame seated and no knob fitted. The shaft is Ø6 mm with a 7 mm knurled section. A lid whose outer face sits 15 mm above the PCB leaves 5 mm of shaft projecting through it. Alps Alpine dimensional drawing, No. 14

Usage​

Choose Add device → Potentiometer. Move the knob between its two end stops to see the percentage and raw reading. The shaft position is absolute, including after reconnecting.

Protocol​

USB serial · 115200 baud · DTR on. Send one ASCII command per line, ending in LF (\n).

CommandPurposeReply
idIdentify the device and firmware.DEVICE tscircuit potentiometer 1.0.0
helpList supported commands.One line of command syntax.
statusRequest the current absolute knob position.One JSON report, shown below.
led onTurn the indicator on.OK led=on
led offTurn the indicator off.OK led=off

Streamed report​

The board streams one JSON object per line and repeats an unchanged reading about every 250 ms.

{"module":"position","raw":128,"max":255,"uptime_ms":1000,"led":0}

The firmware averages eight samples. raw ranges from 0 to 255. To convert to percent, calculate 100 * raw / max. uptime_ms counts milliseconds since power-up, and led is 1 when the indicator is on.

Protocol implementation

Mounting​

The PCB measures 24 × 30 mm, with 4 × Ø2.2 mm clearance holes for M2 screws. The centre-to-centre spacing is 19 × 25 mm. Orient the component side with the J1 USB-C port at the bottom. Measure right and up from the lower-left corner of the PCB in the component-side view. The hole centres are at X = 2.5, 21.5 mm and Y = 2.5, 27.5 mm.

Component-side plan and isometric view showing 4 mounting holes and the J1 USB-C receptacle on the bottom edge.

Open full-size drawing · Drawing TSX · PCB source