Getting Started with Bluetooth BEE

Content:

1.0 Introduction

The Bluetooth BEE BlueBee wireless module is adapts from XBEE design. The pinout is compatible with XBEE which is suitable for all kinds of microcontroller systems which have 3.3V power out. The current version of BTBEE module only can be use to check whether the module is working or not. The Bluetooth BEE modules comes with an on-board antenna, the antenna provides better signal quality. It acts like a transparent serial port, which works with a variety of Bluetooth adapter and Bluetooth phone. Bluetooth BEE is compatible with XBEE starter kit, so you may use SKXBEE-BOARD for BTBEE communication. The BTBEE, bluetooth bee is only a slave module. Communication among two BTBEE will not work.


2.0 Hardware Installation

You may use SKXBEE-BOARD or UC00B to enabling bluetooth wireless control. This section will show hardware installation for both hardware (SKXBEE-BOARD and UIC00B).

2.1 SKXBEE-BOARD Hardware installation

  • Put the BTBEE module on SKXBEE-BOARD.

  • Connect USB B Type to SKXBEE-BOARD and the other end to USB port of computer or laptop. Computer/laptop will detect COM port for the 1st time using. You may check the COM port at hardware device. For this example, the COM port for BTBEE USB Serial port is COM79.

2.2 UC00B Hardware installation

A driver for UC00B need to install before we can use it. The driver can be download from here

  • Using female to female jumper wires, connect pin from XBEE Breakout board to UC00B. The pins used are VCC, GND, Tx and Rx pin. Tx and Rx pins should be cross connected between them. In other words, Tx pin of BTBEE should be connected to Rx pin of UC00B and Rx pin of BTBEE should be connected to Tx pin of UC00B.

  • Ensure 3.3V is select on UC00B.

  • Connect USB of UC00B into USB port of computer/laptop. Wait a minute for driver devices detect the COM port. The COM port should be different with SKXBEE-BOARD COM port.


3.0 Test your BTBEE using AT mode

BTBEE has a small switch used for AT command and communication. For this current version, AT mode is only can be use to test whether the BTBEE module is able to communicate or not. Only 38400bps baudrate can be used. To test the BTBEE:

  • Set a small switch on BTBEE module to AT mode.

  • Setup hardware installation refer to section 2.1 or 2.2
  • Now, open hyperterminal software. Setting hyperterminal using 38400 baudrate. Only 38400 baudrate can be used to test the your BTBEE.

 

  • At properties, click setting and then ASCII Setup. Tick “Send line ends with line feeds” and “Echo typed characters locally”

  • To test whether the BTBEE is working or not, send AT to BTBEE module and hyperterminal will receive OK. You may try once again if error is received.


4.0 Communication between computers

Now, we go to BTBEE communication. Bear in mind that the current version of BTBEE is only a slave module and communication among two BTBEE is not work. It can be communicate with other host like bluetooth handphone, SKKCA and other bluetooth devices. For the current version of BTBEE, 9600bps is only the baud rate to use in communication mode. Below is example communication between BTBEE and bluetooth dongle. For this example, we will using 2 computers. Computer A as a host to BTBEE and Computer B as a host to bluetooth dongle. BTBEE is used SKXBEE-BOARD or UC00B to communicate with computer A and bluetooth dongle will use BlueSoleil software to communicate with computer B.

 4.1 Computer A Setup

You need SKXBEE-BOARD or UC00B to setup computer A.

  • Set a small switch on BTBEE module is set to communication as shown at figure below.

  • Setup hardware installation refer to section 2.1 or 2.2
  • Open and setup hyperterminal for  computer A. For this example, port setting for computer A is COM 79 and the baudrate is 9600. It is different with BTBEE AT mode.

4.2 Computer B Setup

You need Bluetooth dongle and BlueSoleil software to communicate with computer B. First of all, install you BlueSoleil  software into your computer or laptop. The BlueSoleil software can be downloaded from here

  • Connect bluetooth dongle into USB port.
  • Turn on bluetooth with display classic view and following figure should appears. Bluetooth icon can be found at icon and notification taskbar (right and bottom pf computer).

  • Press “F5” to start searching for Bluetooth device near by. If BTBEE is working properly, it will appear as a Bluetooth node in BlueSoleil window as shown in following figure.

  • Right click on Bluetooth_V3 icon and click pair device. The software will appear a window to Enter Bluetooth Passkey. Enter the passkey and click OK. The passkey should be “1234″.

  • Now, double click on the Bluetooth_V3 icon (BTBEE), Bluesoleil will start inquiring for available service or profile offered by BTBEE. After some time (around 1 to 3 seconds) Bluetooth Serial Port Service should be highlighted as shown in below figure.

  • Double click on Bluetooth Serial Port Service. If everything is working perfectly, a window will pop up showing the virtual COM port which is connected to computer B. In this case, a COM51 has been created.

  • BlueSoleil will try to create Bluetooth Wireless link with BTBEE and offer serial port service.

  • LED on BTBEE (computer A) will light ON if the Bluetooth Wireless link success to create.

  • Open and setup hyperterminal for computer B. For this example port setting for bluetooth is COM51 and the baudrate is 9600. It is different with BTBEE AT mode.

4.3 Result

  • The data sent from computer A will be received by computer B and data sent from computer B will be received by computer A.

Computer A (BTBEE)

Computer B (Bluetooth Dongle)


5.0 Communication between microcontroller and computer

Previous section we have learn computer is used as a host to BTBEE to communicate with other computer. This section, we will continue with microcontroller which is used as a host to BTBEE to communicate with other bluetooth device (bluetooth dongle). Figure below shown example BTBEE communication between microcontroller and computer.

5.1 Example Sample program

Sample program for this example is provided. You may download the sample program at the attachments. This example is to show communication between BTBEE and USB bluetooth dongle. The PC can be used to control a 7 segment connected to the microcontroller. PC will send data 0-9 through bluetooth wireless link to microcontroller and microcontroller will display the data at 7 segment. Below is example schematic and hardware for microcontroller connection.

Example schematic of BTBEE and microcontroller

Example of BTBEE and microcontroller connection

Besides using SKXBEE board, you may use XBEE Breakout board but extra circuit needed to regulate voltage to 3.3V for BTBEE module and UART pin. To get started with this communication you may follow schematic above for microcontroller connection. For computer connection with Bluetooth dongle, you may refer section 4.2. Don’t forget to setting your hyperterminal. After all hardware setup is complete, you may start test the communication.

Switch on your SK40C power supply. LCD will display “BTBEE&BLUETOOTH” at the 1st line and “Type OK” at the 2nd line.  So you need to type “OK” on hyperterminal. This characters will send to microcontroller and once the characters is received, microcontroller will send the massage on hyperterminal. The massages need you to press any number from 0-9. The number pressed will send to microcontroller to display on 7 segment and LCD. When the number is received, microcontroller will send “OK” to hyperterminal. All the data is sent and received through bluetooth wireless link.

5.2 Result

7 was sent to micrcontroller


7 is received and display on 7-Segment

6.0 BTBEE Pinout

* if you want faster response from the author, please do post your inquiry/feedback in our technical forum as we seldom check the comments section in tutorial site 😉

Attachments:

  1. BTBEE Sample Program.zip

Buy

, , , ,

Related Post

Getting Started with 3A Motor Driver Shield and Arduino Uno

How to Upload Arduino Codes to Arduino Yun Through WiFi

Introducing 30A Dual Channel DC Motor Driver with Smart Features – SmartDriveDuo-30

How to Make your Line Following Robot Faster?

24 thoughts on “Getting Started with Bluetooth BEE

  1. hye admin, i have a project where i need to communicate between phone and microcontroller. so bluetooth as the communication medium. As usual when we connect the phone bluetooth, we need to do pairing. my question is, does we need to pair between phone and the bluetooth module. if yes, how?

  2. I’ve never do that but the answer should be yes. Try search for the related commands for your bluetooth module. Normally the module need to inquire for devices nearby, select the desired device and the phone side will need to key in the password of your module.

  3. I have successful follow this tutorial and create communication between laptop and bluetooth module using Bluesoleil software. But when I tried to do pairing between my phone and this bluetooth module, the LINK LED is not turning ON, is it I need a software like Bluesoleil in my phone too? My phone is Nokia E72.

  4. hi may i know what is the bluetooth module version for this? it is 1.1 or 2.1?? do u have any bluetooth module that is buetooth version 1.1? i need a bluetooth module version 1.1.

  5. I am using Bluetooth BEE, Can I communicate between the PC and the MIcrocontroller only using bluetooth BEE(i.e without using SKXBEE). if yes how? I am unable to find this bluetooth device through any Mobile Phone. Can i send data from my mobile and receive it on the microcontroller using Bluethooth BEE?

  6. Hi, I plan to use smartphone (Android App) to communicate with Arduino Mega 2560-R3 (Cytron BlueBee). Is it possible to establish the Bluetooth communication?! How to make pairing and configure smartphone’s Bluetooth baudrate?!

    Thanks.

  7. Nop, once you power it up, it can be discover. But because the pin and 3.3V, SKXBee provide easy to start platform.

  8. Is it possible to use EXTERNAL ANTENNA for either xbee or Bluetooth bee to communicate to either computer or phone?

  9. hi..

    have you ever implement android to bluetooth bee communication? if yes wnat to ask one question..

    is it possible to send a file or image from android phone to bluetooth bee without using any android application?. i mean sending a file(for example jpeg,pdf,mp3 etc) like one android phone to other android phone but not using any application.

  10. Hi, can I use bluebee to setup a piconet network? For example one master and two slave communication. The master will be the PC and the two slave will be the microcontroller. Thanks.

  11. hi,i want to know it is possible, if i want to transfer data from one microcontroller to another microcontroller using bluebee ?

  12. Yes, we have been using Adroind phone for Bluetooth communication with BlueBee. But it only support SPP(Serial Port Profile). You can transfer data using UART (like a COM port on computer). But to transfer file, there are much more work to do if you plan to use SPP only. So I would not recommend it.

  13. For the time being, we are using a Bluetooth host (computer, smart phone) to create connection and further to communicate data. We have yet to try using two BlueBee.

  14. I cant see the sample program in attachment,every-time i press it bring me back to cytron homepage

Leave a Reply

Your email address will not be published. Required fields are marked *