Introduction
Sometime you will want more control than just a button press in your CodeBug projects, this can be achieved with analogue inputs. Instead of the input sensing an on (high voltage around 3-5 volts) or off (low voltage around 0 volts), it senses any voltage in-between 0 and 3/5. This value can be generated using a variable resistor called a potentiometer.

![]() |
CodeBug | |||
Micro USB cable | ||||
Computer | ||||
Crocclips | ||||
10k ohm potentiometer |