Potentiometer
Turn a dial or pinch a rectangle to send a value to the computer.
Basic circuit layout
Connect the two outside pins to power (5V, +) and ground (GND, -). It does not matter which. The middle pin connects to one of the “analong inputs” A0 through A5. Memorize this setup.
Basic coding
The
I will use
when green flag clicked forever set [the value v] to (analog reading (2) :: #468cfc) say (the value) for (0.5) seconds set pin (9 v) to value ((the value) / (4)) :: #468cfc