# 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)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://sharinghub-eng.kittenbot.hk/functional_module/discontinued-modules/slider-potentialmeter.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
