4. Octopus Linear Slider Potentiometer Brick¶
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.
The 3-pins ports is easy to plug and play.
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¶
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
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.
You can also download the links below:---
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.