Same-day dispatch before 2 PM · Free delivery over ₹999 · GST invoices Get the appPrices incl. GST
Geekobot
Snap & SendNEWGeeko AIWhere's myOrder
Log in
Products
  • Projects
    • Component guidesHow parts work, with code you can run
    • Learning pathsFrom your first LED to your first robot
    • Workshops & eventsOnline sessions for makers and classes
    • ElectrolarkFree guided builds, simulator and certificates
    • Students & teachersStudent discount and classroom help
    • CommunityShare builds and ask other makers
    • CalculatorsOhm's law, LED resistor, 555 and 100+ more
    • Circuit builderWire parts and run the circuit, powered by Electrolark
    • Geeko AIAsk what to buy or how to wire it
    • Snap & SendPhotograph a part or list, we find it
    • Part finderAnswer a few questions, get the right part
    • Compatibility checkWill these two parts work together?
    • Compare partsSpecs side by side
    • Business & bulk ordersGST invoices, credit and volume prices
    • Request a quotationSend your list, get a quote
    • Classroom kitsPer-student kits and lab bundles
    • Gift cardsFor students, teams and events
  • Atal Tinkering Lab
BOM to cart
Geekobot

Components, kits and know-how for makers, students, engineers, labs and businesses across India.

Ask Geeko AIOrders, parts and projects, any timeEmail supportReply within 1 working dayGet the Geekobot appAdd it to your home screen, free

Follow us

Shop

  • Boards & SBCs
  • Sensors & Modules
  • IoT & Wireless
  • Drone & FPV
  • 3D Printing
  • Filaments & Resins
  • Motors & Drivers
  • Power & Batteries
  • Semiconductors
  • Passive
  • Displays & LEDs
  • Switches & Relays
  • Wires & Cables
  • Prototyping
  • Tools & Test
  • Robotics
  • STEM Kits
  • Atal Tinkering Lab
  • Mechanical Parts
  • Audio

Orders

  • Track your order
  • Help & support
  • Shipping and delivery
  • Refunds and cancellation
  • Contact us

Learn

  • Projects
  • Geeko AI project assistant
  • Learning paths
  • Guides
  • Calculators
  • Electrolark: free guided builds

Part tools

  • Part finder
  • Compare parts
  • Will it work with my board?

Institutions

  • Classroom kits
  • Atal Tinkering Lab
  • Students & teachers
  • Workshops & Events

Business

  • Business & education
  • Request a quotation
  • BOM bulk upload
  • Quick order by SKU

Company

  • About Geekobot
  • Community
  • Gift cards
  • Terms & conditions
  • Privacy policy
  • Product directory
  • Sitemap

© 2026 Geekobot, a trade name of OLatus Systems Private Limited. All rights reserved.

20, 1st Floor, Neeladri Complex, 10th Cross, Sampige Rd, 2nd Main, Malleshwaram, Bengaluru, Karnataka 560003 · GSTIN 29AACCO0462F1ZM

+91 91810 15607 · connect@geekobot.in · Monday to Saturday, 10 AM to 2 PM IST

UPI · CARDS · NETBANKING · GST INVOICES

ShopProjectsGeeko AIGuides
Compare 0 parts →
Log in

Shop by category

Shop all components
  • Boards & SBCs1,910 products
    • Alternative Single Board Computers
    • Arduino Ecosystem
    • FPGA & Logic Boards
    • Microcontroller & Wireless Boards
    View all
  • Sensors & Modules4,701 products
    • Biomedical & Heart Rate
    • Current, Voltage & Power
    • Force, Weight & Pressure
    • Gas, Weather & Environmental
    View all
  • IoT & Wireless2,314 products
    • RF Modules
    • RFID & NFC
    • Antennas & RF Accessories
    • Cameras & Smart Vision
    View all
  • Drone & FPV3,558 products
    • Flight Control & Navigation
    • FPV Video & Optics
    • Frames & Structural Parts
    • Motors & Propulsion
    View all
  • 3D Printing2,204 products
    • 3D Printers
    • 3D Scanners & Digitizers
    • Laser Engravers & Cutters
    • Material Management & Upgrades
    View all
  • Filaments & Resins1,472 products
    • Filaments
    • Photopolymer Resins
    View all
  • Motors & Drivers463 products
    • BLDC Motor Drivers
    • DC & Geared Motors
    • DC Motor Drivers
    • Linear Actuators & Solenoids
    View all
  • Power & Batteries557 products
    • Battery Holders & Connectors
    • Breadboard Power
    • Chargers & BMS
    • DC-DC Converters
    View all
  • Semiconductors295 products
    • Diodes & Rectifiers
    • Interface & RF Encoder ICs
    • Logic ICs (74xx)
    • Logic ICs (CD4000)
    View all
  • Passive67 products
    • Capacitors
    • Circuit Protection
    • Crystals & Oscillators
    • Inductors
    View all
  • Displays & LEDs572 products
    • 7-Segment & Dot Matrix
    • Addressable LEDs
    • Character LCDs
    • Graphic LCDs
    View all
  • Switches & Relays184 products
    • Keypads & Touch
    • Push Buttons & Tactile
    • Relay Modules
    • Relays
    View all
  • Wires & Cables233 products
    • Board-to-Wire Connectors
    • Crimp & Splice
    • Headers & Dupont
    • Heat Shrink & Sleeving
    View all
  • Prototyping101 products
    • Breadboards
    • Interface Modules
    • PCBs & Perfboards
    View all
  • Tools & Test717 products
    • Bench Power Supplies
    • Hand Tools
    • Measuring Tools
    • Meters & Testers
    View all
  • Robotics180 products
    • Humanoid & Legged Robots
    • Robot Chassis & Platforms
    • Robotic Arms & Grippers
    • Wheels & Casters
    View all
  • STEM Kits268 products
    • Arduino Learning Kits
    • Coding & IoT Kits
    • Early Coding (Ages 3-8)
    • Invention Kits
    View all
  • Atal Tinkering Lab196 products
    • Package 1: Electronics, Robotics, IoT and Sensors
    • Package 2: Rapid Prototyping Tools
    • Package 3: Mechanical, Electrical and Measurement Tools
    • Package 4: Power Supply, Accessories and Safety Equipment
    View all
  • Mechanical Parts212 products
    • Bearings
    • Brackets & Mounts
    • Couplers
    • Fasteners & Standoffs
    View all
  • Audio109 products
    • Amplifier Modules
    • Buzzers & Sirens
    • Speakers
    View all
  1. Home
  2. ›Guides
  3. ›Displays & LEDs
  4. ›WS2812B Addressable LEDs (NeoPixel)
Step 3 of 17 in Displays and lightsPart of a learning path.
Next

How-to · Intermediate · 3 min read

WS2812B Addressable LEDs (NeoPixel)

Power, Wiring and Code

By Geekobot Learning Team · Updated 24 Oct 2026

On this page
Short answerHow addressable LEDs workHow much power does a WS2812B strip need?Wiring WS2812B the reliable wayFastLED exampleWS2812B vs WS2811 vs SK6812 vs WS2815Try itCommon mistakesFAQsParts and next steps
Short answer

WS2812B LEDs (often called NeoPixels) contain a red, green and blue LED plus a tiny controller, so each LED on a strip can be set to any colour from one data pin. They run on 5 V and each can draw up to about 60 mA at full white, so a 60-LED strip needs a 5 V 4 A supply. Add a 330 Ω data resistor and a 1000 µF capacitor.

Key specs at a glance

Supply
5 V (3.5 to 5.3 V)
Current per LED
Up to about 60 mA at full white; about 20 mA per colour
Data
Single wire, 800 kHz, 24-bit GRB colour
Data high threshold
0.7 x VDD (3.5 V at 5 V)
Common densities
30, 60, 144 LEDs per metre
Libraries
FastLED, Adafruit NeoPixel
01

How addressable LEDs work

Each WS2812B reads the first 24 bits of colour data it receives, keeps them, and passes the rest along to the next LED. Sending 60 x 24 bits sets a 60-LED strip. Because the data path runs one way, data must enter at the DIN end, marked with arrows on the strip.

02

How much power does a WS2812B strip need?

Worst case (all LEDs full white): LEDs x 60 mA. Real animations average 20 to 30% of that, but size the supply for at least the worst case you will allow in code.

StripMax currentSuggested 5 V supply
8-LED stick or ring0.5 AUSB or board 5 V for testing
30 LEDs (0.5 m at 60/m)1.8 A5 V 2 A
60 LEDs (1 m at 60/m)3.6 A5 V 4 A
150 LEDs (5 m at 30/m)9 A5 V 10 A, inject power
300 LEDs (5 m at 60/m)18 A5 V 20 A, inject every 1 to 1.5 m
8-LED stick or ring
Max current:
0.5 A
Suggested 5 V supply:
USB or board 5 V for testing
30 LEDs (0.5 m at 60/m)
Max current:
1.8 A
Suggested 5 V supply:
5 V 2 A
60 LEDs (1 m at 60/m)
Max current:
3.6 A
Suggested 5 V supply:
5 V 4 A
150 LEDs (5 m at 30/m)
Max current:
9 A
Suggested 5 V supply:
5 V 10 A, inject power
300 LEDs (5 m at 60/m)
Max current:
18 A
Suggested 5 V supply:
5 V 20 A, inject every 1 to 1.5 m
03

Wiring WS2812B the reliable way

  1. 1
    Power: connect the strip's 5V and GND directly to a 5 V supply, not through the microcontroller.
  2. 2
    Capacitor: put a 1000 µF, 6.3 V or higher electrolytic across 5V and GND at the strip's input.
  3. 3
    Data resistor: put a 300 to 500 Ω resistor in series between the data pin and DIN, close to the strip.
  4. 4
    Common ground: connect the supply ground to the microcontroller ground.
  5. 5
    Power injection: on long strips, run extra 5V and GND wires to every 1 to 2 m so the far end does not turn orange or dim.

ESP32 and Pico: their 3.3 V data is below the 3.5 V the LEDs expect. It often works on short leads, but for reliability add a 74AHCT125 level shifter powered from 5 V.

04

FastLED example

Rainbow on a WS2812B strip (FastLED) · Arduino C++Verify & upload in Electrolark
#include <FastLED.h>

#define DATA_PIN 6
#define NUM_LEDS 60
CRGB leds[NUM_LEDS];

void setup() {
  FastLED.addLeds<WS2812B, DATA_PIN, GRB>(leds, NUM_LEDS);
  FastLED.setMaxPowerInVoltsAndMilliamps(5, 2000);   // cap at 2 A
  FastLED.setBrightness(80);
}

void loop() {
  static uint8_t hue = 0;
  fill_rainbow(leds, NUM_LEDS, hue++, 255 / NUM_LEDS);
  FastLED.show();
  delay(20);
}
05

WS2812B vs WS2811 vs SK6812 vs WS2815

TypeVoltageDifferenceChoose it for
WS2812B5 VController inside each LEDMost projects, rings, matrices
WS281112 VOne controller per 3 LEDsLong runs, building outlines
SK6812 RGBW5 VAdds a true white LEDBetter whites and room lighting
WS281512 VBackup data line keeps strip working if one LED failsLong installations
WS2812B
Voltage:
5 V
Difference:
Controller inside each LED
Choose it for:
Most projects, rings, matrices
WS2811
Voltage:
12 V
Difference:
One controller per 3 LEDs
Choose it for:
Long runs, building outlines
SK6812 RGBW
Voltage:
5 V
Difference:
Adds a true white LED
Choose it for:
Better whites and room lighting
WS2815
Voltage:
12 V
Difference:
Backup data line keeps strip working if one LED fails
Choose it for:
Long installations
06

Try it: LED strip power calculator

Change the values and the diagram and results update as you type.

07

Common mistakes to avoid

  • !Powering more than a few LEDs from the Arduino or ESP32 5 V pin.
  • !Feeding data into the DOUT end of the strip.
  • !Skipping the common ground between the supply and the microcontroller.
  • !Leaving out the input capacitor; the first LED often dies from power-on spikes.
  • !Running long strips from one end only, so the colours drift and wires overheat.
08

Frequently asked questions

How much power does a WS2812B LED strip use?

Up to about 60 mA per LED at full white, so 60 LEDs need up to 3.6 A at 5 V. Typical animations use far less; you can cap power in FastLED.

Can I power WS2812B LEDs from Arduino?

Only a handful of LEDs at low brightness for testing. Use a separate 5 V supply for strips, with a shared ground.

Do WS2812B LEDs work with ESP32?

Yes, and short runs often work directly from 3.3 V data. For reliable results, add a 74AHCT125 level shifter, and use the FastLED or NeoPixelBus library with RMT support.

Why are my LEDs flickering or showing wrong colours?

Common causes: no common ground, missing data resistor, 3.3 V data level, a long data wire, or the wrong colour order (use GRB for WS2812B).

What is the difference between WS2812 and WS2812B?

The WS2812B is the improved version with four pins instead of six, better heat handling and reverse-polarity protection. Code and libraries treat them the same.

Parts for this guide

  • WS2812B Addressable RGB LED Strip (60 LEDs/m)
    ₹2,800View
  • WS2812 RGB LED Ring
    ₹233View
  • WS2812 Flexible RGB LED Matrix Panel
    ₹699View
  • Electrolytic Capacitor
    ₹16View
Shop Addressable LEDsShop SMPS & Adapters

Calculators

LED strip power calculator

Terms in this guide

Addressable LEDAn LED with a built-in controller, such as the WS2812B, so each LED on a chain can be set individually from one data pin.Power injectionFeeding power into a long LED strip at several points to prevent voltage drop and colour shift.Logic levelThe voltage that represents a digital high: 5 V on classic Arduinos, 3.3 V on ESP32, Pico and Raspberry Pi.PWMPulse-width modulation: switching a signal on and off quickly so its average sets brightness, speed or position.

Projects that use it

Put this into practice: 78 step-by-step builds in our project library use parts from this guide.

Beginner · 1 hourRemote-controlled RGB mood lightView projectIntermediate · 1–2 hoursColour detector with RGB ringView projectBeginner · 1 hourAir-quality traffic-light ringView project
Browse all 78 projects

Keep learning

Component guideBeginnerLEDs ExplainedAn LED (light-emitting diode) lights when current flows from its longer leg (anode, +) to its shorter leg (cathode, -).3 min read · Displays & LEDsHow-toIntermediate3.3 V vs 5 V LogicYou need level shifting when a 5 V device sends signals to a 3.3 V board such as an ESP32 or Raspberry Pi Pico, because 5 V on their pins can damage them.4 min read · Prototyping & WiringComponent guideBeginnerRaspberry Pi Pico GuideThe Raspberry Pi Pico is a low-cost 3.3 V microcontroller board, not a computer: it runs one program and has no operating system.4 min read · Boards & MicrocontrollersComponent guideBeginnerESP32 GuideThe ESP32 is a low-cost 3.3 V microcontroller from Espressif with built-in Wi-Fi and Bluetooth, used for IoT devices, smart-home controllers and web dashboards.5 min read · Boards & Microcontrollers

Sources

  • WS2812B intelligent control LED datasheet (Worldsemi)
  • SK6812 datasheet (Opsco)
  • Adafruit NeoPixel Uberguide
  • FastLED library documentation

Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

On this page
Short answerHow addressable LEDs workHow much power does a WS2812B strip need?Wiring WS2812B the reliable wayFastLED exampleWS2812B vs WS2811 vs SK6812 vs WS2815Try itCommon mistakesFAQsParts and next steps
Need a hand?Ask Geeko AI which part fits your project, or talk to the Geekobot team.Ask Geeko AIHelp & support

Parts for this guide4 items · ₹3,748

WS2812B Addressable RGB LED Strip (60 LEDs/m) · WS2812 RGB LED Ring · WS2812 Flexible RGB LED Matrix Panel · Electrolytic Capacitor

Run itChange the inputs and watch the output
60 LEDs (first 24 shown)
373 mAAbout

A simulation of the sketch above, so you know what to expect. Real readings vary with your parts and wiring.

Ask the Community

Ask a question