The NeoPixel Jewel is a compact, circular LED module equipped with seven individually addressable RGB LEDs arranged in a circular pattern around a central eighth LED. This configuration creates a "jewel" like appearance, hence the name. The NeoPixel Jewel is designed for creating vibrant, colorful, and complex lighting displays with minimal wiring and effort. It is commonly used in wearables, decorations, indicator lights, and any project requiring a splash of color.
Pin Number | Name | Description |
---|---|---|
1 | VCC | Power supply (4.5V to 5.5V) |
2 | GND | Ground connection |
3 | DIN | Digital input signal |
4 | DOUT | Digital output signal (for daisy-chaining) |
#include <Adafruit_NeoPixel.h>
#define PIN 6 // Define the pin connected to the NeoPixel Jewel
#define NUMPIXELS 7 // Number of LEDs in the NeoPixel Jewel
Adafruit_NeoPixel pixels(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800);
void setup() {
pixels.begin(); // Initialize the NeoPixel Jewel
}
void loop() {
for(int i=0; i<NUMPIXELS; i++) {
pixels.setPixelColor(i, pixels.Color(150, 0, 255)); // Set color to purple
pixels.show(); // Update the Jewel with set colors
delay(500);
pixels.setPixelColor(i, pixels.Color(0, 0, 0)); // Turn off the LED
}
}
Q: Can I control the NeoPixel Jewel with a 3.3V microcontroller? A: Yes, but a level shifter is recommended to ensure reliable operation.
Q: How many NeoPixel Jewels can I daisy-chain together? A: This depends on the power supply's capacity. Each LED can draw up to 60mA (20mA per color), so plan accordingly.
Q: Do I need to use an external power supply? A: For more than a few LEDs at full brightness, an external power supply is recommended to prevent overloading the microcontroller's voltage regulator.