If what you're looking for is missing, call us — we'll help you find it

Beginner Projects

WS2812B Mood Lamp

A colour-changing lamp from a 24-LED ring with smooth fades.

WS2812B Mood Lamp — main component

Overview

Each WS2812B LED carries its own driver chip, so one data pin sets every colour. Smooth fades between palettes make an attractive first addressable-LED project.

Build Steps

  1. Wire power and data

    Ring 5 V and ground to a supply that can feed the LEDs; data from a digital pin through a 330 Ω resistor.

  2. Send colours

    Set each LED with one RGB value in a strip library and show the frame.

  3. Animate the fade

    Interpolate between palette colours over a few seconds so the transitions stay smooth.

  4. Add a dimmer

    Use the LDR module on an analog pin to keep the lamp dim in daylight.

Related Projects