Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

How to Use Adafruit NeoPixel FeatherWing: Examples, Pinouts, and Specs

Image of Adafruit NeoPixel FeatherWingDesign with Adafruit NeoPixel FeatherWing in Cirkit Designer

Introduction

The Adafruit NeoPixel FeatherWing is an add-on board for the Adafruit Feather ecosystem. It features a matrix of individually addressable RGB LEDs, commonly known as NeoPixels. These LEDs can be controlled with a single microcontroller pin and offer full 24-bit color, which allows for a wide range of color blending and animations. The FeatherWing is ideal for creating colorful and complex lighting effects for wearables, indicators, displays, and any project requiring a splash of vibrant color.

Explore Projects Built with Adafruit NeoPixel FeatherWing

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of Arduino Nano Controlled Sound and Light Effects System with NeoPixel LEDs: A project utilizing Adafruit NeoPixel FeatherWing in a practical application
Arduino Nano Controlled Sound and Light Effects System with NeoPixel LEDs

This circuit features an Arduino Nano microcontroller connected to a series of WS2812B LEDs, Adafruit NeoPixel Jewels, and Sticks, forming an addressable LED array. The Arduino controls the LED patterns and sequences, and interfaces with an Adafruit Audio FX Mini Sound Board for audio playback, which is amplified by an Adafruit PAM8302 amplifier connected to piezo speakers. The circuit includes toggle and push switches for user interaction, and uses a lipo battery with MP1584EN power regulators for power management. The embedded code on the Arduino facilitates complex lighting effects and sound playback, responding to switch states and button presses to create an interactive experience.

Open Project in Cirkit Designer

Common Applications and Use Cases

Technical Specifications

Key Technical Details

Pin Configuration and Descriptions

Pin Description
GND Ground connection
VBAT Power supply (3.3V to 5V)
DIN Data input from microcontroller
DOUT Data output for chaining additional NeoPixel devices

Usage Instructions

How to Use the Component in a Circuit

  1. Powering the FeatherWing: Connect the VBAT pin to a 3.3V to 5V power supply. Ensure that your power supply can handle the maximum current draw if all LEDs are at full brightness.
  2. Data Connection: Connect the DIN pin to a digital output pin on your microcontroller.
  3. Ground Connection: Connect the GND pin to the ground on your microcontroller.

Important Considerations and Best Practices

Example Code for Arduino UNO

#include <Adafruit_NeoPixel.h>

#define PIN            6 // The pin connected to the NeoPixels
#define NUMPIXELS      32 // Number of NeoPixels in the FeatherWing

// Create an instance of the Adafruit_NeoPixel class called "pixels"
Adafruit_NeoPixel pixels(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800);

void setup() {
  pixels.begin(); // Initialize the NeoPixel library.
}

void loop() {
  for(int i=0; i<NUMPIXELS; i++) {
    pixels.setPixelColor(i, pixels.Color(0,150,0)); // Moderately bright green color.
    pixels.show(); // This sends the updated pixel color to the hardware.
    delay(500); // A half-second delay between each pixel set.
    pixels.setPixelColor(i, pixels.Color(0,0,0)); // Turn off the pixel.
  }
}

Ensure that the Adafruit NeoPixel library is installed in your Arduino IDE before uploading this code to your Arduino UNO.

Troubleshooting and FAQs

Common Issues

Solutions and Tips for Troubleshooting

FAQs

Q: Can I use a 3.3V logic level with the NeoPixel FeatherWing?

A: Yes, the NeoPixel FeatherWing can typically understand 3.3V logic; however, for reliability, especially with longer wires, a logic level converter is recommended.

Q: How many NeoPixel FeatherWings can I chain together?

A: This depends on your power supply's capacity. Each NeoPixel can draw up to 60mA, so calculate your requirements accordingly.

Q: Can I cut the FeatherWing to fit a smaller space?

A: No, the FeatherWing is not designed to be cut. Doing so may damage the board and the NeoPixels.