Bluetooth Shield Problem


hello,

i using arduino uno r3, bluetooth shield v1.2 elecfreaks



i using code start communication between arduino , other bluetooth devices e.g. android devices

code: [select]
#include <softwareserial.h>

#include <timerone.h>

#define rxpin 2
#define txpin 3

softwareserial myserial(rxpin, txpin);
 
void callback()
{
   serial.println("------->  callback send at");
   myserial.print("at\r\n");
}
 
void setup()
{
   // define pin modes tx, rx pins:
   pinmode(rxpin, input);
   pinmode(txpin, output);
   myserial.begin(9600);
   serial.begin(9600);

}
 
void loop()
{
  int = 0;
  char somechar[32] = {0};
 
  if(serial.available()) {
    do{
      somechar[i++] = serial.read();
     
      delay(3);                 
 
    }while (serial.available() > 0);
 
    myserial.println(somechar);
    serial.println(somechar);
  }
 
  while(myserial.available())
      serial.print((char)myserial.read());   
}



however not find bluetooth shield other device including pcs

any ?

there small semantic problem here. code not used start communication, used communicate. communication initiated device @ other end, , pc not such choice that, easier use smartphone or tablet. need go through pairing process first, , make connection app.

arduino not involved making connection. no more provide power.

you should see flashing led on board, perhaps shown, or adjacent it. indicates ready connect , either go solid or go out when connection made.

you might find useful

homepages.ihug.com.au/~npyner/arduino/bt_2_way.ino

and background here

homepages.ihug.com.au/~npyner/arduino/guide_2bt.pdf


Arduino Forum > Using Arduino > Project Guidance > Bluetooth Shield Problem


arduino

Comments