Problem with Bluefruit EZ-Link

For other supported Arduino products from Adafruit: Shields, accessories, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
marco26fr
 
Posts: 38
Joined: Sat Jul 28, 2012 5:25 am

Problem with Bluefruit EZ-Link

Post by marco26fr »

Hello,

I recently bought the Bluefruit EZ-Link module for robotics applications. Everything from the tutorial is working (pairing, programming the Arduino, loopback test with RX connected to TX ...). But now when I actually want to use it to send messages to the Arduino, it doesn't work. Here is the code I am using:

Code: Select all

void setup() {
  Serial.begin(9600);
}

void loop() {
  
   if (Serial.available() > 0) {
         
	char getData = Serial.read();
        Serial.println(getData);
        
  }
}
The code works well with the Arduino connected via USB (I type something in the Serial monitor, and it gets printed back on the Serial monitor). But with the bluetooth module it doesn't work (the comm LED on the module is blinking, as well as the TX/RX blue LEDs, but nothing gets printed back on the monitor). What am I doing wrong ?

Thanks !

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Problem with Bluefruit EZ-Link

Post by adafruit_support_rick »

try swapping your RX and TX jumper wires - you may have them backwards.

What kind of arduino are you using?

User avatar
marco26fr
 
Posts: 38
Joined: Sat Jul 28, 2012 5:25 am

Re: Problem with Bluefruit EZ-Link

Post by marco26fr »

I guess it's not a TX & RX inversion problem, as the remote programming of the Arduino is working fine, just like in the tutorial. The board is an Arduino Uno R3.

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Problem with Bluefruit EZ-Link

Post by adafruit_support_rick »

Not sure. My EZ-Link order hasn't arrived yet.
Try using Software Serial instead.
Configure Software Serial for Pin 8 RX and Pin 7 TX.
Connect EZ-Link TX to PIn 8 and EZ-Link RX to Pin 7.

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Re: Problem with Bluefruit EZ-Link

Post by adafruit »

should 'just work' - maybe post up a photo of your wiring? what happens if you just test the TX - have the arduino Serial.println("test"); in the loop so its constantly sending data, thats an easy way to test one side.

User avatar
marco26fr
 
Posts: 38
Joined: Sat Jul 28, 2012 5:25 am

Re: Problem with Bluefruit EZ-Link

Post by marco26fr »

Hello,

I just fixed the problem by changing the Serial speed from 9600 to 115200. Now it's working perfectly, however I don't know why it would not work at 9600 ... but for my application it's not an issue. Thanks for the help !

grotandthemob
 
Posts: 1
Joined: Mon Dec 23, 2013 4:51 pm

Re: Problem with Bluefruit EZ-Link

Post by grotandthemob »

I had the same issue. i received many weird à-s on 9600. it works perfectly on 115200.
Thanks

User avatar
tehuster
 
Posts: 9
Joined: Wed Aug 20, 2014 9:19 am

Re: Problem with Bluefruit EZ-Link

Post by tehuster »

Hello i've got the same problem:

Im using an Arduino Uno
Everything from the tutorial is working (pairing, programming the Arduino(***), loopback test with RX connected to TX ...). But now when I actually want to use it to send messages to the Arduino, it doesn't work
.

(*** Only when i use Arduino ERW 1.0.5., when i use Arduino 1.5.5-r2 it does not upload it gives this error. avrdude: stk500_paged_load(): (a) protocol error, expect=0x10, resp=0x94 avrdude: stk500_cmd(): programmer is out of sync)
Why is this!? But that's not the biggest problem cause with ERW it works.

My problem is: When i upload this code:

Code: Select all

void setup() {
  Serial.begin(9600);
}

void loop() {
  
   if (Serial.available() > 0) {
         
   char getData = Serial.read();
        Serial.println(getData);
        
  }
}
I get: "BANNED" gibberish, in my serial monitor set on 9600 baud.

And when i increase the baudrate to 115200 in the code and the serial monitor. I get nothing, the tx en rx light up on the ez-link but not on the arduino itself.

Thanks in advance,

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Problem with Bluefruit EZ-Link

Post by adafruit_support_rick »

Try calling Serial.write(getData); instead of Serial.println(getData);

User avatar
tehuster
 
Posts: 9
Joined: Wed Aug 20, 2014 9:19 am

Re: Problem with Bluefruit EZ-Link

Post by tehuster »

Thanks for the quick reply Rick,

It did not fix the problem it only changed the gibberish i get in the serial monitor at 9600 baudrate to: "?BANNED".

But still nothing at higher baudrates.

Could my bluetooth dongle be the problem? I'm using an https://www.sitecom.com/nl/micro-blueto ... n-516/p/41 and it says bluetooth 2.1.

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Problem with Bluefruit EZ-Link

Post by adafruit_support_rick »

Some bluetooth dongles will only work with the EZ-Link at 9600 baud. If you want faster speeds, you should get a BT 4.0 modules like we have in the store:
https://www.adafruit.com/product/1327

I don't know why you're getting garbled characters. How do you have the EZ-Link connected to the Uno? Can you post some pictures?

User avatar
tehuster
 
Posts: 9
Joined: Wed Aug 20, 2014 9:19 am

Re: Problem with Bluefruit EZ-Link

Post by tehuster »

I hope these pictures are clear enough.
Uno + EZ_link 1
Uno + EZ_link 1
1.jpg (413.16 KiB) Viewed 661 times
Uno + EZ_link 2
Uno + EZ_link 2
2.jpg (487.11 KiB) Viewed 661 times

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Problem with Bluefruit EZ-Link

Post by adafruit_support_rick »

Try some different breadboard locations. Beyond that, I suggest you get a different BT adapter and see if that improves the situation any.

User avatar
tehuster
 
Posts: 9
Joined: Wed Aug 20, 2014 9:19 am

Re: Problem with Bluefruit EZ-Link

Post by tehuster »

Hi Rick,

Thanks again for all the help.

The dongle was the problem, or the drivers i'm not sure. But it works like a charm now.

Have a nice day!

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Arduino products from Adafruit”