Quantcast
Channel: SparkFun Tutorials
Viewing all articles
Browse latest Browse all 1123

micro:bit Breakout Board Hookup Guide

$
0
0

micro:bit Breakout Board Hookup Guide a learn.sparkfun.com tutorial

Available online at: http://sfe.io/t655

Introduction

The micro:bit, by itself, offers a vast array of possibilities and potential projects, considering it includes an onboard temperature sensor, accelerometer, compass, LED array, Bluetooth radio, and more. However, when you’re ready to branch out beyond those initial capabilities, like connecting to an SD card for logging, you’ll need to break out some of the pins on the micro:bit’s card edge connector. For that, we’ve got you covered with the micro:bit Breakout Board.

SparkFun micro:bit Breakout (with Headers)

BOB-13989
5.49

There’s also a version without headers, if you care to solder your own or use wires instead.

Required Materials

To follow along with this project tutorial, you will need the following materials:

Suggested Reading

If you aren’t familiar with the following concepts, we recommend checking out these tutorials before continuing.

How to Solder: Through-Hole Soldering

This tutorial covers everything you need to know about through-hole soldering.

How to Use a Breadboard

Welcome to the wonderful world of breadboards. Here we will learn what a breadboard is and how to use one to build your very first circuit.

Light-Emitting Diodes (LEDs)

Learn the basics about LEDs as well as some more advanced topics to help you calculate requirements for projects containing many LEDs.

Getting Started With the micro:bit

The micro:bit is a compact, powerful programming tool that requires no software installation. Read on to learn how to use it YOUR way!

Hardware Overview

The micro:bit Breakout board allows you to utilize all of the pins on the micro:bit and opens up some previously inaccessible communication ports, like I2C and SPI.

micro:Bit breakout

Top-down diagram of the micro:bit breakout board

Pins

Most of the micro:bit’s pins can be configured for one or more functions.

PinFunction 1Function 2Description
GNDGround
GNDGround
3V33.3V OUT
0Analog InConnected to large pin 0
1Analog InConnected to large pin 1
2Analog InConnected to large pin 2
3Analog InLED Column 1Controls part of LED array
4Analog InLED Column 2Controls part of LED array
5Button AConnected to Button A on micro:bit
6LED Column 9Controls part of LED array
7LED Column 8Controls part of LED array
8Open GPIO pin
9LED Column 7Controls part of LED array
10Analog InLED Column 3Controls part of LED array
11Button BConnected to Button B on micro:bit
12Open GPIO pin
13SCKGPIO or SPI clock
14MISOGPIO or SPI MISO
15MOSIGPIO or SPI MOSI
16Open GPIO pin
19SCLGPIO or I2 clock
20SDAGPIO or I2 data

Power Pin

The pin listed as 3V3 is output only. When you plug in a USB cable or battery pack, 3-3.3V will be avialable on that pin to use. If you try to apply 3.3V to the pin, the board will not turn on.

LCn Pins

The pins labeled with LCn (e.g. LC1, LC8) refer to pins that are used to control the LED array on the front of the micro:bit. You can use them as GPIO, but you’ll often get weird patterns to show up on the LEDs, or when you write to the LED array, you may see unexpected behavior. If you use them as GPIO, we recommend disabling the LED display.

Hardware Assembly

Attach Headers

If you have the version of the breakout board without headers, solder some breakaway headers to the board. You can also solder wire directly to the breakout.

Solder headers to the micro:bit Breakout board

Build Example Circuit

Note: The micro:bit must be facing up in order to make electrical connections to the pins.

To begin, let’s light up an RGB LED. Attach the micro:bit to the breakout board, place the breakout board onto a breadboard, and connect an RGB LED through 330 Ω resistors. Use the image below to aid you in wire up the circuit.

Remember, LEDs are polarized parts and can only work properly in one orientation. The longest leg of the LED goes where the black GND wire is in the circuit.

micro:bit breakout board hookup Fritzing

Having a hard time seeing the circuit? Click on the wiring diagram for a closer look.

Example: Cycling Colors on an RGB LED

You can download the code from the emulator, or check out the project’s page here:


Copy the .hex file to your micro:bit drive, and you should see a fancy array of colors appear on your LED!

micro:bit cycling colors

Resources and Going Further

With the micro:bit breakout board, you can start introducing more sensors, lights, and motors into your project! For more information, check out these resources:

Need some inspiration for your next project? Check out some of these related tutorials:

HTU21D Humidity Sensor Hookup Guide

The HTU21D humidity sensor is an easy to use, digital, low-cost humidity sensor.

TSL2561 Luminosity Sensor Hookup Guide

The TSL2561 is an light sensor that's very inexpensive for the accuracy it provides. Here's how to use it.

Logomatic Hookup Guide

Basic introduction and hook-up guide for the SparkFun Logomatic.

HMC6343 3-axis Compass Hookup Guide

How to hook the HMC6343 -- a high-end, tilt-compensated compass module -- up to an Arduino. Never get lost again!

Using AT&T's M2X With the CC3000

A set of tutorials and examples to show how to connect an Arduino and CC3000 to AT&T's M2X data streams. We show how to post, fetch, and delete data. The final lesson is controlling an LED from an M2X stream.

LSM303C 6DoF Hookup Guide

A basic guide to get started with the LSM303C 6 Degrees of Freedom Breakout.

Blynk Board Washer/Dryer Alarm

How to configure the Blynk Board and app to notify you when your washer or dryer is done shaking.

Simultaneous RFID Tag Reader Hookup Guide

A basic guide to getting started with the RFID Tag Reader breakout and how to read and write multiple RFID tags over multiple feet!

learn.sparkfun.com |CC BY-SA 3.0 | SparkFun Electronics | Niwot, Colorado


Viewing all articles
Browse latest Browse all 1123

Trending Articles