← How-Tos
electronics May 7, 2026 ◑ 2 views ◯ 1 min read

How to Program Addressable LED Strips: WS2812B Patterns, Effects, and Power Design

ledws2812bneopixeladdressablergbarduinoesp32fastledpatternspoweranimations

Introduction

WS2812B addressable LED strips (also called NeoPixels) are one of the most visually impactful components in maker electronics. Each LED on the strip contains a tiny controller chip that lets you set its color and brightness individually using a single data wire. The result is stunning animations, ambient lighting, and interactive displays limited only by your imagination and power supply. This guide covers the complete WS2812B workflow: wiring, power calculations, the FastLED and Adafruit NeoPixel libraries, coding effects from simple fades to complex patterns, and solving common problems like voltage drop and signal degradation.

What You Need

Step 1: Power Calculations

WS2812B LEDs draw approximately 60mA at full white (20mA per RGB channel). Power scaling:

Rule of thumb: Size your power supply for 60% of max (you rarely run full white): 5m roll โ†’ 10A supply.

Step 2: Wiring

Basic Connection (Short Strip 50 LEDs)

Voltage drop is the #1 problem with LED strips. At 18 AWG, every meter of wire drops ~0.1V at 3A.

  1. Connect 5V and GND to BOTH ends of the strip
  2. For 5m+ strips: inject power every 2-2.5 meters
  3. Use thicker wire (16 AWG) for power runs
  4. All grounds must be common โ€” never create ground loops

Signal Integrity