The SparkFun micro:bit Breakout is a versatile breakout board tailored for the BBC micro:bit development board. This breakout board extends the capabilities of the micro:bit by providing easy access to all of its pins and adding extra features like an OLED display and buttons. It is ideal for educational purposes, prototyping, and hobbyist projects, allowing users to explore a wide range of electronic concepts and applications.
Pin Number | Name | Description |
---|---|---|
1 | VOUT | 3.3V power output from the micro:bit |
2 | GND | Ground connection |
3-20 | P0-P19 | General purpose I/O pins |
21 | 3V3 | 3.3V power supply input |
22 | RESET | Reset pin for the micro:bit |
Connecting the micro:bit:
Powering the Breakout:
Accessing Pins:
Using the OLED Display:
Interfacing with Buttons:
Display Not Working:
Buttons Not Responding:
Power Issues:
Q: Can I power external components through the breakout board? A: Yes, but ensure that the power requirements do not exceed the micro:bit's capabilities.
Q: Is the breakout board compatible with all versions of the micro:bit? A: The breakout board is designed to be compatible with the standard micro:bit form factor. Check the manufacturer's specifications for version compatibility.
Q: How do I program the micro:bit when it's connected to the breakout board? A: You can program the micro:bit using the standard USB connection. The breakout board does not interfere with the programming process.
// Example code to interface with the OLED display on the SparkFun micro:bit Breakout
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
// OLED display TWI address
#define OLED_ADDR 0x3C
// Reset pin not used but required for library
#define OLED_RESET -1
Adafruit_SSD1306 display(128, 64, &Wire, OLED_RESET);
void setup() {
// Initialize with the I2C addr 0x3C (for the 128x64)
if(!display.begin(SSD1306_SWITCHCAPVCC, OLED_ADDR)) {
Serial.println(F("SSD1306 allocation failed"));
for(;;); // Don't proceed, loop forever
}
display.display();
delay(2000); // Pause for 2 seconds
// Clear the buffer
display.clearDisplay();
display.setTextSize(1); // Normal 1:1 pixel scale
display.setTextColor(SSD1306_WHITE); // Draw white text
display.setCursor(0,0); // Start at top-left corner
display.print(F("Hello, micro:bit!"));
display.display();
}
void loop() {
// Nothing to do here
}
Please note that the above example is for illustration purposes and is written for an Arduino UNO, which has a similar I2C interface to the micro:bit. When using the SparkFun micro:bit Breakout, you will need to use the micro:bit's programming environment and libraries.