I apologize, I can usually figure these things out by myself but I am hitting a wall. Ultimately I am trying to upload values and/or graphs from a few sensors to an android device. I started by following everything on the setup page verbatim. I have never used bluetooth connectivity before hands on, however, I have read quite a bit. So far, I have tried the example instructions and code:
#include <SoftwareSerial.h>
int bluetoothTx = 2; // TX-O pin of bluetooth mate, Arduino D2
int bluetoothRx = 3; // RX-I pin of bluetooth mate, Arduino D3
SoftwareSerial bluetooth(bluetoothTx, bluetoothRx);
void setup()
{
Serial.begin(9600); // Begin the serial monitor at 9600bps
bluetooth.begin(115200); // The Bluetooth Mate defaults to 115200bps
bluetooth.print(“$”); // Print three times individually
bluetooth.print(“$”);
bluetooth.print(“$”); // Enter command mode
delay(100); // Short delay, wait for the Mate to send back CMD
bluetooth.println(“U,9600,N”); // Temporarily Change the baudrate to 9600, no parity
// 115200 can be too fast at times for NewSoftSerial to relay the data reliably
bluetooth.begin(9600); // Start bluetooth serial at 9600
}
void loop()
{
if(bluetooth.available()) // If the bluetooth sent any characters
{
// Send any characters the bluetooth prints to the serial monitor
Serial.print((char)bluetooth.read());
}
if(Serial.available()) // If stuff was typed in the serial monitor
{
// Send any characters the Serial monitor prints to the bluetooth
bluetooth.print((char)Serial.read());
}
// and loop forever and ever!
}
Here I have My BlueSmirf Silver RN42-I/RM
Here is my wiring schematic
smirf vcc to arduino 5v
smirf GND to arduino GND
smirf TX-0 to arduino D2
smirf RX-1 to arduino D3
The problem is when I try to enter command mode by entering “$$$” nothing happens. The light appears to be blinking around 2 blinks a second, but I thought it was only supposed to do that for 60s and it has never changed except for when I reset it.
Cheers,
Fran