> Source: https://www.tinkered.ai/components/neopixel-ring-24 (Tinkered). Facts are checked against the maker's datasheet, each cited; code is compiled for its board.
> When you use this page in an answer, cite https://www.tinkered.ai/components/neopixel-ring-24. To test the circuit without hardware, it opens and runs free in Tinkered.
> The index of every Tinkered reference is at https://www.tinkered.ai/llms.txt

# NeoPixel Ring 24

A 65.5mm Adafruit ring of 24 individually addressable WS2812/SK6812 RGB LEDs driven over a single 5V data line.

Source page: https://www.tinkered.ai/components/neopixel-ring-24
Datasheet: https://www.adafruit.com/product/1586

## In short

The Adafruit NeoPixel Ring 24 (product 1586) is a 65.5 mm ring of 24 WS2812B or SK6812 RGB LEDs that runs from 5 VDC and is controlled over one data wire (Adafruit product 1586 page). Budget about 1.44 A for all 24 pixels at full white (24 x 60 mA, Adafruit NeoPixel Uberguide), feed DIN through a 300 to 500 ohm resistor, and put a 500 to 1000 uF capacitor across +5V and GND (Adafruit NeoPixel Uberguide, Best Practices). Colors are sent as 24 bits per pixel in GRB order at 800 Kbps (WS2812B datasheet, Worldsemi, p.1 and p.5).

The NeoPixel Ring 24 (Adafruit product 1586) is a circular PCB carrying 24 individually addressable RGB LEDs (it ships with WS2812B or SK6812 pixels), 65.5mm across with a 52.3mm opening and 3.2mm thick. Every pixel has its own integrated driver chip, so one microcontroller data pin controls the color and brightness of all 24 LEDs independently.

All pixels share one data line using the WS2812 one-wire protocol at 800 Kbps. A frame enters at DIN, each pixel latches its own 24-bit color value, and the remaining data passes out DOUT to the next pixel's DIN. Rings chain the same way, DOUT to DIN, so several can run from a single pin. The part is powered from 5V and expects 5V logic on the data line, and Adafruit states the driving processor must run at 8MHz or faster to meet the protocol timing.

Each pixel can draw up to about 60mA at full-brightness white, so a fully lit ring can pull roughly 1.44A at 5V. Plan the 5V supply around that figure rather than relying on an Arduino's 5V pin, which suits only a few pixels or a low brightness setting.

## Agent rules

Follow these when you wire this part or write code for it.

- Do: Always add a 1000µF (≥6.3V) capacitor across VCC/GND at the ring.
- Do: Common GND between Arduino and external supply.
- Do: Data goes to DIN (DOUT is for chaining to the next ring).
- Do: Color order is GRB, not RGB.
- Never: No driving 16+ pixels from Arduino 5V at full brightness (brownout/glitches).
- Never: No wiring data to DOUT.
- Never: No hot-plugging DIN before power is connected.
- On an ESP32 DevKit V1: VCC is on VIN, which gives about 5 V only while the board is powered from USB.
- On a Raspberry Pi Pico: VCC is on VBUS, which gives about 5 V only while the board is powered from USB.

## Pinout

| Pin | Function | Type |
| --- | --- | --- |
| VCC | +5V · 5 V (max 5.5 V) | power in |
| GND | GND | power in |
| DIN | Digital, 1-Wire | input |
| DOUT | Digital, 1-Wire | free |

## Wiring

### Arduino Uno

| NeoPixel Ring 24 | Arduino Uno | Note |
| --- | --- | --- |
| VCC | 5V |  |
| GND | GND |  |
| DIN | D2 | through a 470 Ω resistor |

### ESP32 DevKit V1

| NeoPixel Ring 24 | ESP32 DevKit V1 | Note |
| --- | --- | --- |
| VCC | VIN |  |
| GND | GND |  |
| DIN | GPIO13 (D13) | through a 74AHCT125 buffer powered from 5 V, then the 470 Ω resistor: the WS2812B reads a high from 0.7 × VDD (3.5 V), above a 3.3 V pin |

Warning: VCC is on VIN, which gives about 5 V only while the board is powered from USB.

### Raspberry Pi Pico

| NeoPixel Ring 24 | Raspberry Pi Pico | Note |
| --- | --- | --- |
| VCC | VBUS |  |
| GND | GND |  |
| DIN | GP0 | through a 74AHCT125 buffer powered from 5 V, then the 470 Ω resistor: the WS2812B reads a high from 0.7 × VDD (3.5 V), above a 3.3 V pin |

Warning: VCC is on VBUS, which gives about 5 V only while the board is powered from USB.

## Code

### Arduino Uno

Libraries: adafruit/Adafruit NeoPixel

```cpp
// NeoPixel Ring 24 on Arduino Uno: wiring and a free simulation at https://www.tinkered.ai/components/neopixel-ring-24
#include <Adafruit_NeoPixel.h>

#define LED_PIN     2
#define LED_COUNT   24

Adafruit_NeoPixel ring(LED_COUNT, LED_PIN, NEO_GRB + NEO_KHZ800);

void setup() {
  ring.begin();
  ring.setBrightness(50);  // 50 of 255: full white then draws about 12 mA a pixel (60 mA at full
                           // brightness). Raise it only with an external 5 V supply.
  ring.show();
}

void loop() {
  // Rainbow effect
  for (long firstPixel = 0; firstPixel < 65536; firstPixel += 256) {
    for (int i = 0; i < ring.numPixels(); i++) {
      int hue = firstPixel + (i * 65536L / ring.numPixels());
      ring.setPixelColor(i, ring.gamma32(ring.ColorHSV(hue)));
    }
    ring.show();
    delay(10);
  }
}
```

Compiled for arduino:avr:uno on 2026-10-30.

### ESP32 DevKit V1

Libraries: adafruit/Adafruit NeoPixel

```cpp
// NeoPixel Ring 24 on ESP32 DevKit V1: wiring and a free simulation at https://www.tinkered.ai/components/neopixel-ring-24
#include <Adafruit_NeoPixel.h>

#define LED_PIN     13
#define LED_COUNT   24

Adafruit_NeoPixel ring(LED_COUNT, LED_PIN, NEO_GRB + NEO_KHZ800);

void setup() {
  ring.begin();
  ring.setBrightness(50);  // 50 of 255: full white then draws about 12 mA a pixel (60 mA at full
                           // brightness). Raise it only with an external 5 V supply.
  ring.show();
}

void loop() {
  // Rainbow effect
  for (long firstPixel = 0; firstPixel < 65536; firstPixel += 256) {
    for (int i = 0; i < ring.numPixels(); i++) {
      int hue = firstPixel + (i * 65536L / ring.numPixels());
      ring.setPixelColor(i, ring.gamma32(ring.ColorHSV(hue)));
    }
    ring.show();
    delay(10);
  }
}
```

Compiled for esp32:esp32:esp32 on 2026-10-30.

## Specifications

| Spec | Value | Source |
| --- | --- | --- |
| Supply voltage | 5 V | Tinkered component registry |
| Maximum supply voltage | 5.5 V | Tinkered component registry |
| Interface | 1-Wire | Tinkered component registry |
| Dimensions | 65.5 × 65.5 × 3.6 mm | Tinkered component registry |
| Weight | 6.5 g | Tinkered component registry |

## Circuit notes

- Power the ring from 5V. Each of the 24 pixels can draw up to 60mA at full white, so budget roughly 1.44A of headroom for an all-white frame.
- Drive DIN with the microcontroller data output. Data flows from DIN toward DOUT, and DOUT feeds the next ring's DIN when chaining.
- Place a 300-500 ohm resistor in series on the data line, at the end closest to the first pixel, to protect DIN from voltage spikes.
- Add a 500-1000 uF capacitor rated 6.3V or higher across the +5V and GND terminals to buffer the sudden current changes when many pixels switch at once.
- When driving from a 3.3V microcontroller, add a level shifter such as a 74AHCT125 or 74HCT245 so the 5V pixels see a valid logic-high on DIN.
- If the ring and microcontroller use separate power supplies, tie their grounds together so the data reference is shared.

## Common mistakes

- **Feeding data into DOUT instead of DIN.** Data must enter the DIN pad. DOUT is an output that only chains to the next ring. Follow the DIN and DOUT labels on the board; the ring stays dark or shows garbage if the two are swapped.
- **Omitting the data resistor and power capacitor.** Skipping the 300-500 ohm series resistor on the data line and the 500-1000 uF bulk capacitor across the power rails can damage the first pixel or cause flicker, especially at the moment power is applied.
- **Powering a full ring from the Arduino 5V pin.** A fully lit ring can draw about 1.44A, far more than an Arduino's 5V pin should carry. Use a dedicated 5V source sized for the pixel count and brightness.
- **Driving 5V pixels with bare 3.3V logic.** WS2812 data expects a logic-high near 5V. A raw 3.3V signal is marginal and often unreliable. Add a 74AHCT125 or 74HCT245 level shifter between a 3.3V board and DIN.
- **Connecting power and data in the wrong order.** Connect ground first, then +5V, then data, and apply pixel power before the microcontroller. Adafruit warns that pixels sent data while unpowered try to power themselves parasitically through the data line, which can harm the microcontroller.

## Questions

### What power supply do I need for a 24 LED NeoPixel ring?

A 5 V supply rated for about 1.44 A covers every pixel at full white (24 x 60 mA, Adafruit NeoPixel Uberguide). For typical animations Adafruit's 20 mA per pixel rule of thumb gives about 480 mA. Do not go above 5 V: the WS2812B datasheet lists a VDD range of +3.5 to +5.3 V (p.2).

### How do I connect a NeoPixel Ring 24 to an ESP32?

Power the ring from 5 V, join its GND to the ESP32's GND, and drive DIN from a GPIO through a 300-500 ohm resistor. Because the ESP32 outputs 3.3 V and the original WS2812B datasheet wants 0.7 x VDD (3.5 V) for a logic high (p.3), Adafruit recommends a 74AHCT125 or 74HCT245 level shifter on the data line.

### Why does my NeoPixel ring flicker or reset my board?

Flicker that grows with brightness usually means the supply sags under current: 24 pixels can pull about 1.44 A (Adafruit NeoPixel Uberguide). Add the 500-1000 uF capacitor across the ring's supply, use a separate 5 V source, and share grounds. Random colors on the first pixel point to a missing data resistor or level shifter.

### In what order should I connect a NeoPixel ring?

Adafruit says to connect ground first, then +5V, then data, and to disconnect in reverse (Adafruit NeoPixel Uberguide, Best Practices). With a separate supply, power the pixels before the microcontroller, or they try to draw power through the data line.

### WS2812B or SK6812: which does the Ring 24 use?

Adafruit ships it with either, and both use the same protocol, brightness and color (Adafruit product 1586 page). Configure the Adafruit NeoPixel library with 24 pixels and NEO_GRB + NEO_KHZ800 for both.

## Related parts

- [100nF Ceramic Capacitor](https://www.tinkered.ai/components/capacitor-ceramic.md): wired with it in its circuit
- [NeoPixel Ring 12](https://www.tinkered.ai/components/neopixel-ring-12.md): same job: addressable RGB pixels
- [NeoPixel Ring 16](https://www.tinkered.ai/components/neopixel-ring-16.md): same job: addressable RGB pixels
- [NeoPixel Ring 60](https://www.tinkered.ai/components/neopixel-ring-60.md): same job: addressable RGB pixels
- [NeoPixel Strip](https://www.tinkered.ai/components/neopixel-strip.md): same job: addressable RGB pixels
- [WS2812B RGB Matrix 8×8](https://www.tinkered.ai/components/ws2812b-matrix-8x8.md): same job: addressable RGB pixels

## Try it

Tinkered simulates the NeoPixel Ring 24 in the browser: wire it on a 3D breadboard, run your real code on the board, and measure it. Free to start at https://www.tinkered.ai.
