Stufin
Home Quick Cart Profile

BBC Micro:Bit V2.2 Starter Kit

Buy Now

BBC Micro

Bit V2.2 Starter Kit

Overview

The BBC Micro

Bit V2.2 Starter Kit provides an accessible and feature-rich platform for exploring the world of IoT, making it an excellent choice for both beginners and experienced developers.

The Micro

Bit V2.2 is a small, wearable device that can be used to create a wide range of projects, from simple sensors and actuators to complex IoT applications. The board measures 43mm x 52mm and features a 25-pin edge connector, which allows easy connection to other devices and sensors. The starter kit includes the MicroBit board, a USB cable, a battery holder, and a quick-start guide.

Key Features

  • Microprocessor: The Micro:Bit V2.2 is based on the Nordic Semiconductor nRF52833 microcontroller, which provides a powerful and efficient processing platform.
  • Programming Languages: The Micro:Bit supports a range of programming languages, including MakeCode, MicroPython, and JavaScript.
  • Storage: The board features 512 KB of flash memory and 128 KB of RAM, providing ample storage for IoT projects.
  • Wireless Connectivity: The Micro:Bit V2.2 offers Bluetooth 5.0 and NFC connectivity, enabling seamless communication with other devices.
  • Sensors: The board includes a range of built-in sensors, including:

Accelerometer (3-axis)

Compass (magnetometer)

Thermometer (temperature sensor)

Light sensor

Microphone

  • Actuators: The Micro:Bit features five programmable LED lights, which can be used to create engaging visual effects or indicators.
  • Power Management: The board includes a power management system that allows for efficient battery life, with a typical battery life of up to 10 days.
  • Expansion: The 25-pin edge connector provides access to GPIO, I2C, SPI, and UART interfaces, allowing users to connect external devices and sensors.

Functionality

Dimensions

43mm x 52mm

Weight

12g

Operating Frequency

2.4 GHz

Power Consumption

100 mA (maximum)

Battery Life

Up to 10 days (typical)

Operating Temperature

-20C to 70C

Getting Started

To get started with the BBC Micro

  • Connect the Micro:Bit to a computer using the provided USB cable.
  • Install the MakeCode or MicroPython editor.
  • Choose a programming language and start coding your project.
  • Experiment with the built-in sensors and actuators.
  • Connect external devices and sensors using the 25-pin edge connector.
Bit V2.2 Starter Kit, follow these steps

Pin Configuration

  • BBC Micro:Bit V2.2 Starter Kit Pinouts
  • The BBC Micro:Bit V2.2 Starter Kit is a compact, entry-level IoT development board featuring a 32-bit ARM Cortex M0 processor. The board has a total of 25 pins, which can be used for various purposes such as input/output operations, power supply, and communication. Here's a detailed explanation of each pin:
  • Pinout Structure:
  • | Pin Number | Pin Name | Pin Type | Pin Function |
  • | --- | --- | --- | --- |
  • | 1 | GND | Ground | Power supply ground |
  • | 2 | 3V | Power | 3V power supply |
  • | 3 | P0 | Digital | General-purpose digital input/output |
  • | 4 | P1 | Digital | General-purpose digital input/output |
  • | 5 | P2 | Digital | General-purpose digital input/output |
  • | 6 | P3 | Digital | General-purpose digital input/output |
  • | 7 | P4 | Digital | General-purpose digital input/output |
  • | 8 | P5 | Digital | General-purpose digital input/output |
  • | 9 | P6 | Digital | General-purpose digital input/output |
  • | 10 | P7 | Digital | General-purpose digital input/output |
  • | 11 | P8 | Digital | General-purpose digital input/output |
  • | 12 | P9 | Digital | General-purpose digital input/output |
  • | 13 | P10 | Digital | General-purpose digital input/output |
  • | 14 | P11 | Digital | General-purpose digital input/output |
  • | 15 | P12 | Digital | General-purpose digital input/output |
  • | 16 | P13 | Digital | General-purpose digital input/output |
  • | 17 | P14 | Digital | General-purpose digital input/output |
  • | 18 | P15 | Digital | General-purpose digital input/output |
  • | 19 | P16 | Digital | General-purpose digital input/output |
  • | 20 | SCL (I2C) | Digital | I2C serial clock |
  • | 21 | SDA (I2C) | Digital | I2C serial data |
  • | 22 | TX (UART) | Digital | UART transmit |
  • | 23 | RX (UART) | Digital | UART receive |
  • | 24 | Button A | Digital | User-programmable button |
  • | 25 | Button B | Digital | User-programmable button |
  • Pin Functions:
  • 1. GND (Pin 1): Provides a common ground connection for power supply and signals.
  • 2. 3V (Pin 2): 3V power supply pin, used to power the microcontroller and other components.
  • 3. P0-P16 (Pins 3-18): General-purpose digital input/output pins, which can be used for various applications such as:
  • Digital input/output operations
  • Analog-to-digital conversion (ADC)
  • Pulse-width modulation (PWM)
  • Serial communication (UART, I2C, SPI)
  • 4. SCL (I2C) (Pin 20): I2C serial clock pin, used for I2C communication.
  • 5. SDA (I2C) (Pin 21): I2C serial data pin, used for I2C communication.
  • 6. TX (UART) (Pin 22): UART transmit pin, used for serial communication.
  • 7. RX (UART) (Pin 23): UART receive pin, used for serial communication.
  • 8. Button A (Pin 24): User-programmable button, which can be used for various applications such as:
  • Input device for user interactions
  • Interrupt generation
  • 9. Button B (Pin 25): User-programmable button, which can be used for various applications such as:
  • Input device for user interactions
  • Interrupt generation
  • Connecting the Pins:
  • When connecting the pins, make sure to follow proper wiring and safety precautions to avoid damage to the board or other components. Here are some general guidelines:
  • Use breadboard-friendly jumpers or wires to connect the pins to other components or modules.
  • Ensure correct polarity when connecting power supply pins (3V and GND).
  • Use pull-up or pull-down resistors as necessary for digital input/output pins.
  • When using I2C or UART communication, ensure correct pin connections and communication protocols.
  • When using analog-to-digital conversion (ADC), ensure correct pin connections and ADC settings.
  • Remember to consult the BBC Micro:Bit V2.2 datasheet and documentation for specific connection diagrams and guidelines for your project.

Code Examples

BBC Micro:Bit V2.2 Starter Kit Documentation
Overview
The BBC Micro:Bit V2.2 Starter Kit is a compact, low-power microcontroller board designed for educational and prototyping purposes. It's a popular IoT component suitable for beginners and experienced developers alike. This documentation provides an overview of the board's features, technical specifications, and code examples to get you started with using the Micro:Bit V2.2 in various contexts.
Features and Technical Specifications
Microcontroller: Nordic nRF52833
 Processor: 64MHz Arm Cortex-M4
 Flash Memory: 512KB
 RAM: 128KB
 Bluetooth 5.0 Low Energy (BLE)
 25 Programmable I/O Pins
 5x5 LED Matrix Display
 2-Button Interface
 Micro-USB Interface
 Battery Holder for AAA Batteries
 Dimensions: 51.8 x 51.8 mm
Software and Programming
The Micro:Bit V2.2 can be programmed using various languages, including:
MicroPython
 Scratch
 C++
 JavaScript (using the MakeCode editor)
For this documentation, we'll focus on MicroPython examples.
Code Examples
### Example 1: Blinking LEDs
This example demonstrates how to control the 5x5 LED matrix display on the Micro:Bit V2.2 using MicroPython.
```python
import microbit
while True:
    microbit.display.set_pixel(2, 2, 9)  # Set pixel at (2, 2) to brightness 9
    microbit.sleep(500)  # Wait 500ms
    microbit.display.clear()  # Clear the display
    microbit.sleep(500)  # Wait 500ms
```
This code sets a single pixel on the LED matrix to brightness 9, waits for 500ms, clears the display, and then waits again. This creates a blinking effect.
### Example 2: Button-Activated LED Control
This example shows how to use the two on-board buttons to control the LED matrix display.
```python
import microbit
while True:
    if microbit.button_a.is_pressed():
        microbit.display.show("A")  # Show the letter "A" on the display
    elif microbit.button_b.is_pressed():
        microbit.display.show("B")  # Show the letter "B" on the display
    else:
        microbit.display.clear()  # Clear the display
    microbit.sleep(50)  # Wait 50ms
```
In this example, pressing button A displays the letter "A" on the LED matrix, while pressing button B displays the letter "B". When neither button is pressed, the display is cleared.
### Example 3: BLE Communication with a Mobile App
This example demonstrates how to use the Micro:Bit V2.2's BLE capabilities to communicate with a mobile app.
```python
import microbit
import bluetooth
# Initialize BLE
bluetooth.init()
# Advertise the Micro:Bit as a BLE peripheral
bluetooth.advertise(name="MicroBit_LE", service_uuid="12345678-1234-1234-1234-123456789012")
while True:
    # Wait for a BLE connection
    client = bluetooth.connect()
# Send a string to the connected device
    client.send("Hello from Micro:Bit!")
# Wait for a response from the connected device
    response = client.recv(20)
# Print the received response
    microbit.display.scroll(response)
# Disconnect from the client
    client.disconnect()
```
In this example, the Micro:Bit V2.2 is configured as a BLE peripheral, and it advertises its presence to nearby devices. When a connection is established, the Micro:Bit sends a string to the connected device and waits for a response. The received response is then displayed on the LED matrix.
These examples demonstrate the capabilities of the BBC Micro:Bit V2.2 Starter Kit and provide a starting point for more complex projects. With its ease of use, versatility, and low power consumption, the Micro:Bit V2.2 is an excellent choice for various IoT applications, from simple prototypes to more complex projects.