What's wrong with my FLORA?

Wearable electronics: boards, conductive materials, and projects from Adafruit!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
Insert_Name_Here
 
Posts: 64
Joined: Tue Dec 07, 2021 2:35 pm

What's wrong with my FLORA?

Post by Insert_Name_Here »

Ok. I just got a FLORA in the mail today.
I setup the Adruino IDE. https://learn.adafruit.com/adafruit-ard ... ot-6-x-ide
I plug the board in.
I select "Adafruit Flora" in the boards menu.
I paste this code in:

Code: Select all

#define PIN 8

Adafruit_NeoPixel strip = Adafruit_NeoPixel(1, PIN, NEO_GRB + NEO_KHZ800);

void setup() {
  strip.begin();
  strip.setBrightness(50);
  strip.show(); // Initialize all pixels to 'off'
}

void loop() {
  // Some example procedures showing how to display to the pixels:
  colorWipe(strip.Color(255, 0, 0), 500); // Red
  colorWipe(strip.Color(0, 255, 0), 500); // Green
  colorWipe(strip.Color(0, 0, 255), 500); // Blue
  rainbowCycle(20);
}

// 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);
  }
}

// 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);
  }
}

// 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) {
  WheelPos = 255 - WheelPos;
  if(WheelPos < 85) {
   return strip.Color(255 - WheelPos * 3, 0, WheelPos * 3);
  } else if(WheelPos < 170) {
    WheelPos -= 85;
   return strip.Color(0, WheelPos * 3, 255 - WheelPos * 3);
  } else {
   WheelPos -= 170;
   return strip.Color(WheelPos * 3, 255 - WheelPos * 3, 0);
  }
}
And then when I press upload, the onboard led starts blinking like crazy. And finally, after running it for a few seconds, the IDE(even though the USB cable is hooked up) says the serial port is disconnected.

User avatar
dastels
 
Posts: 15665
Joined: Tue Oct 20, 2015 3:22 pm

Re: What's wrong with my FLORA?

Post by dastels »

First, the "serial port" is does not correlate directly to a physical USB port. I've seen board bounce around between serial ports. Did it program it? Is your code running on the Flora?

Dave

User avatar
Insert_Name_Here
 
Posts: 64
Joined: Tue Dec 07, 2021 2:35 pm

Re: What's wrong with my FLORA?

Post by Insert_Name_Here »

My code is not running.

User avatar
rpiloverbd
 
Posts: 198
Joined: Mon Nov 29, 2021 8:13 am

Re: What's wrong with my FLORA?

Post by rpiloverbd »

Hello,

Which OS are you using? Windows or MAC? Are you able to program an ordinary Arduino board (like Uno) from your computer? Kindly try programming an Arduino UNO and also try to program the Flora with a different data cable if possible. These are to be sure where the problem actually exists.

User avatar
Insert_Name_Here
 
Posts: 64
Joined: Tue Dec 07, 2021 2:35 pm

Re: What's wrong with my FLORA?

Post by Insert_Name_Here »

Linux

User avatar
Insert_Name_Here
 
Posts: 64
Joined: Tue Dec 07, 2021 2:35 pm

Re: What's wrong with my FLORA?

Post by Insert_Name_Here »

I am able to program an Arduino Uno. Also, this is a brand new USB cable from Adafruit that I literally just got in the mail yesterday. It works to program my CPB. I doubt the cable is the problem.

User avatar
dastels
 
Posts: 15665
Joined: Tue Oct 20, 2015 3:22 pm

Re: What's wrong with my FLORA?

Post by dastels »

It sounds like you're doing everything right. Let's try a new board.

Please email [email protected] with a link to this thread, your order number, and request the replacement of one Flora V2.

Dave

User avatar
Insert_Name_Here
 
Posts: 64
Joined: Tue Dec 07, 2021 2:35 pm

Re: What's wrong with my FLORA?

Post by Insert_Name_Here »

Oh come on. That's twice Adafruit has offered me a replacement board. I don't think they could have made that many boards that are broken.

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

Return to “Wearables”