# Potentiometer

![../../\_images/poten2.png](https://kittenbothk-eng.readthedocs.io/en/latest/_images/poten2.png)

This is a potentiometer that reads the rotation degree, it returns an analog value.

The range of the return value is 0-1023, a higher value means the rotation degree is bigger.

### Specification[](https://kittenbothk-eng.readthedocs.io/en/latest/functional_module/outdated/potentialmeter.html#specification)

* Voltagw: 3.3V\~5V
* Type: Analog Module
* Interface: 3Pin PH2.0

### Wiring Diagram[](https://kittenbothk-eng.readthedocs.io/en/latest/functional_module/outdated/potentialmeter.html#wiring-diagram)

```
This is an analog module, it can only use P0-P2.(Remove the buzzer jumper when P0 is in use.)
```

#### Robotbit Shield[](https://kittenbothk-eng.readthedocs.io/en/latest/functional_module/outdated/potentialmeter.html#robotbit-shield)

Connect the sensor to Robotbit Shield’s 3Pin port.

![../../\_images/poten\_wire2.png](https://kittenbothk-eng.readthedocs.io/en/latest/_images/poten_wire2.png)

#### Robotbit[](https://kittenbothk-eng.readthedocs.io/en/latest/functional_module/outdated/potentialmeter.html#robotbit)

Connect the sensor to Robotbit’s pin and 3V pin.

![../../\_images/poten\_wire1.png](https://kittenbothk-eng.readthedocs.io/en/latest/_images/poten_wire1.png)

### MakeCode Coding Tutorial[](https://kittenbothk-eng.readthedocs.io/en/latest/functional_module/outdated/potentialmeter.html#makecode-coding-tutorial)

![../../\_images/mcbanner.png](https://kittenbothk-eng.readthedocs.io/en/latest/_images/mcbanner.png)

![../../\_images/acbanner.png](https://kittenbothk-eng.readthedocs.io/en/latest/_images/acbanner.png)

#### This module can be used with Microbit and Meowbit.[](https://kittenbothk-eng.readthedocs.io/en/latest/functional_module/outdated/potentialmeter.html#this-module-can-be-used-with-microbit-and-meowbit)

**Reading the sensor value**[****](https://kittenbothk-eng.readthedocs.io/en/latest/functional_module/outdated/potentialmeter.html#reading-the-sensor-value)

#### Microbit:[](https://kittenbothk-eng.readthedocs.io/en/latest/functional_module/outdated/potentialmeter.html#microbit)

![../../\_images/poten\_code.png](https://kittenbothk-eng.readthedocs.io/en/latest/_images/poten_code.png)

#### Meowbit:[](https://kittenbothk-eng.readthedocs.io/en/latest/functional_module/outdated/potentialmeter.html#meowbit)

![../../\_images/poten\_codeMeow.png](https://kittenbothk-eng.readthedocs.io/en/latest/_images/poten_codeMeow.png)

### KittenBlock Coding Tutorial[](https://kittenbothk-eng.readthedocs.io/en/latest/functional_module/outdated/potentialmeter.html#kittenblock-coding-tutorial)

![../../\_images/kbbanner.png](https://kittenbothk-eng.readthedocs.io/en/latest/_images/kbbanner.png)

#### Load the Robotbit extension[](https://kittenbothk-eng.readthedocs.io/en/latest/functional_module/outdated/potentialmeter.html#load-the-robotbit-extension)

![../../\_images/addRB.png](https://kittenbothk-eng.readthedocs.io/en/latest/_images/addRB.png)

**Reading the sensor value**[****](https://kittenbothk-eng.readthedocs.io/en/latest/functional_module/outdated/potentialmeter.html#id1)

![../../\_images/poten\_codekb.png](https://kittenbothk-eng.readthedocs.io/en/latest/_images/poten_codekb.png)

### Mu Editor Coding Tutorial[](https://kittenbothk-eng.readthedocs.io/en/latest/functional_module/outdated/potentialmeter.html#mu-editor-coding-tutorial)

#### Reading the sensor value[](https://kittenbothk-eng.readthedocs.io/en/latest/functional_module/outdated/potentialmeter.html#id2)

![../../\_images/poten\_codemu.png](https://kittenbothk-eng.readthedocs.io/en/latest/_images/poten_codemu.png)
