Stufin
Home Quick Cart Profile

Micro:Bit BBC SBC

Buy Now

Micro

Bit BBC SBC

Overview

The Micro

Bit BBC SBC is an accessible, versatile, and feature-rich microcontroller that provides an ideal platform for learning, experimentation, and innovation. Its compact size, ease of use, and extensive feature set make it an excellent choice for a wide range of applications, from education to IoT development.

Pin Configuration

  • Micro: Bit BBC SBC Pinout Guide
  • The Micro:Bit BBC SBC (Single Board Computer) is a compact, versatile, and easy-to-use microcontroller designed for educational and IoT applications. This documentation provides a comprehensive overview of the Micro:Bit's pinout, explaining each pin's function and how to connect them.
  • Pin Structure:
  • The Micro:Bit BBC SBC has a total of 25 pins, organized into three main sections:
  • 1. Edge Connector (20 pins): This is the main connector that runs along the bottom edge of the board.
  • 2. Breakout Pads (5 pins): These are small pads located on the top side of the board, near the Edge Connector.
  • Edge Connector Pins (20):
  • 1. PIN 0: Digital Input/Output (GPIO) - General-purpose digital pin, can be used as an input or output.
  • 2. PIN 1: Digital Input/Output (GPIO) - General-purpose digital pin, can be used as an input or output.
  • 3. PIN 2: Digital Input/Output (GPIO) - General-purpose digital pin, can be used as an input or output. Also serves as the I2C SCL (Clock) line.
  • 4. PIN 3: Digital Input/Output (GPIO) - General-purpose digital pin, can be used as an input or output. Also serves as the I2C SDA (Data) line.
  • 5. PIN 4: Digital Input/Output (GPIO) - General-purpose digital pin, can be used as an input or output.
  • 6. PIN 5: Digital Input/Output (GPIO) - General-purpose digital pin, can be used as an input or output.
  • 7. PIN 6: Digital Input/Output (GPIO) - General-purpose digital pin, can be used as an input or output.
  • 8. PIN 7: Digital Input/Output (GPIO) - General-purpose digital pin, can be used as an input or output.
  • 9. PIN 8: Digital Input/Output (GPIO) - General-purpose digital pin, can be used as an input or output.
  • 10. PIN 9: Digital Input/Output (GPIO) - General-purpose digital pin, can be used as an input or output.
  • 11. PIN 10: UART RX (Receive) - Used for serial communication, receives data from another device.
  • 12. PIN 11: UART TX (Transmit) - Used for serial communication, transmits data to another device.
  • 13. PIN 12: 3V Power - Provides a 3.3V power supply to external devices.
  • 14. PIN 13: GND (Ground) - Provides a ground connection to the Micro:Bit.
  • 15. PIN 14: GND (Ground) - Provides a ground connection to the Micro:Bit.
  • 16. PIN 15: 3V Power - Provides a 3.3V power supply to external devices.
  • 17. PIN 16: Digital Input/Output (GPIO) - General-purpose digital pin, can be used as an input or output.
  • 18. PIN 17: Digital Input/Output (GPIO) - General-purpose digital pin, can be used as an input or output.
  • 19. PIN 18: Digital Input/Output (GPIO) - General-purpose digital pin, can be used as an input or output.
  • 20. PIN 19: Reset - Used to reset the Micro:Bit to its default state.
  • Breakout Pads (5):
  • 1. PWR: 3V Power - Provides a 3.3V power supply to external devices.
  • 2. GND: GND (Ground) - Provides a ground connection to the Micro:Bit.
  • 3. VIN: External Power Input - Used to power the Micro:Bit from an external power source (3.3V to 5V).
  • 4. 5V: 5V Power - Provides a 5V power supply to external devices (note: this pin is not always available, depending on the power source).
  • 5. USB: USB Data - Used for USB communication and programming the Micro:Bit.
  • Connecting the Pins:
  • When connecting pins, make sure to:
  • Use suitable jumper wires or a breadboard to connect the pins.
  • Be careful not to short-circuit the pins, which can damage the Micro:Bit.
  • Ensure that the pins are properly aligned and securely connected.
  • Refer to the Micro:Bit's datasheet and documentation for specific connection guidelines and precautions.
  • By understanding the pinout and connections, you can unlock the full potential of the Micro:Bit BBC SBC and create a wide range of innovative projects.

Code Examples

Micro:Bit BBC SBC Documentation
Overview
The Micro:Bit BBC SBC (Single-Board Computer) is a compact, low-power microcontroller designed for educational and IoT applications. It features a 32-bit ARM Cortex-M0 processor, 16 KB of RAM, and 256 KB of flash memory. The board includes a range of sensors, I/O interfaces, and a wireless communication module, making it an ideal platform for exploring IoT and robotics projects.
Hardware Features
32-bit ARM Cortex-M0 processor
 16 KB of RAM and 256 KB of flash memory
 MicroUSB connector for programming and power
 25-pin edge connector for I/O expansion
 5x5 LED matrix display
 Accelerometer and magnetometer sensors
 Bluetooth Low Energy (BLE) module
 2x button inputs
 1x reset button
 Power management system
Code Examples
### Example 1: Blinking LEDs using MicroPython
This example demonstrates how to use the Micro:Bit BBC SBC to blink the onboard 5x5 LED matrix display using MicroPython.
```python
import microbit
while True:
    microbit.display.show(microbit.Image.HEART)
    microbit.sleep(500)
    microbit.display.clear()
    microbit.sleep(500)
```
In this example, we import the `microbit` module and use a infinite loop to toggle the display between the heart symbol and a blank display, creating a blinking effect.
### Example 2: Accelerometer Data Logging using C++ (mbed)
This example demonstrates how to use the Micro:Bit BBC SBC to read accelerometer data and log it to the console using C++ (mbed).
```cpp
#include <MicroBit.h>
MicroBit uBit;
void setup() {
    uBit.init();
    Serial.begin(115200);
}
void loop() {
    int x, y, z;
    uBit.accel.getAcceleration(&x, &y, &z);
    Serial.printf("Accelerometer: x=%d, y=%d, z=%d
", x, y, z);
    wait(0.1);
}
```
In this example, we include the `MicroBit.h` header file and initialize the Micro:Bit board. We then use the `getAcceleration()` function to read the accelerometer data and log it to the console using `Serial.printf()`.
### Example 3: Wireless Communication using BLE (JavaScript)
This example demonstrates how to use the Micro:Bit BBC SBC to establish a wireless connection with a BLE-enabled device and send a string message using JavaScript.
```javascript
const microbit = require('microbit');
microbit.init();
const ble = microbit.ble;
ble.on('connected', () => {
  console.log('Connected to BLE device!');
  ble.sendString('Hello from Micro:Bit!');
});
ble.advertise();
```
In this example, we require the `microbit` module and initialize the board. We then create a BLE instance and set up an event listener for when a connection is established. When connected, we send a string message using `ble.sendString()`. Finally, we start advertising the BLE service using `ble.advertise()`.