Arduino Bluetooth shield

From Geeetech Wiki
Revision as of 06:37, 4 January 2013 by Admin (talk | contribs) (Created page with "==introduction== The Bluetooth Shield integrates a Serial Bluetooth module. It can be easily used with Arduino for transparent wireless serial connection setup. You can cho...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

introduction

The Bluetooth Shield integrates a Serial Bluetooth module. It can be easily used with Arduino

for transparent wireless serial connection setup. You can choose two pins from Arduino D0 to D7

as Software Serial Ports to communicate with Bluetooth Shield (D0 and D1 is Hardware Serial

Port).

Note: The Shield may not be compatible with some Bluetooth capable devices, like Apple devices

with special profile on Bluetooth function

Specifications:

  • Arduino compatible
  • Up to10m communication distance in house without obstacle
  • UART interface (TTL) with programmable baud rate (SPP firmware installed)
  • Bluetooth protocol: Bluetooth Specification v2.1 + EDR
  • USB protocol: USB v1.1/2.0
  • Frequency: 2.4GHz ISM band
  • Modulation: GFSK (Gaussian Frequency
  • Default Baud rate: 9600, Data bits: 8, Stop bit: 1, Parity: No parity
  • A full set of configuration commands
  • On board PCB Antenna

Hardware Specification

Hardware Diagram

S1:Function button, This button is multi-function button include the function memory clearing (short press) which means delete the address of the bluetooth module connected last time and the function restoring the default configuration.

S2: The switch S2 is for hardware/software selection for master or slave mode. When the switch S2 is toggled to "HW" side indicate that you can set the module to either master or slave mode by switch S3. When the switch S2 is toggled to "SW" side means the master/slave mode is only decided by AT command "AT+role<0/1>"

S3: The switch S3 is for master/slave selection only if the S2 is toggled to "HW" side.

Selectable UART connection

State Instructions LED

Communication between two Bluetooth Shield

Hardware needed

  • Arduino UNO processor x2
  • Bluetooth Shield x2

Steps

  1. Stack the Bluetooth shield to the Arduino Uno.
  2. Program a simple code as blink without delay for your Arduino UNO first to avoid the serial communication conflict.
  3. Set the jumpers to connect the WIFI_TX and WIFI_RX pins as the photo above to enable PC com port to send AT command to Bluetooth shield directly as the photo below
  4. Open the com port of your Arduino UNO with the setting of baudrate 9600. and enter the "AT" to test the communication between WIFI shield and the USB port.
  5. Set the switch "S1" on both shield to "HW" side, and set the switch "S2" to "SLAVE" on one shield and another to "MASTER" side.
  6. The State LED always being on indicate that the two shield are connected.