BBC micro:bit V2
Components

BBC micro:bit V2

0.0(0)
The BBC micro:bit V2 is a palm-sized coding board designed for students. A 25-LED display, buttons A and B, a touch logo, an accelerometer that senses movement and tilt, a compass, a speaker, a microphone, temperature and light sensing and a radio for talking to other boards are all built in, so most projects need no extra parts or wires. You program it with MicroPython, MakeCode blocks or C++, and the code is uploaded over a USB cable. The board runs from USB or from a battery pack with two AAA batteries. LEDs, servos and sensors connect with crocodile clips to the 0, 1, 2, 3V and GND rings on the bottom edge. From a beating heart, a dice, a compass and a step counter to multi-board games that talk over radio, a great many ideas can be built with this one board.

Projects using this component

First Program with micro:bit: Beating Heart
MI-1Beginner

First Program with micro:bit: Beating Heart

Upload your first code to the micro:bit: a big and a small heart take turns on the LED display and beat with a double thump like a real heart. No wires or extra parts; just connect the board to a computer over USB. display.show shows an image and sleep makes the program wait.

micro:bit Name Badge: Scrolling Text on the LED Display
MI-2Beginner

micro:bit Name Badge: Scrolling Text on the LED Display

Your name scrolls across the micro:bit's LED display from right to left, then a happy face shows and it all starts again. Clip the board on with a battery pack and it becomes a digital name badge. display.scroll moves the text; no extra parts are needed.

micro:bit Mood Badge: Faces with Buttons A and B
MI-3Beginner

micro:bit Mood Badge: Faces with Buttons A and B

Button A shows a happy face, button B a sad one and both together a surprised one; after five seconds without a press the micro:bit falls asleep. is_pressed reads a button and if / elif makes the choice. No extra parts are needed.

Ticklish micro:bit: A Board That Giggles When You Touch the Logo
MI-4Beginner

Ticklish micro:bit: A Board That Giggles When You Touch the Logo

Touch the gold logo above the display: the micro:bit giggles and its face wiggles left and right, then calms down when you take your finger away. pin_logo.is_touched senses the touch and audio.play plays the sound. No extra parts are needed.

micro:bit Digital Dice: Shake to Roll
MI-5Beginner

micro:bit Digital Dice: Shake to Roll

Shake the board: the dice rolls for a moment, then stops on a random face from 1 to 6. The accelerometer feels the shake (was_gesture) and random.choice picks the face. No extra parts are needed.

micro:bit Pocket Doorbell: Ding Dong
MI-6Beginner

micro:bit Pocket Doorbell: Ding Dong

Press button A and the onboard speaker plays a two-note doorbell. Button B plays a built-in tune; a note shows while it plays and a house while it waits. music.play plays the notes. No extra parts are needed.

micro:bit Spirit Level: A Dot That Slides as You Tilt
MI-7Beginner

micro:bit Spirit Level: A Dot That Slides as You Tilt

Tilt the board and the lit dot slides toward the lower edge like a marble; when the dot is in the middle the surface is level. The accelerometer measures the tilt (get_x, get_y) and set_pixel lights the dot. No extra parts are needed.

micro:bit Clap Lamp
MI-8Beginner

micro:bit Clap Lamp

Clap once and the whole LED display lights up like a lamp; one more clap turns it off. The onboard microphone hears the sound (was_event) and set_threshold sets the level. No extra parts are needed.

micro:bit Night Light: Sun or Moon
MI-9Beginner

micro:bit Night Light: Sun or Moon

The LED display also measures the light around it: in a bright room it shows a sun, and when it gets dark a bright moon appears and works as a night light. display.read_light_level reads the light. No extra parts are needed.

micro:bit Pocket Thermometer
MI-10Beginner

micro:bit Pocket Thermometer

The board measures the temperature with its built-in sensor and shows it as a rising column: each row is 5 degrees. Press button A and the temperature scrolls as a number. temperature reads the value. No extra parts are needed.