# Voltmeter

**URL:** <https://forum.makecode.com/t/voltmeter/47147>\
**Category:** Show & Tell\
**Tags:** tool\
**Created:** [November 9, 2026, 7:38pm UTC](https://forum.makecode.com/t/voltmeter/47147 "2026-11-09T19:38:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Scruff](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/scruff/32/34627_2.png) [@Scruff](https://forum.makecode.com/u/Scruff)\
**Post date:** [November 9, 2026, 7:38pm UTC](https://forum.makecode.com/t/voltmeter/47147/1 "2026-11-09T19:38:30Z")

</div>

> **[Voltmeter (Micro:bit)](https://makecode.microbit.org/S52013-88966-43469-54160)**
>
> Made with ❤️ in Microsoft MakeCode for micro:bit.

> **[Voltmeter (MakeCode Arcade)](https://arcade.makecode.com/S99335-99623-47102-45384)**
>
> Code for the KittenBot Meowbit and BrainPad Arcade V2.

You can use any of the six MakeCode handheld consoles listed below to make the Voltmeter. They all provide access to the edge connector pins: P0, P1, P2, 3V and GND (Ground). These connector pins are used to interface with external circuits and sensors. Two versions of the code are available one for MakeCode Arcade consoles and one for Micro:bit shield consoles.

KittenBot Meowbit

BrainPad Arcade V2

KittenBot Newbit Arcade Shield for micro:bit

Elecfreaks MakeCode micro:bit Arcade

Kitronik Arcade for BBC micro:bit

Tomato Cube MakeCode Arcade Display Shield for micro:bit

This project requires the following parts:

1 x Handheld console (from the list above)

1 x 10kΩ linear variable resistor (the one used in this project was obtained from MonkMakes)

3 x Alligator clip leads

The Voltmeter measures voltage in the range of 0 – 3.15 volts and shows the measurement on the screen. The variable resistor supplies a varying voltage to the handheld console via the analog input pin labelled 0 (P0) on the edge connector.

Connect the console to the variable resistor as follows (refer to Figure 1):

 ![Voltmeter](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/e/9/e94605ddf3ddc44f035290092b240981a53f73ea.jpeg)

Figure 1: Wiring configuration.

Connect an alligator clip lead between GND on the console and GND on the variable resistor.

Connect an alligator clip lead between 3V on the console and 3V on the variable resistor.

Connect an alligator clip lead between 0 (P0) on the console and the arrow symbol on the variable resistor.

Operation

Move the variable resistor slider to any desired position and press button [A] on the console to display the voltage measurement on the screen.
