LESSON 04. Potentiometer


Connecting an potentiometer to a micro:bit

Potentiometer (or trimpot) is a kind of common pressure adjustment components. In the following experiment, we are going to read output voltage on potentiometer and display it by Micro:bit 5*5 LED screen with bar graph.


What you will need

  • 1 × micro:bit SOKIT (BBC micro:bit + SOKIT Pad)

  • 1 × Micro USB cable

  • 1 × Potentiometer Module

  • 1 × SOKIT CONNECTOR "I" 8cm

  • 2 × SOKIT CONNECTOR "I" 16cm

Hardware Connect​


Programming

You can see the whole program in the page below. Click “Edit” on the right top corner, and then “download”, you can download your code into Micro:bit.


VIDEO