TINKER PiEDESIGN IN INDIA

Potentiometer (knob) with TinkerPie

Turn the knob to set a value: volume, speed, colour.

TypeAnalog sensors
Connect toP10-P13
Gives0-100 %
SimulatorYes: a control appears under the simulated board

How it works

A potentiometer is a resistor with a sliding contact. Turning the knob moves the contact, which divides the voltage, so the board reads a smooth value from 0 to 100 %.

How to wire it

Plug the module's A0 / OUT into P10 (or P11-P13 when Wi-Fi is off), VCC to 3.3 V, GND to GND.

Code

In blocks: Accessories category in TinkerPie Studio. As code:

// JavaScript
sensors.potentiometer(Pin.P10)

// Arduino C++
sensors::potentiometer(Pin::P10)

Good to know

Projects with the Potentiometer (knob)

Knob colour mixerTurn a potentiometer to slide the whole matrix through every colour of the rainbow.Sensor projects

Similar modules

More projects to try

Questions

Can I try the Potentiometer (knob) without buying one?

Yes. In TinkerPie Studio the simulator shows a control for it under the board, so you can test your program before you build it.

Why does my knob work backwards?

Swap the two outer pins (3V3 and GND), or use 100 - value in your code.