Skip to content

Latest commit

 

History

History
26 lines (14 loc) · 2.13 KB

bluetooth.md

File metadata and controls

26 lines (14 loc) · 2.13 KB

#Hooking up your Bluetooth device

This guide walks you through the steps to hook up a Bluetooth device to your Arduino! We recommend the SparkFun Bluetooth Mate Silver for this tutorial.

####Important Note:

Some Arduino devices, such as the Uno, only have a single Serial line to communicate over pins 0 and 1 as well as via USB to your computer. If you are using one of these devices, you will either need to program your Arduino before you hook up pins 0 and 1 to the Bluetooth device, or you will have to disconnect these wires each time you upload a sketch to your Arduino.

  1. Connect the power and ground rails on the breadboard to the 5V and GND pins, respectively, on the Arduino. Using color coded wires (red and black) will make it easy to keep track of the power connections.

Project Start

  1. Plug your bluetooth device on the breadboard and connect the VCC and GND pins to the power and ground rails, respectively, on the breadboard.

VCC and ground

  1. Connect the TX-0 pin on the bluetooth device to the RX pin on the Arduino. Similarly, connect the RX-1 pin on the bluetooth device to the TX pin on the Arduino.

Send and Receive

  • Notice the yellow wire in the image goes from the transmit pin of the bluetooth device to the receive pin of the Arduino and vice versa for the orange wire. This step is critical to establish serial communication between the bluetooth device and the Arduino, allowing the messages transmitted from one device to be received by the other.

Send and Receive Send and Receive

That's it! You can now send and receive Bluetooth messages automatically through StandardFirmata or by calling Serial.begin( 115200 ); in your own (unrelated) sketches!