5. Case02: Potentiometer#

5.1. Purpose#


  • In this project, you will learn how to read the output voltage of the potentiometer and display it on microbit screen in the form of bar garph.

5.2. Materials#


5.3. Software Platform#


MicroSoft makecode

5.4. Hardware connect#

../../_images/case_02_012.png

5.5. Programming#


Program annotation#

../../_images/case_02_021.png

Programming#

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

You can also download it directly below:

5.6. Result#


  • A bar graph of output voltage value is displayed on micro:bit

5.7. Exploration#


  • How to adjust the brightness of micro:bit screen with potentiometer?

5.8. FAQ#


5.9. Relevant Files#