Go Down

Topic: Interfacing with the bluesmirf (Read 3613 times) previous topic - next topic

lzhang

Sep 08, 2008, 09:43 pm Last Edit: Sep 08, 2008, 09:48 pm by lzhang Reason: 1
I have a general idea of how to interface the bluesmirf with the arduino pro mini.  But can someone provide me with an example of establishing a serial connection with a bluesmirf to a computer? Any diagram would help greatly! I've used the bluesmirf once with the SSC-32 board:

Is it essentially the same for the arduino?

I couldn't find examples of this on the site. Whats the syntax for establishing a pairing with a pc via the arduino and not the pc?

John_Ryan

The Arduino doesn't pair with the pc, it communicates serially with the pc "through" the BlueSmirf.

So you could take any serial example sketch, and then make sure it and the software on the pc side are configured at the Smirf's baud rate.

Smirf's can be a bit tricky, there's a couple of firmware settings you'll want to check out against the documentation, like it has 5 modes and only one of them is right. The module I received shipped in the wrong mode and took days to trace the issue back to the firmware because the supplier incorrectly stated it had been tested prior to shipping.  

lzhang

oh sorry-I didn't phrase it right. Of course the smirf communicates with the pc. For the bluesmirf that I have with my SSC-32, I simply installed it and connected the wires like so in the diagram and my pc could detect and pair with it.
So I'm guessing I'm using something like:
Code: [Select]
 Serial.begin(9600);

I guess once my arduino comes in I'll test things out.

John_Ryan

Yip, once your familiar with the IDE and language, and it shouldn't take long to get to that point, you'll be Smirfing in no time :)

lzhang

#4
Sep 12, 2008, 11:58 pm Last Edit: Sep 12, 2008, 11:59 pm by lzhang Reason: 1
I'm using a Wee instead since the pro mini was out of stock. Here is the schematic I drew rather crudely:

does this look like it could work? I was not sure about which GND to connect with...any help is greatly appreciated!

demss

#5
May 12, 2010, 08:19 am Last Edit: May 12, 2010, 08:26 am by userid3456789 Reason: 1
Hi,

why you must connect RTS with CTS on bluesmirf modem?



I make a sketch with "Modem Bluetooth Seeedstudio" and arduino.
http://www.robotshop.ca/seeedstudio-serial-bluetooth-module-3.html

The Datasheet:
http://www.robotshop.ca/content/PDF/SeeedStudio-Bluetooth-Module-Manual-v1.2.pdf

My sketch is:


My code:
Code: [Select]
int RESET_BT = 14;  

void setup()
{  
     pinMode(RESET_BT,OUTPUT);   // declare the reset pin as output.
     Serial.begin(115200);        
     digitalWrite(RESET_BT, LOW);  // If the reset pin is low for more than 5ms = reset Bluetooth.
     delay(10);  
     digitalWrite(RESET_BT, HIGH);  // Stop Reset Bluetooth.
     delay(2000);  
}  
 
void loop ()
{  
     Serial.println("Teste Bluetooth");  
     delay(250);  
}  


On my sketch I put a "Logic Level Converter" for convert 5V arduino with 3.3V modem.
http://www.robotshop.ca/sfe-logic-level-converter.html

My sketch is it ok or not ok?

Thank you

neward

Nobody knows if demss sketch is correct or not????


Go Up