-1

I have connected a single neopixel to my Adafruit Feather board, running Arduino software.

The power pin is connected to 3V on the Feather. The data-in pin is connected to pin 15 on the Feather.

As soon as power is connected, the light shows blue. But uploading any program has no effect whatsoever. The Neopixel won't respond to anything.

How can I use a Neopixel on the Adafruit Feather?

#include <Adafruit_NeoPixel.h>
#ifdef __AVR__
#include <avr/power.h>
#endif

#define PIN 15
#define NUMPIXELS 1

Adafruit_NeoPixel pixels = Adafruit_NeoPixel(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800);

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

void loop() {
  Serial.println("RED");
  pixels.setPixelColor(PIN, pixels.Color(255, 0, 0));
  pixels.show();
  delay(1000);
  Serial.println("GREEN");
  pixels.setPixelColor(PIN, pixels.Color(0, 255, 0));
  pixels.show();
  delay(1000);
}

The neopixel and the Feather board

  • 1
    I think, 3V is not enough for the Neopixels. Can you try providing them with 5V? – chrisl Feb 14 at 13:39
  • Hm, that might be it. I assumed 3V would be good since the Circuit Express Playground uses 3V and has 10 neopixels! But maybe these bigger ones need more power ??? adafruit.com/product/1734 – Kokodoko Feb 15 at 11:59
  • Adafruit states, that the 3.7V from a LiPo battery is just enough for a few Neopixels – chrisl Feb 15 at 12:36
1

Pin 15 is the serial RX pin which connects to the USB port so you should not use it. From the Feather pinouts page about pins 15,16 : "These are connected through to the CP2104 USB-to-Serial converter so they should not be connected to or used unless you're super sure you want to because you will also be getting the USB traffic on these!"

So try another pin and it should work.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.