-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

3
  • 1
    I think, 3V is not enough for the Neopixels. Can you try providing them with 5V?
    – chrisl
    Commented Feb 14, 2020 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
    Commented Feb 15, 2020 at 11:59
  • Adafruit states, that the 3.7V from a LiPo battery is just enough for a few Neopixels
    – chrisl
    Commented Feb 15, 2020 at 12:36

1 Answer 1

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.

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