# Potentiometer Module ## **Principle** The Potentiometer Module is a component that adjusts resistance values based on a defined pattern. It operates by sliding a brush along a resistive element, outputting a voltage that maintains a specific relationship with the input voltage in the circuit. ## Specifications | Item | **Description** | | :---: | :---: | | Name | Potentiometer Module | | Code | B0020005 | | Dimension | 56×24×12 mm | | Voltage | 5V - DC | | Ports | Grove | | Data Type | Analog Signal | | Data Range | 0~1023 | ## **Usage** | ![](img/01Potentiometer.png) | | | | :---: | --- | --- | | ![](img/02Potentiometer.png) | ![](img/03Potentiometer.png) | ![](img/04Potentiometer.png) | | _Side View_ | _Front View_ | _Side View_ | | **Potentiometer Module Connection Diagram** | | | The potentiometer module can be connected to the P0, P1, or P2 ports of the **micro: bit smart hub**. In the coding environment, the analog values from the potentiometer module can be read. Its characteristics are as follows: + **Clockwise rotation**: The output value of the potentiometer decreases. + **Counterclockwise rotation**: The output value of the potentiometer increases. ## **Modular Coding** ![](img/05Potentiometer.gif) In the MakeCode coding software, the sensor signal value from the P0 port can be read using the Microbit extension. The data can then be visualized on the micro: bit's LED matrix.