Go Down

Topic: SOLVED: Seeedstudio BT Shield (Read 22984 times) previous topic - next topic

PaulS

Quote
If anyone knows a better way to trap the numbers and A-F only; please let me know.


Code: [Select]
    if ((recvChar >= '0' && recvChar <= '9') || (recvChar >= 'A' && recvChar <= 'F"))  // no comment needed

WinstonP

That's not really a better way; just a little more verbose.
Maybe I'll just write a hex trapping function.

twychopen

I sent an email to the Arduino Commander people. Got the email from Google Play. They said that UNO R3 does not yet work for the Arduino Commander :/ They have to get the board and work the bugs out :(

WinstonP

Hopefully there's not that many bugs in there. I haven't been able to get any of the "Google Play" Bluetooth SPP apps to work.
Only what I've listed above about the Arduino being able to detect other Bluetooth devices. But I'm still working on it.

ccriss

I have similar problem using the bluetooth shield, some phone are not able to see the Arduino while other can...
The code to initialize the BT connection it's just the same as you are using and I keep the baud rate to 38400...

This is an example with video that explain how it works using a Samsung 9003, while if I try to search Arduino and the related BT shiel using a Samsung Next I cannot find the device:-(

This is the link showing how it works on Samsung 9003, what is wrong? Any suggestion?
http://eco-mobilita.blogspot.it/2012/05/interface-between-arduino-and-android.html

This is the BT setup source I use
  blueToothSerial.begin(38400); //Set BluetoothBee BaudRate to default baud rate 38400
  blueToothSerial.print("\r\n+STWMOD=0\r\n"); //set the bluetooth work in slave mode
  blueToothSerial.print("\r\n+STNA=E-Scooter\r\n"); //set the bluetooth name as "SeeedBTSlave"
  blueToothSerial.print("\r\n+STOAUT=1\r\n"); // Permit Paired device to connect me
  blueToothSerial.print("\r\n+STAUTO=0\r\n"); // Auto-connection should be forbidden here
  delay(2000); // This delay is required.
  blueToothSerial.print("\r\n+INQ=1\r\n"); //make the slave bluetooth inquirable
  Serial.println("The slave bluetooth is inquirable!");
  delay(2000); // This delay is required.
  blueToothSerial.flush();

ale11182

Also I've the same problem, My phone is samsung galaxy ace with android 2.3.3

Jake5k

#36
Jan 22, 2013, 10:38 am Last Edit: Jan 22, 2013, 10:40 am by Jake5k Reason: 1
I am having the exact same problem. Using GS3 to connect to UNO R3 with Seeeduino Bluetooth shield. I tried the code listed at the begining of this thread and I was able to pair with the device but it will not connect in ArduinoCommander. Please keep us posted as to what you hear back from the ArduinoCommander people. Thanks.

x-out

total newb here.

i've tried several sketches for the BT shield and i can get "bluetooth inquirable", but i'm not getting the blinking red/green lights. i only get the standard green blinking light.

i've tried different pin locations and different sketches, but have yet to get the red/green blinking lights.

i'm using an uno r3 with the seeedstudio BT shield. any help would be appreciated as i'm about to go crazy.

25solutions

I've the same problem. Jumpers and TX/RX pin are connected in the correct way but only the green led is blinking...

Replacing any instances of "NewSoftSerial" with "SoftwareSerial" should work with the SeeedStudio Bluetooth demo code. It worked fine for me but only after I downloaded Arduino Version 1.0 (deleted Ver 1.0.5). It was only then (after hours of messing with 1.0.5) that it finally uploaded to my Uno. After that, blinking red and green status lights and paired with my Samsung Galaxy SIII just fine. Using Bluetooth SPP on the GS3 and everythings hunky dory. Good Luck.

Noah-

This is marked as solved, but it doesn't seem like anyone solved anything!  Am I missing something?  What is the solution?

blurr222

glad to know there's more people out there that are sharing my frustrations  :P however I've been trying to connect my arduino and the seedstudio shield to a wiimote instead of a phone and i was wondering if any of you have done this or may be of assistance ....Thanks

momo0002

i am cant find the bluetooth shiled via mobile and i tried my best to make the D2 blink but  nothing works can you please tell how you fixed that prob!?

momo0002


i cant find the bluetooth SLD63030P via mobile and i tried my best to make the D2 blink (just D1 blink green)  but  nothing works can you please tell how you fixed that prob!?

magicbycalvin

Hey,

So I've got the same problems as a few people. I have used numerous sketches that have worked for others, I have checked and double checked my jumper connections, and have tried having the switch in both directions. When I upload the the sketch the green D1 LED will flash. I do not however have the red D2 and green D1 LEDs flashing. Attached are both the sketch I am using and the photos of the bluetooth shield connection with my Arduino UNO. Any help would be greatly appreciated!

Code: [Select]
/* Upload this sketch into Seeeduino and press reset*/

#include <SoftwareSerial.h>   //Software Serial Port
#define RxD 6
#define TxD 7

#define DEBUG_ENABLED  1

SoftwareSerial blueToothSerial(RxD,TxD);

void setup()
{
 Serial.begin(9600);
 pinMode(RxD, INPUT);
 pinMode(TxD, OUTPUT);
 setupBlueToothConnection();

}

void loop()
{
 char recvChar;
 while(1){
   if(blueToothSerial.available()){//check if there's any data sent from the remote bluetooth shield
     recvChar = blueToothSerial.read();
     Serial.print(recvChar);
   }
   if(Serial.available()){//check if there's any data sent from the local serial terminal, you can add the other applications here
     recvChar  = Serial.read();
     blueToothSerial.print(recvChar);
   }
 }
}

void setupBlueToothConnection()
{
 blueToothSerial.begin(38400); //Set BluetoothBee BaudRate to default baud rate 38400
 blueToothSerial.print("\r\n+STWMOD=0\r\n"); //set the bluetooth work in slave mode
 blueToothSerial.print("\r\n+STNA=SeeedBTSlave\r\n"); //set the bluetooth name as "SeeedBTSlave"
 blueToothSerial.print("\r\n+STOAUT=1\r\n"); // Permit Paired device to connect me
 blueToothSerial.print("\r\n+STAUTO=0\r\n"); // Auto-connection should be forbidden here
 delay(2000); // This delay is required.
 blueToothSerial.print("\r\n+INQ=1\r\n"); //make the slave bluetooth inquirable
 Serial.println("The slave bluetooth is inquirable!");
 delay(2000); // This delay is required.
 blueToothSerial.flush();
}

Go Up