# Slider Potentialmeter

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

This is a potentialmeter with a slider, it reads the position of the slider and returns an analog value

The range of the return value is 0-1023, a higher value means the position is higher.

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

* Voltagw: 3.3V\~5V
* Type: Analog Module
* Interface: 3Pin Dupont Cable

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

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

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

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

### MakeCode Coding Tutorial[](https://kittenbothk-eng.readthedocs.io/en/latest/functional_module/outdated/slider.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/slider.html#this-module-can-be-used-with-microbit-and-meowbit)

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

#### Microbit:[](https://kittenbothk-eng.readthedocs.io/en/latest/functional_module/outdated/slider.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/slider.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/slider.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/slider.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/slider.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/slider.html#mu-editor-coding-tutorial)

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

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