4. Octopus Linear Slider Potentiometer Brick

4.1. Introduction


OCTOPUS Potentiometer is a simple linear sliding potentiometer electronic building block module which can be used for resistor divider output, HID control panel, electronic building block kit.

../../_images/zB1We7i.jpg

4.2. Characteristics


  • The 3-pins ports is easy to plug and play.

4.3. Specifications


Item | Parameter :-: | :-: SKU|EF04061 Power Supply|3.3V~5V Adjustable Length|30mm Taper|Linear resistance Size|51mm X 13.95mm

4.4. Outlook and Dimensions


../../_images/dLwyWxY.jpg

4.5. Quick to Start

Materials used and connection diagram

  • Connect out port to the P1 port and the led port to P2 port as the picture shows

    Take sensor:bit for example

../../_images/ikkyw8U.png

Add Package

Program as the picture shows

  1. Show the value read by the sensor on the micro:bit.

  2. The led controlled by Potentiometer lights up by digital writing pin P2 to 1.

../../_images/Q7yiG9T.png

Reference


Links:https://makecode.microbit.org/_19baPjHKcJMT

You can also download the links below:

---

Result

As the resistance is changed by sliding, the resistance of the corresponding band 0-1023 is displayed on the micro:bit, and the LED on the module is illuminated at the same time.

4.6. Relevant Cases


4.7. Technique Files