Octopus Linear Slider Potentiometer Brick(EF04061)
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.
Products Link
ELECFREAKS Octopus Linear Slider Potentiometer Brick
Characteristics
The 3pins ports is easy to plug and play.
Specifications
Item | Parameter |
---|---|
SKU | EF04061 |
Power Supply | 3.3V~5V |
Adjustable Length | 30mm |
Taper | Linear resistance |
Size | 51mm X 13.95mm |
Outlook and Dimensions
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
Add Package
Program as the picture shows
- Show the value read by the sensor on the micro:bit.
- The led controlled by Potentiometer lights up by digital writing pin P2 to 1.
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 01023 is displayed on the micro:bit, and the LED on the module is illuminated at the same time.