Just got my ez bob today. Mac user BANNED os... Successfully uploaded a half dozen sketches, albeit slowly... Then errors as described in this thread. Only reason I purchased was that "it just works" is this thing fixed yet or what?
Edit: this message was originally posted to this thread:
viewtopic.php?f=31&t=47431&p=272872&hil ... ld#p272872
Problems with Bluefruit EZ-link shield
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- markrmorton
- Posts: 8
- Joined: Wed Jul 16, 2014 1:25 am
Problems with Bluefruit EZ-link shield
Last edited by markrmorton on Wed Jul 16, 2014 7:30 pm, edited 1 time in total.
- Franklin97355
- Posts: 23940
- Joined: Mon Apr 21, 2008 2:33 pm
Re: Problems with Bluefruit EZ-link shield
Exactly what errors are you having? Could you post clear pictures of your board from both sides?Then errors as described in this thread.
- markrmorton
- Posts: 8
- Joined: Wed Jul 16, 2014 1:25 am
Re: Problems with Bluefruit EZ-link shield
I'm getting this:franklin97355 wrote:Exactly what errors are you having? Could you post clear pictures of your board from both sides?
avrdude: stk500_recv(): programmer is not responding
Pics as requested (sorry for the phone camera quality):
https://drive.google.com/file/d/0B3oKS7 ... sp=sharing
https://drive.google.com/file/d/0B3oKS7 ... sp=sharing
Thanks
- Franklin97355
- Posts: 23940
- Joined: Mon Apr 21, 2008 2:33 pm
Re: Problems with Bluefruit EZ-link shield
How are you connecting things together and what code are you running? What are you using for communications (besides the Bluefruit EZ-link?
- markrmorton
- Posts: 8
- Joined: Wed Jul 16, 2014 1:25 am
Re: Problems with Bluefruit EZ-link shield
Connections-
GND GND
DSR GND
VIN 5v
Tx. Rx
Rx. Tx
DTR through supplied cap to reset
Code and other hardware:
Uno clone powered by 12v 2A supply and a neno pixel stick. I was playing with the neo pixel library examples, then tried "blink" when I started having problems.
Other communications? None to the mcu, laptop on wifi. Not sure if that's what you meant...
Thanks
GND GND
DSR GND
VIN 5v
Tx. Rx
Rx. Tx
DTR through supplied cap to reset
Code and other hardware:
Uno clone powered by 12v 2A supply and a neno pixel stick. I was playing with the neo pixel library examples, then tried "blink" when I started having problems.
Other communications? None to the mcu, laptop on wifi. Not sure if that's what you meant...
Thanks
- Franklin97355
- Posts: 23940
- Joined: Mon Apr 21, 2008 2:33 pm
Re: Problems with Bluefruit EZ-link shield
From your error it looks like you are trying to program the uno. How are you sending the program code without communications?
- markrmorton
- Posts: 8
- Joined: Wed Jul 16, 2014 1:25 am
Re: Problems with Bluefruit EZ-link shield
Hardware-wise I'm using whatever's in a MacBook Pro retina 13" late 2013 model and using the "cu" version of the the ez link portfranklin97355 wrote:From your error it looks like you are trying to program the uno. How are you sending the program code without communications?
- Franklin97355
- Posts: 23940
- Joined: Mon Apr 21, 2008 2:33 pm
Re: Problems with Bluefruit EZ-link shield
Have you successfully paired the BFEZ and the Mac before starting the Arduino IDE?
- markrmorton
- Posts: 8
- Joined: Wed Jul 16, 2014 1:25 am
Re: Problems with Bluefruit EZ-link shield
Yes it's successfully paired, and I can still use it to send serial data (fast red blink with serial monitor open and very quick blue flashes when receiving data), just unable to upload a sketch. I was able to upload a sketch initially, but after a handful of times it would seem to time out and fail. BFEZ transmit LED responds by blinking faster when upload initiates but then "stutters" just before error message in IDE no discernible blue LED activity.
for example this hack of the library example works great over BFEZ -if programmed via USB
Thanks
for example this hack of the library example works great over BFEZ -if programmed via USB
Code: Select all
#include <Adafruit_NeoPixel.h>
#define PIN 6
Adafruit_NeoPixel strip = Adafruit_NeoPixel(8, PIN, NEO_GRB + NEO_KHZ800);
int input;
void setup() {
Serial.begin(9600);
strip.begin();
strip.show();
}
void loop() {
if (Serial.available()){
input = Serial.read();
switch (input){
case '1':
colorWipe(strip.Color(255, 0, 0), 50); // Red
break;
case '2':
colorWipe(strip.Color(0, 255, 0), 50); // Green
break;
case '3':
colorWipe(strip.Color(0, 0, 255), 50); // Blue
break;
case '4':
colorWipe(strip.Color(123, 123, 123), 50);
break;
case '5':
colorWipe(strip.Color(52, 79, 45), 50);
break;
case '6':
colorWipe(strip.Color(128, 35, 255), 50);
break;
case 'q':
theaterChase(strip.Color(127, 127, 127), 50); // White
break;
case 'w':
theaterChase(strip.Color(127, 0, 0), 50); // Red
break;
case 'e':
theaterChase(strip.Color( 0, 0, 127), 50); // Blue
break;
case 'r':
rainbow(20);
break;
case 't':
rainbowCycle(20);
break;
case 'y':
theaterChaseRainbow(50);
break;
case 'o':
off();
break;
}}}
// Fill the dots one after the other with a color
void colorWipe(uint32_t c, uint8_t wait) {
for(uint16_t i=0; i<strip.numPixels(); i++) {
strip.setPixelColor(i, c);
strip.show();
delay(wait);
}
}
void rainbow(uint8_t wait) {
uint16_t i, j;
for(j=0; j<256; j++) {
for(i=0; i<strip.numPixels(); i++) {
strip.setPixelColor(i, Wheel((i+j) & 255));
}
strip.show();
delay(wait);
}
}
// Slightly different, this makes the rainbow equally distributed throughout
void rainbowCycle(uint8_t wait) {
uint16_t i, j;
for(j=0; j<256*5; j++) { // 5 cycles of all colors on wheel
for(i=0; i< strip.numPixels(); i++) {
strip.setPixelColor(i, Wheel(((i * 256 / strip.numPixels()) + j) & 255));
}
strip.show();
delay(wait);
}
}
//Theatre-style crawling lights.
void theaterChase(uint32_t c, uint8_t wait) {
for (int j=0; j<10; j++) { //do 10 cycles of chasing
for (int q=0; q < 3; q++) {
for (int i=0; i < strip.numPixels(); i=i+3) {
strip.setPixelColor(i+q, c); //turn every third pixel on
}
strip.show();
delay(wait);
for (int i=0; i < strip.numPixels(); i=i+3) {
strip.setPixelColor(i+q, 0); //turn every third pixel off
}
}
}
}
//Theatre-style crawling lights with rainbow effect
void theaterChaseRainbow(uint8_t wait) {
for (int j=0; j < 256; j++) { // cycle all 256 colors in the wheel
for (int q=0; q < 3; q++) {
for (int i=0; i < strip.numPixels(); i=i+3) {
strip.setPixelColor(i+q, Wheel( (i+j) % 255)); //turn every third pixel on
}
strip.show();
delay(wait);
for (int i=0; i < strip.numPixels(); i=i+3) {
strip.setPixelColor(i+q, 0); //turn every third pixel off
}
}
}
}
// Input a value 0 to 255 to get a color value.
// The colours are a transition r - g - b - back to r.
uint32_t Wheel(byte WheelPos) {
if(WheelPos < 85) {
return strip.Color(WheelPos * 3, 255 - WheelPos * 3, 0);
} else if(WheelPos < 170) {
WheelPos -= 85;
return strip.Color(255 - WheelPos * 3, 0, WheelPos * 3);
} else {
WheelPos -= 170;
return strip.Color(0, WheelPos * 3, 255 - WheelPos * 3);
}
}
void off() {
for(int i=0; i< strip.numPixels(); i++) {
strip.setPixelColor(i, 0,0,0);
}
strip.show();
delay(5);
}
- adafruit_support_mike
- Posts: 67485
- Joined: Thu Feb 11, 2010 2:51 pm
Re: Problems with Bluefruit EZ-link shield
Did you remember to put a capacitor between the EZ-Link's DTR pin and the Arduino's Reset pin?
You have to reset the Arduino to launch the bootloader, and that requires a hardware reset. The EZ-Link uses the DTR pin as an out-of-band signal that can go HIGH/LOW independently of the data stream, but you don't want a DC connection between that and the Arduino because other devices may also need to trigger a reset. Putting a capacitor between them produces enough of a LOW pulse to reset the microcontroller and launch the bootloader.
Without that pulse, the IDE won't get the handshake it needs from the bootloader, and will give you the "programmer not responding" error.
You have to reset the Arduino to launch the bootloader, and that requires a hardware reset. The EZ-Link uses the DTR pin as an out-of-band signal that can go HIGH/LOW independently of the data stream, but you don't want a DC connection between that and the Arduino because other devices may also need to trigger a reset. Putting a capacitor between them produces enough of a LOW pulse to reset the microcontroller and launch the bootloader.
Without that pulse, the IDE won't get the handshake it needs from the bootloader, and will give you the "programmer not responding" error.
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Problems with Bluefruit EZ-link shield
Do the blue TX and RX LEDs on the EZ-Link do anything when it's trying to program (this is, when the red LED is flashing rapidly)?
- markrmorton
- Posts: 8
- Joined: Wed Jul 16, 2014 1:25 am
Re: Problems with Bluefruit EZ-link shield
Yes DTR coupled through the supplied cap.
I don't recall the blue Tx rx LEDs flashing but will look closer tonight.
Also will reheat the DTR pin to make sure it isn't a cold joint
I don't recall the blue Tx rx LEDs flashing but will look closer tonight.
Also will reheat the DTR pin to make sure it isn't a cold joint
- Franklin97355
- Posts: 23940
- Joined: Mon Apr 21, 2008 2:33 pm
Re: Problems with Bluefruit EZ-link shield
If you don't get it working tonight please email [email protected] with a link to this thread for a replacement.
- markrmorton
- Posts: 8
- Joined: Wed Jul 16, 2014 1:25 am
Re: Problems with Bluefruit EZ-link shield
Just for historical record I've ruled out the cold solder joint theory and the blue TX did flicker when I tried to upload.
Click upload in IDE, compiles, pauses when uploading prompt appears
after a few seconds the red EZ LED flashes quickly ~3/4 times then goes back to the "slow blink" another 3/4 times, back to quick blinking (this is when the blue TX flickers) then soon after I get the programmer is not responding error...
I'll shoot off that email unless this sheds some new light on the matter and you've got another angle.
Thanks again for the help.
Click upload in IDE, compiles, pauses when uploading prompt appears
after a few seconds the red EZ LED flashes quickly ~3/4 times then goes back to the "slow blink" another 3/4 times, back to quick blinking (this is when the blue TX flickers) then soon after I get the programmer is not responding error...
I'll shoot off that email unless this sheds some new light on the matter and you've got another angle.
Thanks again for the help.
- cskonopka
- Posts: 24
- Joined: Mon Dec 09, 2013 4:26 am
Re: Problems with Bluefruit EZ-link shield
I am experiencing the exact same behavior from the Bluefruit Ez-Link Breakout. Nothing has worked and clueless as to why this was occurring. Are there any libraries that were made for this breakout?markrmorton wrote:Just for historical record I've ruled out the cold solder joint theory and the blue TX did flicker when I tried to upload.
Click upload in IDE, compiles, pauses when uploading prompt appears
after a few seconds the red EZ LED flashes quickly ~3/4 times then goes back to the "slow blink" another 3/4 times, back to quick blinking (this is when the blue TX flickers) then soon after I get the programmer is not responding error...
I'll shoot off that email unless this sheds some new light on the matter and you've got another angle.
Thanks again for the help.
Please be positive and constructive with your questions and comments.