Stufin
Home Quick Cart Profile

Micro:Bit V2.2 Expansion Board Holder

Buy Now

Micro

Bit V2.2 Expansion Board Holder

Overview

The Micro

  • Prototyping and Development: Ideal for prototyping and developing IoT projects, enabling users to quickly test and iterate on their designs.
  • Education and Learning: Perfect for educational institutions and learning environments, providing students with a hands-on way to learn about IoT development.
  • Makers and Hobbyists: Suitable for makers and hobbyists looking to create innovative IoT projects, such as wearables, robots, and home automation systems.
Bit V2.2 Expansion Board Holder is suitable for a wide range of IoT projects, including

Dimensions

45mm x 35mm x 15mm (L x W x H)

Material

Durable plastic

Weight

10g

Compatibility

MicroBit V2.2 microcontroller board

Operating Temperature

-20C to 70C

Storage Temperature

-40C to 85C

Applications

By providing a secure and convenient way to connect and access the Micro

Bit V2.2's features, the MicroBit V2.2 Expansion Board Holder is an essential component for anyone looking to develop innovative IoT projects.

Pin Configuration

  • Micro: Bit V2.2 Expansion Board Holder Pinout Guide
  • The Micro:Bit V2.2 Expansion Board Holder is a versatile platform that allows users to connect various sensors, modules, and peripherals to the BBC micro:bit V2.2 board. This guide provides a comprehensive explanation of the pins on the expansion board holder, helping users to understand the functionality and connectivity of each pin.
  • Pins Overview
  • The Micro:Bit V2.2 Expansion Board Holder features a 25-pin header, which includes digital and analog inputs, power connections, and communication interfaces. The pins are divided into three categories: Micro:Bit Interface, External Interface, and Power Supply.
  • Micro: Bit Interface (Pins 1-5)
  • These pins connect directly to the micro:bit V2.2 board and provide access to its internal peripherals.
  • 1. Pin 1: 3V - 3.3V power output from the micro:bit V2.2 board.
  • 2. Pin 2: GND - Ground connection from the micro:bit V2.2 board.
  • 3. Pin 3: P0 - Digital input/output pin from the micro:bit V2.2 board (GPIO).
  • 4. Pin 4: P1 - Digital input/output pin from the micro:bit V2.2 board (GPIO).
  • 5. Pin 5: P2 - Digital input/output pin from the micro:bit V2.2 board (GPIO).
  • External Interface (Pins 6-15)
  • These pins provide connections for external sensors, modules, and peripherals.
  • 6. Pin 6: ADC - Analog-to-Digital Converter input for connecting analog sensors.
  • 7. Pin 7: SCL - I2C clock signal for connecting I2C devices.
  • 8. Pin 8: SDA - I2C data signal for connecting I2C devices.
  • 9. Pin 9: UART_TX - UART transmission signal for serial communication.
  • 10. Pin 10: UART_RX - UART reception signal for serial communication.
  • 11. Pin 11: SPI_CS - SPI chip select signal for connecting SPI devices.
  • 12. Pin 12: SPI_SCK - SPI clock signal for connecting SPI devices.
  • 13. Pin 13: SPI_MOSI - SPI master output slave input signal for connecting SPI devices.
  • 14. Pin 14: SPI_MISO - SPI master input slave output signal for connecting SPI devices.
  • 15. Pin 15: EXT_INT - External interrupt input for connecting interrupt-based devices.
  • Power Supply (Pins 16-25)
  • These pins provide power connections for external devices and modules.
  • 16. Pin 16: 3V - 3.3V power output for external devices.
  • 17. Pin 17: GND - Ground connection for external devices.
  • 18. Pin 18: 5V - 5V power output for external devices (optional).
  • 19. Pin 19: GND - Ground connection for external devices.
  • 20. Pin 20: VIN - Input voltage for external devices (3.3V or 5V).
  • 21. Pin 21: GND - Ground connection for external devices.
  • 22. Pin 22: VBUS - USB bus voltage output for charging or powering external devices.
  • 23. Pin 23: GND - Ground connection for external devices.
  • 24. Pin 24: BAT - Battery voltage input for charging or powering external devices.
  • 25. Pin 25: GND - Ground connection for external devices.
  • Connection Structure
  • To connect peripherals, sensors, or modules to the Micro:Bit V2.2 Expansion Board Holder, follow these steps:
  • 1. Determine the type of connection required (e.g., digital, analog, I2C, SPI, UART, etc.).
  • 2. Identify the corresponding pins on the expansion board holder.
  • 3. Connect the peripheral, sensor, or module to the designated pins using jumper wires, breadboards, or custom PCBs.
  • 4. Ensure proper power connections are made, taking into account the voltage requirements of the external device.
  • 5. Use the micro:bit V2.2 board's built-in APIs and libraries to interface with the connected peripherals, sensors, or modules.
  • By following this guide, users can effectively utilize the Micro:Bit V2.2 Expansion Board Holder to create innovative IoT projects, prototypes, and products.

Code Examples

Micro:Bit V2.2 Expansion Board Holder Documentation
The Micro:Bit V2.2 Expansion Board Holder is a versatile component designed to connect and interface with the Micro:Bit V2.2, a popular microcontroller used in various Internet of Things (IoT) projects. This holder provides a secure and reliable connection for the Micro:Bit V2.2, enabling users to expand its capabilities with external components and sensors.
Technical Specifications:
Compatible with Micro:Bit V2.2
 2x20 pin edge connector for secure Micro:Bit connection
 Breadboard-compatible pins for easy connection to external components
 Durable and compact design for various project applications
Code Examples:
### Example 1: Basic Connection and LED Control
In this example, we will demonstrate how to connect the Micro:Bit V2.2 to the expansion board holder and control an external LED using the Micro:Bit's GPIO pins.
Hardware Requirements:
Micro:Bit V2.2
 Micro:Bit V2.2 Expansion Board Holder
 Breadboard
 LED
 Resistor (1k)
 Jumper wires
Code:
```python
import microbit
# Initialize the Micro:Bit
microbit.init(display=microbit.Display.ACTION_BAR)
# Set pin 0 as an output
microbit.pin0.write_digital(1)
while True:
    # Toggle the LED connected to pin 0
    microbit.pin0.write_digital(1 - microbit.pin0.read_digital())
    microbit.sleep(500)
```
Explanation:
In this example, we initialize the Micro:Bit and set pin 0 as an output using the `write_digital()` method. We then enter an infinite loop, toggling the LED connected to pin 0 by writing the opposite digital value (1 or 0) using the `write_digital()` method. The `sleep()` function is used to add a 500ms delay between each toggle.
### Example 2: Reading Analog Sensor Data
In this example, we will demonstrate how to connect an analog sensor to the expansion board holder and read sensor data using the Micro:Bit's analog-to-digital converter (ADC).
Hardware Requirements:
Micro:Bit V2.2
 Micro:Bit V2.2 Expansion Board Holder
 Breadboard
 Analog sensor (e.g., LDR, potentiometer)
 Jumper wires
Code:
```python
import microbit
# Initialize the Micro:Bit
microbit.init(display=microbit.Display.ACTION_BAR)
# Set pin 1 as an analog input
microbit.pin1.set_analog_period(10)
while True:
    # Read the analog sensor value
    sensor_value = microbit.pin1.read_analog()
# Print the sensor value
    microbit.display.scroll(str(sensor_value) + " ")
# Wait for 100ms before reading again
    microbit.sleep(100)
```
Explanation:
In this example, we initialize the Micro:Bit and set pin 1 as an analog input using the `set_analog_period()` method. We then enter an infinite loop, reading the analog sensor value using the `read_analog()` method and printing it to the Micro:Bit's display using the `scroll()` method. The `sleep()` function is used to add a 100ms delay between each reading.
### Example 3: I2C Communication with External Modules
In this example, we will demonstrate how to connect an I2C-enabled module (e.g., LCD display, temperature sensor) to the expansion board holder and communicate with it using the Micro:Bit's I2C interface.
Hardware Requirements:
Micro:Bit V2.2
 Micro:Bit V2.2 Expansion Board Holder
 Breadboard
 I2C-enabled module (e.g., LCD display, temperature sensor)
 Jumper wires
Code:
```python
import microbit
# Initialize the Micro:Bit
microbit.init(display=microbit.Display.ACTION_BAR)
# Initialize the I2C interface
i2c = microbit.I2C(microbit.pin19, microbit.pin20)
# Set the I2C address of the external module
i2c_addr = 0x27
while True:
    # Write a command to the external module
    i2c.write(i2c_addr, b'x01x02x03')
# Read data from the external module
    data = i2c.read(i2c_addr, 2)
# Print the received data
    microbit.display.scroll(str(data) + " ")
# Wait for 100ms before sending the next command
    microbit.sleep(100)
```
Explanation:
In this example, we initialize the Micro:Bit and the I2C interface using the `I2C()` constructor. We set the I2C address of the external module using the `i2c_addr` variable. We then enter an infinite loop, writing a command to the external module using the `write()` method and reading data from it using the `read()` method. The received data is printed to the Micro:Bit's display using the `scroll()` method. The `sleep()` function is used to add a 100ms delay between each communication cycle.