Stufin
Home Quick Cart Profile

BBC Micro:Bit V2.2 Go Kit

Buy Now

BBC Micro

Bit V2.2 board

USB cable

Battery holder

CR2032 coin cell battery

Quick Start Guide

Conclusion

The BBC Micro

Bit V2.2 Go Kit is an exceptional tool for beginners and experienced makers alike. Its unique combination of sensors, inputs, and outputs, along with its powerful microcontroller and easy-to-use programming environment, make it an ideal choice for exploring the world of IoT and physical computing.

Accelerometer

A built-in accelerometer measures acceleration, orientation, and vibration.

Magnetometer

An integrated magnetometer senses magnetic fields and allows for orientation detection.

Temperature Sensor

A temperature sensor monitors the ambient temperature.

Light Sensor

A light sensor detects ambient light levels.

  • Inputs:

Buttons

Two programmable buttons (A and B) allow for user input.

Touch Pads

Two touch-sensitive pads enable touch-based interactions.

  • Outputs:

LED Matrix

A 5x5 LED matrix displays scrolling text, graphics, and animations.

Speaker

A built-in speaker enables audio output.

  • Connectivity:

USB

A USB interface allows for programming and data transfer.

  • Power:
Bluetooth 5.0Wireless connectivity enables communication with other devices.

Battery Holder

A built-in battery holder accommodates a CR2032 coin cell battery.

Power Indicator

An LED indicates when the board is powered.

  • Development:

MicroPython

The BBC MicroBit V2.2 Go Kit is compatible with MicroPython, a lightweight and easy-to-use programming language.

Block Editor

A graphical block-based editor is available for users who prefer a visual programming environment.

Functionality

Pin Configuration

  • BBC Micro:Bit V2.2 Go Kit Pinout
  • The BBC Micro:Bit V2.2 Go Kit is a popular microcontroller-based development board designed for educational and IoT projects. It features 25 pins, each with specific functions and capabilities. Here's a detailed explanation of each pin, including their functions and how to connect them:
  • Pins 0-3: GPIO (General Purpose Input/Output)
  • Pin 0: GPIO 0 (Digital Input/Output) - Can be used as a digital input or output, or as an analog input (ADC).
  • Pin 1: GPIO 1 (Digital Input/Output) - Can be used as a digital input or output, or as an analog input (ADC).
  • Pin 2: GPIO 2 (Digital Input/Output) - Can be used as a digital input or output, or as an analog input (ADC).
  • Pin 3: GPIO 3 (Digital Input/Output) - Can be used as a digital input or output, or as an analog input (ADC).
  • Pins 4-5: I2C (Inter-Integrated Circuit)
  • Pin 4: SCL (Serial Clock) - I2C clock signal.
  • Pin 5: SDA (Serial Data) - I2C data signal.
  • Pins 6-7: SPI (Serial Peripheral Interface)
  • Pin 6: SCK (Serial Clock) - SPI clock signal.
  • Pin 7: MOSI (Master Out Slave In) - SPI data output from the micro:bit.
  • Note: The SPI interface is not enabled by default and requires a specific configuration to use.
  • Pins 8-9: UART (Universal Asynchronous Receiver-Transmitter)
  • Pin 8: TX (Transmit) - UART transmit signal.
  • Pin 9: RX (Receive) - UART receive signal.
  • Pins 10-12: GPIO (General Purpose Input/Output)
  • Pin 10: GPIO 10 (Digital Input/Output) - Can be used as a digital input or output, or as an analog input (ADC).
  • Pin 11: GPIO 11 (Digital Input/Output) - Can be used as a digital input or output, or as an analog input (ADC).
  • Pin 12: GPIO 12 (Digital Input/Output) - Can be used as a digital input or output, or as an analog input (ADC).
  • Pins 13-15: LEDs and Buttons
  • Pin 13: LED1 (Red) - Connect to a resistor and an LED to create a simple LED circuit.
  • Pin 14: Button A - Digital input connected to Button A on the micro:bit.
  • Pin 15: Button B - Digital input connected to Button B on the micro:bit.
  • Pins 16-18: Accelerometer and Magnetometer
  • Pin 16: SCL (Serial Clock) - I2C clock signal for the accelerometer and magnetometer.
  • Pin 17: SDA (Serial Data) - I2C data signal for the accelerometer and magnetometer.
  • Pin 18: INT (Interrupt) - Interrupt signal from the accelerometer and magnetometer.
  • Pins 19-20: USB and Power
  • Pin 19: VUSB (USB Voltage) - USB voltage input (typically 5V).
  • Pin 20: GND (Ground) - Ground connection for the micro:bit.
  • Pins 21-22: Pins for the Edge Connector
  • Pin 21: Edge Connector Pin 1 - Used for expansion boards and accessories.
  • Pin 22: Edge Connector Pin 2 - Used for expansion boards and accessories.
  • Pins 23-25: Pins for the Edge Connector
  • Pin 23: Edge Connector Pin 3 - Used for expansion boards and accessories.
  • Pin 24: Edge Connector Pin 4 - Used for expansion boards and accessories.
  • Pin 25: Edge Connector Pin 5 - Used for expansion boards and accessories.
  • How to Connect the Pins:
  • 1. Digital Inputs/Outputs: Connect digital devices such as sensors, LEDs, or buttons to the GPIO pins (0-3, 10-12). Use a voltage level of 3.3V and a current limit of 5mA per pin.
  • 2. I2C: Connect I2C devices to pins 4 (SCL) and 5 (SDA). Use a pull-up resistor (1k-10k) on the SCL and SDA lines.
  • 3. SPI: Connect SPI devices to pins 6 (SCK), 7 (MOSI), and additional pins for MISO (Master In Slave Out) and SS (Slave Select) if required. Use a pull-up resistor (1k-10k) on the SCK line.
  • 4. UART: Connect UART devices to pins 8 (TX) and 9 (RX). Use a voltage level of 3.3V and a current limit of 5mA per pin.
  • 5. LEDs and Buttons: Connect LEDs to pins 13-15 with a suitable resistor (330-1k) and power supply (3.3V).
  • 6. Accelerometer and Magnetometer: Connect the accelerometer and magnetometer to pins 16 (SCL), 17 (SDA), and 18 (INT).
  • 7. USB and Power: Connect the USB voltage input (5V) to pin 19 and the ground connection to pin 20.
  • 8. Edge Connector: Connect expansion boards and accessories to pins 21-25.
  • Remember to always follow proper electrical safety guidelines and datasheet specifications when connecting external devices to the BBC Micro:Bit V2.2 Go Kit.

Code Examples

BBC Micro:Bit V2.2 Go Kit Documentation
Overview
The BBC Micro:Bit V2.2 Go Kit is a compact, wearable, and programmable device designed for educational and prototyping purposes. It's a powerful, pocket-sized microcontroller that can be used to create a wide range of IoT projects, from simple wearables to complex automation systems.
Hardware Components
Micro:Bit Board V2.2
 Battery Holder with 2x AAA batteries
 USB Cable
 Quick Start Guide
Technical Specifications
Processor: Nordic nRF52833 Cortex-M4
 Flash Memory: 512 KB
 RAM: 128 KB
 Bluetooth 5.0 and 2.4GHz Radio
 Accelerometer and Compass sensors
 25 LED Matrix display
 2 Programmable Buttons
 Edge Connector with 21 GPIO pins
Software Support
The Micro:Bit V2.2 Go Kit is compatible with multiple programming languages, including:
Microsoft MakeCode
 Python
 JavaScript
 C++ (via MicroPython)
Code Examples
Here are three code examples that demonstrate how to use the BBC Micro:Bit V2.2 Go Kit in various contexts:
Example 1: Blinking LED Matrix (MakeCode)
```makecode
let loopCount = 0
forever(function () {
    loopCount += 1
    basic.clearScreen()
    basic.setPixel(2, 2, 255)
    basic.pause(500)
    basic.clearScreen()
    basic.setPixel(4, 4, 255)
    basic.pause(500)
})
```
This code creates a blinking LED matrix pattern using the Micro:Bit's 25 LED display. The `forever` loop increments a counter, clears the screen, sets a pixel at coordinates (2,2) to maximum brightness, pauses for 500ms, clears the screen again, and sets a pixel at coordinates (4,4) to maximum brightness. This pattern continues indefinitely.
Example 2: Accelerometer-based Gesture Recognition (Python)
```python
import microbit
while True:
    x, y, z = microbit.accelerometer.get_values()
    if x > 500 and y < 200:
        microbit.display.show("UP")
    elif x < -500 and y > 200:
        microbit.display.show("DOWN")
    else:
        microbit.display.show("-")
microbit.sleep(50)
```
This code uses the Micro:Bit's built-in accelerometer to recognize simple gestures. The code reads the x, y, and z-axis values from the accelerometer and checks for specific thresholds. If the values indicate an "up" or "down" gesture, it displays the corresponding text on the LED matrix. If no gesture is detected, it displays a dash.
Example 3: Bluetooth Low Energy (BLE) Communication (JavaScript)
```javascript
let device;
microbit.onBluetoothConnected(function () {
    device = microbit.bluetooth.isConnected();
    console.log("Connected to " + device.name);
});
microbit.onBluetoothDisconnected(function () {
    console.log("Disconnected");
});
microbit.onBluetoothReceived(function (data) {
    console.log("Received: " + data);
});
```
This code demonstrates how to use the Micro:Bit's Bluetooth 5.0 capabilities to establish a connection with a nearby device and exchange data. The code sets up event listeners for connection, disconnection, and data reception events. When a connection is established, it logs the connected device's name to the console. When data is received, it logs the received data to the console.
These examples showcase the versatility of the BBC Micro:Bit V2.2 Go Kit and its potential applications in IoT projects.