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):
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.
