Bluetooth Shield Problem

Hello,

I am using Arduino UNO R3, Bluetooth Shield V1.2 By Elecfreaks

I am using this code to start a communication between Arduino and Other Bluetooth devices e.g. Android Devices

#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 for tx, rx pins:
   pinMode(rxPin, INPUT);
   pinMode(txPin, OUTPUT);
   mySerial.begin(9600);
   Serial.begin(9600);

}
 
void loop()
{
  int i = 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 I could not find the Bluetooth Shield by any other device including PCs

any help ?

There is a small semantic problem here. The code is not used to start communication, it is used to communicate. Communication is initiated by the device at the other end, and a PC is not such a good choice for that, it is usually easier to use a smartphone or tablet. You need to go through the pairing process first, and then make the connection with an app.

Arduino is not involved with making the connection. It does no more than just provide the power.

You should see a flashing LED on the board, perhaps that shown, or adjacent to it. This indicates it is ready to connect and will either go solid or go out when connection is made.

You might find this useful

homepages.ihug.com.au/~npyner/Arduino/BT_2_WAY.ino

and some background here

homepages.ihug.com.au/~npyner/Arduino/GUIDE_2BT.pdf