The Adafruit Quarter 60 NeoPixel Ring is a versatile and vibrant lighting solution for a wide range of projects. This component features a quarter-circle ring populated with 60 individually addressable RGB LEDs, which are based on the WS2812 or the upgraded WS2812B LED driver. The ring is designed to be chainable, allowing multiple rings to be connected together to create larger and more complex displays.
Pin Number | Name | Description |
---|---|---|
1 | VDD | Power supply (5V DC) |
2 | GND | Ground connection |
3 | DIN | Data input from microcontroller |
4 | DOUT | Data output to the next NeoPixel component |
#include <Adafruit_NeoPixel.h>
#define PIN 6 // The pin connected to the NeoPixels
#define NUMPIXELS 60 // Number of NeoPixels in the ring
// Declare our NeoPixel strip object:
Adafruit_NeoPixel strip(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800);
void setup() {
strip.begin(); // Initialize the strip
strip.show(); // Initialize all pixels to 'off'
}
void loop() {
for(int i=0; i<strip.numPixels(); i++) {
strip.setPixelColor(i, strip.Color(255, 0, 0)); // Red color
strip.show();
delay(50);
strip.setPixelColor(i, strip.Color(0, 0, 0)); // Off
}
}
Q: Can I cut the NeoPixel ring to fit my project? A: Yes, the ring can be cut at designated points, but be aware that this will reduce the number of usable LEDs.
Q: How many NeoPixel rings can I chain together? A: This depends on the power supply capacity and the microcontroller's ability to drive the data signal. With adequate power and signal boosting, many rings can be chained.
Q: Can I use a different microcontroller with the NeoPixel ring? A: Yes, any microcontroller with a digital output capable of the WS2812B protocol can be used. Adjustments in the code may be necessary.
Q: Do I need to use an external power supply? A: For a single ring, USB power may be sufficient. However, for multiple rings or full brightness, an external power supply is recommended.