4. Case02: Potentiometer#

4.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.

4.2. Materials#


4.3. Software Platform#


MicroSoft makecode

4.4. Hardware connect#

../../_images/case_02_012.png

4.5. Programming#


Program annotation#

../../_images/case_02_021.png

Programming#

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

You can also download it directly below:

4.6. Result#


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

4.7. Exploration#


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

4.8. FAQ#


4.9. Relevant Files#