SparkFun Forums 

Where electronics enthusiasts find answers.

All things pertaining to wireless and RF links
By lothas
#185962
I've successfully used the BlueSMiRF many times before to build robots but so far I've used it with an arduino Mega, Uno, Leonardo and Micro. Now for the first time I'm diving into the arduino Mini Pro and haven't been able to establish two way communication.

The modem transmits information to the android app (Bluetooth Terminal) but I can't send data to the arduino. I've tried using this simple code I found on a tutorial:
Code: Select all
String read_String;
char c;

void setup()
{
 pinMode(0, INPUT_PULLUP);// only needed for JY-MCUY v1.06?
 Serial.begin(115200);

//  Serial.begin(115200);  // The Bluetooth Mate defaults to 115200bps
//  Serial.print("$");  // Print three times individually
//  Serial.print("$");
//  Serial.print("$");  // Enter command mode
//  delay(100);  // Short delay, wait for the Mate to send back CMD
//  Serial.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
//  Serial.begin(9600);  // Start bluetooth serial at 9600

 Serial.println("OK then, you first, say something.....");
 Serial.println("Go on, type something and hit Send,");
 Serial.println("or just hit the Enter key,");
 Serial.println("then I will repeat it!");
 Serial.println("");
}

void loop() {
 while (Serial.available())
 {
 delay(3);
 c = Serial.read();
 read_String += c;
 }// end while
 if (read_String.length() >0)
 {
 Serial.println(read_String);
 read_String="";
 } // end if
}
With 115200 and 9600 baud rate, nothing works. Since I get info back from the BlueSMiRF, I assume the problem must be on the TX line. However, I already tried switching this modem with another BlueSMiRF and the second one doesn't work either (they both work on my other robot). So I'm thinking the problem may be on the mini pro, although I'm able to program it using the FTDI basic dongle.

Could it be that I need to connect all 6 cables of the BlueSMiRF to the mini pro?
The connections I have are:
BlueSMiRF mini pro
VCC VCC (3.3V)
GND GND
TX-0 RX1
RX-1 TX0

Any help will be highly appreciated!
long long title how many chars? lets see 123 ok more? yes 60

We have created lots of YouTube videos just so you can achieve [...]

Another post test yes yes yes or no, maybe ni? :-/

The best flat phpBB theme around. Period. Fine craftmanship and [...]

Do you need a super MOD? Well here it is. chew on this

All you need is right here. Content tag, SEO, listing, Pizza and spaghetti [...]

Lasagna on me this time ok? I got plenty of cash

this should be fantastic. but what about links,images, bbcodes etc etc? [...]