arduino mega ADK -> bluetooth mate gold

Hi all,

I’m having some trouble with the communication between the mega ADK and the Bluetooth mate. I am able to connect the mate to the computer but cannot get any communication between the mega and the mate. the code I’m using is below, any advice would be greatly appreciated! thanks! Also, if there is any other information you need let me know.

#include <SoftwareSerial.h>

//RX AND TX PIN ASSIGNMENTS FOR THE ARDUINO MEGA ADK
int bluetoothTx = 2;
int bluetoothRx = 3;

SoftwareSerial bluetooth(bluetoothTx, bluetoothRx);

void setup()
{
//Setup usb serial connection to computer
Serial.begin(9600);

//Setup Bluetooth serial connection to android
bluetooth.begin(115200);
bluetooth.print("$$$");
delay(100);
bluetooth.println(“U,9600,N”);
bluetooth.begin(9600);
}

void loop()
{
//Read from bluetooth and write to usb serial
if(bluetooth.available())
{
Serial.print((char)bluetooth.read());
}

if(Serial.available())
{
bluetooth.print((char)Serial.read());
}
}

WHich IDE are you using 1.0 or 0.23 or 0.22 ?

The quality of Software Serial in the pre1.0 version is rather low. The 1.0 version of SWS is much better.

I'm currently using 1.0