I have Arduino Duemilanove and Bluetooth module. Serial Port Bluetooth Module With Baseboard (Master).
I connect Bluetooth with GND, 3.3V and TX, RX to pin 2 & 3 on Arduino. If I understand, I have to initialize bluetooth module to start a connection and to be visible?
I wrote a simple program:
#include <NewSoftSerial.h>
NewSoftSerial mySerial(2, 3);
void setup()
{
Serial.begin(9600); //terminal on PC
Serial.println("Start");
mySerial.begin(9600); //bluetooth
}
void loop()
{
if (mySerial.available()) {
Serial.print(mySerial.read());
}
if (Serial.available()) {
mySerial.print(Serial.read());
}
}
I don't get any reply from bluetooth? If I understand, I have to send AT commands to configure bluetooth? The list of the commands are on bottom of the link (next post), but I don't know where and how to write those commands.
I would like to connect mobile phone with symbian, so I need bluetooth serial communication. I saw a few guides, but they all just say to connect to Arduino and then you can see the BT on a computer via BT dongle. I also tried switching RX and TX. Am I thinking the right way?