A little more code would be greatly appreciated...
Have you included something like that?
#include <SoftwareSerial.h>
int bluetoothTx = 2;
int bluetoothRx = 3;
SoftwareSerial bluetooth(bluetoothTx, bluetoothRx);
EDIT:
That's similar to what I use.
You first upload the code without the bluetooth wired and then wire the bluetooth. Then you can simply use Serial.doSomething()
because you are using the same pins, you don't need #include <SoftwareSerial.h>
. But you need to make sure that the baudrate is the same.
You can try this code to make sure it works fine:
void setup(){
Serial.begin(9600); // or wathever your bluetooth module baudrate is
}
void loop(){
Serial.println("Hello World!"); // to make sure it works.
delay(500);
}
You should also make sure you you Arduino is connected to the computer via bluetooth.