Bit V2.2 board
USB cable
Battery holder
CR2032 coin cell battery
Quick Start Guide
Conclusion
Bit V2.2 board
USB cable
Battery holder
CR2032 coin cell battery
Quick Start Guide
Conclusion
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.
A built-in accelerometer measures acceleration, orientation, and vibration.
An integrated magnetometer senses magnetic fields and allows for orientation detection.
A temperature sensor monitors the ambient temperature.
A light sensor detects ambient light levels.
Two programmable buttons (A and B) allow for user input.
Two touch-sensitive pads enable touch-based interactions.
A 5x5 LED matrix displays scrolling text, graphics, and animations.
A built-in speaker enables audio output.
A USB interface allows for programming and data transfer.
Bluetooth 5.0 | Wireless connectivity enables communication with other devices. |
A built-in battery holder accommodates a CR2032 coin cell battery.
An LED indicates when the board is powered.
The BBC Micro | Bit V2.2 Go Kit is compatible with MicroPython, a lightweight and easy-to-use programming language. |
A graphical block-based editor is available for users who prefer a visual programming environment.
Functionality
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.