I am having trouble communicating with my Stackable Bluetooth Shield V2.1 (slave) from ITEAD STUDIO. I can address the AT commands and those all seem to work fine by switching to FT232 and sending commands via the USB Port after loading a blank sketch. My next move is to get Bluetooth to work by doing the following:
- With just the Arduino board (Bluetooth Shield removed) I upload the following program:
void setup()
{
char temp;
pinMode(13,OUTPUT);
Serial.begin(9600);
while(1)
{
if (Serial.available() > 0 )
{
temp = Serial.read();
if (temp == ‘1’)
digitalWrite(13,HIGH);
if (temp == ‘0’)
digitalWrite(13,LOW);
Serial.print(temp);
}
}
}
void loop()
{
}
Tested the program on COM3 without the Bluetooth Shield and it works fine.
- Next I unplug the Arduino board and attach the Bluetooth shield with the switch set to “Board”. Then plug the Arduino board with shield attached back in.
- On my laptop I add the Bluetooth device and I get two COM ports (COM5 and COM6).
- On the laptop I open a terminal program and try to connect to COM5. No connection.
- On the laptop I open a terminal program and try to connect to COM6 and it connects.
- If I send anything it hangs.
- Also tried it on my desktop. I add the Bluetooth device and try the two COM ports to try and link up with Bluetooth and I get the same response.
The D1 light on the Bluetooth Shield is always on and the D3 light on the Bluetooth Shield is always flashing.
Any suggestions?
Dave.