Bluetooth Shield V2.0

From Wiki 来自痴汉的爱
Jump to: navigation, search


Bluetooth Shiled v2.JPG


Contents

Introduction

The Bluetooth Shield integrates a Serial Bluetooth module. It can be easily used with Arduino/Seeedstudio for transparent wireless serial communication. 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). The shield also has two Grove connectors (one is Digital, the other is Analog) for you to install Grove modules.





Features

  • Input Voltage: 3.3V
  • Baudrate: 9600, 19200, 38400, 57600, 115200, 230400, 460800
  • Seeeduino/Arduino compatible
  • Up to10m communication distance in house without obstacle
  • UART interface (TTL) with programmable baud rate
  • Default Baud rate: 9600, Data bits: 8, Stop bit: 1, Parity: No parity
  • Default PINCODE:”1234”
  • A full set of configuration commands
  • On board PCB Antenna




Interface function

Bluetooth Shield V2.0 K.jpg

Pad Type Description
BT_IO IO Port of Bluetooth module can be control: read, write.
BT_RX UART Data input of Bluetooth module.
BT_TX UART Data output Bluetooth module.
Two Grove connectors One is Digital (D8 and D9), the other is I2C/Analog (A4 and A5).




Board Revisions and Changes

Revision 2.1

  1. This version modify some issues for manufacturing.Nothing changes in circuits.


Demonstration 1:Two Bluetooth Shield Connect

This demo will show you how to connect two Bluetooth shield.

You need two piece of Seeeduino V3.0, One Bluetooth Shield as Master while the other as Slave.


Hardware Installation

as folowing:

Bluetooth_shield_demo_image0.png

make sure the right connection of the jumpers

Bluetooth_shield_demo_image4.jpg

Download Code and Upload

  1. You can download the code in github, click here,then extract it to libraries folder of Arduino.
  2. Open Arduino IDE, open File -> Examples -> Bluetooth_Shield_V2_Demo_Code -> Master_Button, then you can open the code of Master
  3. Open Arduino IDE, open File -> Examples -> Bluetooth_Shield_V2_Demo_Code -> Slave_led, then you can open the code of Slave
  4. Click Upload to Upload the code, if you have any problem about how to start Arduino, please click here for some help.


Bluetooth ide 1.jpg


Check The Result

  1. After finish Uploading the code to both Master and Slave, reset the two devices meanwhile
  2. You can see the led blink, indicate that devices was initializing and connecting.
  3. After about servel seconds, led on, indicate that Master and Slave had connected.


Note: If the phenomenon is not observed above, try unplugging the power and re-plug in again.



Demonstration 2:Connect to Smart Phone

This demo will show you how to connect Bluetooth Shield to a Smart Phone.

We need a Seeeduino V3.0, a Smart Phone that with Bluetooth function.

Via a Bluetooth SPP App

Hardware Installation

Bluetooth_shield_demo_image1.png

Download Code and Upload

  1. You can download the code in github, click here,then extract it to libraries folder of Arduino.
  2. Open Arduino IDE, File -> Examples -> Bluetooth_Shield_V2_Demo_Code -> Slave_Temperature, then you can open the code
  3. Click Upload to Upload the code, if you have any problem about how to start Arduino, please click here for some help.


Bluetooth Shield Demo2.jpg



Download a SSP App

Here we us an Ardriod Phone, Mine is a Xiaomi 2A, open Google Play, search bluetooth spp, you can find many results.

Bluetooth Shield Find spp.png


Most of this app are useful, just choose one and have try.



Get Temperature

After installing an SPP app, try connecting it to SeeedBTSlave, pin code is: "0000"


Bluetooth Shield App 1.png


When connect is ok, send 't' to SeeedBTSlave, and you can get the temperature now:


Bluetooth Shield get temp.png





Resources

Personal tools
Namespaces

Variants
Actions
Bazaar
Navigation
Collections
Toolbox