Example Code for micro:bit-Read Rotary Knob Analog Value

Last revision 2025/12/31

This guide explains how to connect and read analog values from a rotary knob using micro:bit, providing detailed hardware and software preparation, wiring diagrams, and sample code for MakeCode and Mind+.

Hardware Preparation

Connect a rotary knob to pin C0.

Software Preparation

Wiring Diagram

Sample Code

MakeCode Program Screenshot
Program Link:click here
Mind+ Program Screenshot

Result

Was this article helpful?

TOP