Arduino Uno + ITead 2.2 Bluetooth = Sad Newbie

Hi all,

I’m attempting to establish a simple, bluetooth serial connection to my Arduino Uno + Itead 2.2 Bluetooth Module

I’ve reset the module to factory defaults using the AT command interface. Now the UART is Jumpered D5->TX, D4->RX, and the mode switch is set to DAT. From my Mac I am able to discover the bluetooth module and pair with it using the default pin(1234). OSX creates a tty serial device, which using CoolTerm it appears i am able to connect to properly ( once i click connect in cool term, the STATUS LED on the BT shield changes from rapid blinking to intermitent ).

However nothing comes through the terminal, not even garbage. I’m using the following code, to just create a software serial object and print.

I’m sure i’m missing some fundamental step to utilizing bluetooth + arduino, but i’ve yet to find a decently written how to.

Any help would be greatly appreciated.

#include <SoftwareSerial.h>

#define rxPin 4
#define txPin 5

SoftwareSerial mySerial =  SoftwareSerial(rxPin, txPin);

void setup()  {

  pinMode(rxPin, INPUT);
  pinMode(txPin, OUTPUT);
  mySerial.begin(38400);
  Serial.begin(9600);
}

void loop() {
    Serial.println("Test1");
    mySerial.println("Test2");
    delay(1000);
}
SoftwareSerial mySerial =  SoftwareSerial(rxPin, txPin);

Obsolete software.

  mySerial.begin(38400);

SoftwareSerial never went that fast.

Use NewSoftSerial. Bluetooth connections are typically at 115200. Does your communicate at slower speeds?

Okay, i switched to NewSoftSerial with the same result. I selected 38400 because after sending AT+ORGL, the modules defaults to 38400, at least if i’m understanding the docs properly.

I Set the speed to 115200 with the same result however.

AT
OK
AT+UART?
+UART:38400,0,0
OK
AT+UART=115200,0,0
OK
AT+UART?
+UART:115200,0,0
OK
#include <NewSoftSerial.h>
#define rxPin 4
#define txPin 5
NewSoftSerial mySerial(rxPin, txPin);

void setup()  {
  pinMode(rxPin, INPUT);
  pinMode(txPin, OUTPUT);
  mySerial.begin(115200);
  Serial.begin(9600);
}
void loop() {
    Serial.println("Test1");
    mySerial.println("Test2");
    delay(1000);
}

Hello,

i use the duemilanove Board and the Itead 2.2 Bluetooth Module.

when i use the "test" code i get i can read Test1,Test1 .....but never Test2 and i can't find the shield with my smartphone.

I tried ITEAD BT Debugging Assistant and the ArduinoComamader App.

I know this is a old post, but it is the one I found when having a problem with the v2.2 board. So just in case it helps somebody else this code works on 1.5.2.

#include <SoftwareSerial.h>

#define rxPin 6
#define txPin 7

SoftwareSerial mySerial(rxPin, txPin); // RX, TX
char myChar ; 

void setup() {
  Serial.begin(9600);   
  Serial.println("Goodnight moon!");

  mySerial.begin(9600);
  mySerial.println("Hello, world?");
}

void loop(){
  while(mySerial.available()){
    myChar = mySerial.read();
    Serial.print(myChar);
  }

  while(Serial.available()){
   myChar = Serial.read();
   mySerial.print(myChar);
  }
}