Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use Microbit: Examples, Pinouts, and Specs

Image of Microbit
Cirkit Designer LogoDesign with Microbit in Cirkit Designer

Introduction

The Microbit, manufactured by Arduino with the part ID UNO, is a small, programmable microcontroller board designed for educational purposes. It features an array of built-in sensors, buttons, and LED lights, making it an ideal tool for learning coding and electronics. The Microbit is widely used in classrooms, workshops, and personal projects to introduce users to programming concepts and hardware interaction.

Explore Projects Built with Microbit

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Adafruit Crickit Controlled Robotics Platform with Micro:bit
Image of Circuit Design for Recyclo-Bot: A project utilizing Microbit in a practical application
This circuit is designed to control multiple motors and servos using an Adafruit Crickit for microbit as the main controller, interfaced with a micro bit microcontroller. It includes two yellow hobby gear motors, two 9G micro servos, and two standard servos, all powered and controlled by the Crickit board. Additionally, there is a 0.96" OLED display for output and a piezo sensor, likely for input, connected to the Crickit, which is programmed via the micro bit.
Cirkit Designer LogoOpen Project in Cirkit Designer
I2C-Controlled OLED Display with External EEPROM and Interactive Pushbuttons
Image of godmode: A project utilizing Microbit in a practical application
This is a microcontroller-based interactive device featuring a Wemos D1 Mini, an OLED display, external EEPROM, and an I/O expander. It includes user input buttons and status LEDs, with potential MIDI interface capabilities.
Cirkit Designer LogoOpen Project in Cirkit Designer
Bluetooth-Controlled Multi-Function Arduino Nano Gadget
Image of Copy of Smarttt: A project utilizing Microbit in a practical application
This is a portable, microcontroller-driven interactive device featuring Bluetooth connectivity, visual (RGB LED), auditory (loudspeaker), and haptic (vibration motor) feedback, user input (pushbutton), and a rechargeable power system (TP4056 with Li-ion battery).
Cirkit Designer LogoOpen Project in Cirkit Designer
ATmega328P-Based Sensor Hub with OLED Display and LIDAR
Image of TILTPCB: A project utilizing Microbit in a practical application
This circuit features an Mtiny Uno ATmega328P microcontroller as its central processing unit, interfacing with a variety of sensors and peripherals. It includes a 0.96" OLED display and an MPU6050 accelerometer/gyroscope for user interface and motion sensing, respectively. The circuit also integrates a TF LUNA LIDAR for distance measurement, a DHT11 sensor for temperature and humidity readings, and uses a 9V battery with a 7805 voltage regulator for power management. Communication with a computer for programming and data exchange is facilitated by an Adafruit FTDI Friend module.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with Microbit

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of Circuit Design for Recyclo-Bot: A project utilizing Microbit in a practical application
Adafruit Crickit Controlled Robotics Platform with Micro:bit
This circuit is designed to control multiple motors and servos using an Adafruit Crickit for microbit as the main controller, interfaced with a micro bit microcontroller. It includes two yellow hobby gear motors, two 9G micro servos, and two standard servos, all powered and controlled by the Crickit board. Additionally, there is a 0.96" OLED display for output and a piezo sensor, likely for input, connected to the Crickit, which is programmed via the micro bit.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of godmode: A project utilizing Microbit in a practical application
I2C-Controlled OLED Display with External EEPROM and Interactive Pushbuttons
This is a microcontroller-based interactive device featuring a Wemos D1 Mini, an OLED display, external EEPROM, and an I/O expander. It includes user input buttons and status LEDs, with potential MIDI interface capabilities.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Copy of Smarttt: A project utilizing Microbit in a practical application
Bluetooth-Controlled Multi-Function Arduino Nano Gadget
This is a portable, microcontroller-driven interactive device featuring Bluetooth connectivity, visual (RGB LED), auditory (loudspeaker), and haptic (vibration motor) feedback, user input (pushbutton), and a rechargeable power system (TP4056 with Li-ion battery).
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of TILTPCB: A project utilizing Microbit in a practical application
ATmega328P-Based Sensor Hub with OLED Display and LIDAR
This circuit features an Mtiny Uno ATmega328P microcontroller as its central processing unit, interfacing with a variety of sensors and peripherals. It includes a 0.96" OLED display and an MPU6050 accelerometer/gyroscope for user interface and motion sensing, respectively. The circuit also integrates a TF LUNA LIDAR for distance measurement, a DHT11 sensor for temperature and humidity readings, and uses a 9V battery with a 7805 voltage regulator for power management. Communication with a computer for programming and data exchange is facilitated by an Adafruit FTDI Friend module.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications and Use Cases

  • Educational Projects: Teaching programming and electronics to beginners.
  • Prototyping: Rapid development of interactive projects.
  • Wearable Technology: Creating small, portable, and interactive devices.
  • IoT Projects: Building Internet of Things applications with sensors and wireless communication.

Technical Specifications

The Microbit is equipped with a variety of features that make it versatile and user-friendly. Below are its key technical specifications:

Specification Details
Microcontroller ARM Cortex-M0 processor
Operating Voltage 3.3V
Input Voltage (via USB) 5V
Flash Memory 256 KB
RAM 16 KB
Connectivity Bluetooth Low Energy (BLE), USB
Sensors Accelerometer, Magnetometer
Input/Output Pins 25 edge pins (3 for GPIO, PWM, and analog input)
Display 5x5 LED matrix
Buttons 2 programmable buttons
Power Supply Options USB, 3V battery pack

Pin Configuration and Descriptions

The Microbit has 25 edge pins, but the most commonly used pins are listed below:

Pin Name Description
0 GPIO/PWM/ADC General-purpose I/O, Pulse Width Modulation, and Analog Input
1 GPIO/PWM/ADC General-purpose I/O, Pulse Width Modulation, and Analog Input
2 GPIO/PWM/ADC General-purpose I/O, Pulse Width Modulation, and Analog Input
3V Power 3.3V power output
GND Ground Ground connection

Usage Instructions

The Microbit is designed to be beginner-friendly and can be programmed using block-based coding platforms like MakeCode, as well as text-based languages like Python and C++. Below are the steps to use the Microbit in a circuit:

Step 1: Powering the Microbit

  • Connect the Microbit to your computer using a USB cable for power and programming.
  • Alternatively, use a 3V battery pack for portable applications.

Step 2: Programming the Microbit

  • Use the Arduino IDE, MakeCode, or MicroPython to write your code.
  • Save the program as a .hex file and upload it to the Microbit by dragging and dropping it onto the Microbit drive.

Step 3: Connecting Components

  • Use alligator clips or a breakout board to connect external components to the edge pins.
  • Ensure that the components are compatible with the Microbit's voltage and current ratings.

Example Code: Blinking an LED

Below is an example of how to blink an LED connected to Pin 0 using MicroPython:

from microbit import *  # Import Microbit library for basic functionality

while True:
    pin0.write_digital(1)  # Turn on the LED connected to Pin 0
    sleep(1000)            # Wait for 1 second
    pin0.write_digital(0)  # Turn off the LED connected to Pin 0
    sleep(1000)            # Wait for 1 second

Best Practices

  • Avoid short circuits by ensuring proper connections between pins.
  • Use resistors when connecting LEDs to prevent damage to the Microbit.
  • Disconnect the Microbit from power before making hardware changes.

Troubleshooting and FAQs

Common Issues

  1. Microbit Not Detected by Computer

    • Ensure the USB cable is not just a charging cable but supports data transfer.
    • Try connecting to a different USB port or restarting your computer.
  2. Program Not Running

    • Verify that the .hex file was correctly uploaded to the Microbit.
    • Check for syntax errors in your code.
  3. LED Matrix Not Lighting Up

    • Ensure the Microbit is powered correctly.
    • Test with a simple program to verify the LED matrix functionality.
  4. External Components Not Working

    • Check the connections and ensure they are secure.
    • Verify that the components are compatible with the Microbit's voltage and current ratings.

Tips for Troubleshooting

  • Use the Microbit's built-in reset button to restart the program.
  • Test the Microbit with a known working program to isolate hardware issues.
  • Refer to the Microbit's official documentation for advanced debugging techniques.

By following this documentation, users can effectively utilize the Microbit for a wide range of educational and prototyping applications.