SparkFun Forums 

Where electronics enthusiasts find answers.

All things pertaining to wireless and RF links
By firepixie
#169955
I received a bluesmirf silver modem yesterday, and it doesn't seem to like me.
I am running the test code from this page:

https://learn.sparkfun.com/tutorials/us ... mmand-mode

I have the connections exactly as shown, using an arduino micro (I also tried the same setup with an uno):

VCC --> VCC
GND --> GND
TX --> D02
RX --> D03

The code uploads just fine. I open the serial monitor (with my port set to USB) and type $$$ and the red light on the bluesmirf blinks fast, telling me I'm in CMD mode, but then I don't get any feedback from the BT or the arduino in the serial monitor - it's just blank. I try typing D or other commands, following the tutorial, and.. nothing.

I've tried setting my serial port to be the bluesmirf (the tutorial doesn't specify which it should be) with worse results -- I can't even get it to enter CMD mode.

I'm using a mac, if that matters.

I'm very frustrated.. this is the 4th bluetooth board I've attempted to use and I had my awesome project working great for a minute or two, about 3 weeks back. Can you please help me figure out what I'm doing wrong? Or point me in the right direction for another tutorial that will allow me to put the bluesmirf through its paces so I can be sure it's not faulty?

Thanks ever so much!!
-Firepixie
By uacm
#175048
Why I can't use the bluesmirf silver with arduino 1.5.7?, if I use the library Software.serial and I have the following code but doesn't send error.:
Code: Select all
#include <SoftwareSerial.h>
int bTx=11;
int bRx=10;
int led=8;
char dato;
SoftwareSerial bluetooth(10, 11);
void setup()
{
pinMode(8,OUTPUT);
Serial.begin(9600);
bluetooth.begin(115200);
bluetooth.print("$$$");
delay(100);
bluetooth.println("U,9600,N");
bluetooth.begin(9600);
bluetooth.print("$$$");
delay(100);
bluetooth.println("SR,Z");
delay(100);
bluetooth.println("SF,1");
delay(100);
bluetooth.println("C,001122987654");
delay(7000);
bluetooth.println("---");
}
void loop()
{
if(bluetooth.available())
{

dato=bluetooth.read();
Serial.print(dato);

if(dato=='0'){
digitalWrite(led,LOW);
Serial.println("LOW");
}
if (dato=='1'){
digitalWrite(led,HIGH);
Serial.println("HIGH");
}
}
if(Serial.available()) //si hay algo escrito en el monitor o hay datos
{

bluetooth.print((char)Serial.read());//lee los datos escritos en el monitor
}
}