Seeedstudio Bluetooth Bee connection

Hi,

I buy this Bluetooth Bee: http://www.robotshop.com/ca/bluetooth-bee-seeedstudio.html
I buy this Bluetooth USB Module Mini: http://www.sparkfun.com/products/9434
And I buy this XBee Explorer Regulated: http://www.sparkfun.com/products/9132

This is my connection.

I use this Arduino code: http://garden.seeedstudio.com/index.php?title=Bluetooth_Bee

[code]#include <NewSoftSerial.h> //Software Serial Port
#define RxD 11
#define TxD 12

NewSoftSerial blueToothSerial(RxD,TxD);

void setup()
{
Serial.begin(9600); //Serial port for debugging, Comment this line if not required
pinMode(RxD, INPUT);
pinMode(TxD, OUTPUT);
setupBlueToothConnection();
}

void loop()
{
if(blueToothSerial.read() == ‘a’)
{
blueToothSerial.println(“You are connected to Bluetooth Bee”);
//You can write you BT communication logic here
}
}

void setupBlueToothConnection()
{
Serial.print(“Setting up Bluetooth link”); //For debugging, Comment this line if not required
blueToothSerial.begin(38400); //Set BluetoothBee BaudRate to default baud rate 38400
delay(1000);
sendBlueToothCommand("\r\n+STWMOD=0\r\n");
sendBlueToothCommand("\r\n+STNA=modem\r\n");
sendBlueToothCommand("\r\n+STAUTO=0\r\n");
sendBlueToothCommand("\r\n+STOAUT=1\r\n");
sendBlueToothCommand("\r\n+STPIN=0000\r\n");
delay(2000); // This delay is required.
blueToothSerial.print("\r\n+INQ=1\r\n");
delay(2000); // This delay is required.
Serial.print(“Setup complete”);
}

void sendBlueToothCommand(char command[])
{
char a;
blueToothSerial.print(command);
Serial.print(command); //For debugging, Comment this line if not required
delay(3000);

while(blueToothSerial.available())              //For debugging, Comment this line if not required  
{                                               //For debugging, Comment this line if not required   
   Serial.print(char(blueToothSerial.read()));  //For debugging, Comment this line if not required  
}                                               //For debugging, Comment this line if not required   

}[/code]

My computer not find my Bluetooth Bee here. :frowning:

I need help.
Thank you

The bluetooth bee takes a while to initialize (~10seconds), you must wait until the red and green lights flash alternatively every 1 second, that indicates it is now ‘discoverable’ (in inquiry mode). At this point if you computer can’t detect the device check:

  1. Make sure the Bluetooth Support Service (Windows Service) is currently running. If you installed bluetooth software such as BlueSoleil, this service may be disabled). See:

zornsoftware.talsit.info/blog/bl … panel.html

  1. Confirm that your computer can detect any other bluetooth device (e.g. your phone).

  2. Try swapping the wiring for DIN and DOUT. I.e. put DIN to Pin 12 and DOUT to pin 11.

Thank you faxedhead for your help! :smiley:

I put DOUT to pin 11.

And if I put DIN to Pin 12 not work (because the DIN diode???). :frowning:

But if I put RX Bluetooth direct to Pin 12 Arduino it work. :slight_smile:

The XBee Explorer Regulated not work on 3.3V, it work just on 5V???