Using the BlueSMiRF

Pages
Contributors: Jimb0
Favorited Favorite 7

Introduction

Are you ready to hit the airwaves and add Bluetooth to your project? With the BlueSMiRF and Bluetooth Mate line of products, you’re much closer than you think to replacing those pesky, tangled RX and TX wires with 2.4GHz wireless communication.

SparkFun Bluetooth Modem - BlueSMiRF Silver

SparkFun Bluetooth Modem - BlueSMiRF Silver

WRL-12577
$24.95
11
SparkFun Bluetooth Modem - BlueSMiRF Gold

SparkFun Bluetooth Modem - BlueSMiRF Gold

WRL-12582
$34.95
7
SparkFun Bluetooth Mate Silver

SparkFun Bluetooth Mate Silver

WRL-12576
$24.95
10
SparkFun Bluetooth Mate Gold

SparkFun Bluetooth Mate Gold

WRL-12580
$34.95
2

Each of these modules has a Bluetooth transceiver on it, meaning they’re capable of both sending and receiving data. They’re perfect for directly replacing a wired asynchronous serial interface. Free of wires, your devices can be up to 100 meters away from each other. On top of those benefits, these modules are also very easy to use. There’s no messing with Bluetooth protocols or the stack, just send data over a serial interface, and it’s piped through to whatever Bluetooth module to which it’s connected.

In this tutorial we’ll cover everything you need to know about these Bluetooth modules. We’ll begin with an overview of the hardware, and the differences between each device. Then we’ll get into hardware hookup and example Arduino code.

Materials and Tools

For starters, you’ll need one of the four Bluetooth modems we’ll be covering in this tutorial: the Bluetooth Mate Silver, BlueSMiRF Silver, Bluetooth Mate Gold, or BlueSMiRF Gold. The modules all function in the same way, so this tutorial is applicable to all four.

SparkFun Bluetooth Modem - BlueSMiRF Silver

SparkFun Bluetooth Modem - BlueSMiRF Silver

WRL-12577
$24.95
11
SparkFun Bluetooth Modem - BlueSMiRF Gold

SparkFun Bluetooth Modem - BlueSMiRF Gold

WRL-12582
$34.95
7
SparkFun Bluetooth Mate Silver

SparkFun Bluetooth Mate Silver

WRL-12576
$24.95
10
SparkFun Bluetooth Mate Gold

SparkFun Bluetooth Mate Gold

WRL-12580
$34.95
2

Wireless communication won’t do you any good unless you have two devices that can talk to each other! These Bluetooth modems can talk to any other Bluetooth device that supports SPP. That (long) list includes other BlueSMiRFs or Bluetooth Mates, or Bluetooth modules embedded into your computer, or even your smartphone. If your computer doesn’t already have a Bluetooth module in it, you can plug a Bluetooth USB Module into an available USB slot.

Bluetooth USB Module Mini

Bluetooth USB Module Mini

WRL-09434
$10.95
2

We’ll also need something to talk to the Bluetooth modem on the serial end. This will usually be a microcontroller of some sort. In this tutorial we’ll be using an Arduino.

SparkFun RedBoard - Programmed with Arduino

SparkFun RedBoard - Programmed with Arduino

DEV-13975
$19.95
35

Finally, in order to interface to the Bluetooth modem, you’ll need to solder headers or wires to it. You will need a soldering iron, solder, and general soldering accessories. This topic is covered further in the Hardware Hookup section.

Solder Lead Free - 100-gram Spool

Solder Lead Free - 100-gram Spool

TOL-09325
$7.95
7
Weller WLC100 Soldering Station

Weller WLC100 Soldering Station

TOL-14228
$44.95

Suggested Reading

First and foremost, check out the Bluetooth technology tutorial if you want to learn some of the general concepts behind this nifty wireless standard.

Bluetooth Basics

August 26, 2013

An overview of the Bluetooth wireless technology.

It’d also be good if you’re familiar with these concepts:

How to Solder: Through-Hole Soldering

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

Serial Communication

Asynchronous serial communication concepts: packets, signal levels, baud rates, UARTs and more!

What is an Arduino?

What is this 'Arduino' thing anyway?

Serial Terminal Basics

This tutorial will show you how to communicate with your serial devices using a variety of terminal emulator applications.