Function: what a NeoPixel ring does in a circuit
NeoPixels arranged in a circle (12, 16 or 24): clocks, compasses, loading spinners.
- Shows colours and animations on a circle of pixels
- Lets one data pin control every pixel separately
- Makes clocks, gauges and spinning effects
NeoPixel ring key facts
| Pixels | 12 WS2812B LEDs in a ring (16 and 24 also exist) |
|---|---|
| Supply | 5 V |
| Current | up to 60 mA per pixel: about 0.7 A for 12 at full white |
| Pins | DIN, 5V, GND |
| Library | Adafruit_NeoPixel |
Pinout
The connections, in the order they appear on the part:
| No. | Name |
|---|---|
| 1 | DIN |
| 2 | 5V |
| 3 | GND |
How to connect a NeoPixel ring to an Arduino
Connect DIN to a digital pin (often 6), 5V to 5V and GND to GND.
How it works
The pixels are chained: DIN goes into pixel 0 and each passes data to the next, around the ring. Number them 0 to N−1 in code. Choose the size in Part settings, and make it match the first number in Adafruit_NeoPixel ring(N, PIN, NEO_GRB + NEO_KHZ800).
What it is made of
Where the materials come from: Gallium and indium as by-products of aluminium and zinc refining.
The chemistry
A blue LED made from indium gallium nitride glows because electrons drop across a band gap of about 2.7 eV, giving blue photons.
Biology connection
A 12-pixel ring is a natural clock face: our sense of time is set by the body's internal clock in the brain. How the eye sees →
Safety and the environment
24 pixels at full white take about 1.4 A: keep setBrightness() low when powered from USB.
Did you know? Shuji Nakamura, Isamu Akasaki and Hiroshi Amano won the 2014 Nobel Prize for the blue LED that made white and RGB LEDs possible.
Electromagnetic spectrum Elements inside: InGaNSiCuSn
Try it in the simulator
Add it in Free build: DIN to pin 6, 5V, GND. Light the pixels one by one in a loop for a spinner.
Questions students ask
What does a NeoPixel ring do?
NeoPixels arranged in a circle (12, 16 or 24): clocks, compasses, loading spinners. Main functions: shows colours and animations on a circle of pixels; lets one data pin control every pixel separately; makes clocks, gauges and spinning effects.
Can I power a NeoPixel ring from the Arduino 5V pin?
Yes at low brightness. A 12-pixel ring at full white needs about 0.7 A, which is more than USB gives, so call setBrightness(50) or use a separate 5 V supply.
What are the connections of a NeoPixel ring?
In order: DIN, 5V, GND.
How do I connect a NeoPixel ring to an Arduino?
Connect DIN to a digital pin (often 6), 5V to 5V and GND to GND.
How does a NeoPixel ring work?
The pixels are chained: DIN goes into pixel 0 and each passes data to the next, around the ring. Number them 0 to N−1 in code. Choose the size in Part settings, and make it match the first number in Adafruit_NeoPixel ring(N, PIN, NEO_GRB + NEO_KHZ800).
What is a NeoPixel ring made of?
Pixels: WS2812B LEDs with built-in controllers. Ring: Circuit board with copper tracks.
Is a NeoPixel ring safe? How should it be recycled?
24 pixels at full white take about 1.4 A: keep setBrightness() low when powered from USB.
More light, sound and displays
Connected tools
The same idea from another angle, across the site.