Skip to content
Resinchem edited this page Jun 20, 2024 · 7 revisions

A basic controller for motion-activated LED strips (WS2812b)

This repository contains the code for a basic ESP8266 controller that will turn on a strip of LED lights, based on motion from one or two different motion detectors. Two detectors might be used in a situation such as stairs, where you want the lights to come on whether there is motion at the top or bottom of the stairs. After a user-defined time, the lights will automatically turn off until motion is detected again.

This is a very basic version. It only contains a few simple lighting effects, and does not offer palettes, segments or other advanced features like WLED. However, in addition to adding activation via motion, it does allow you to select a basic effect, color and brightness of the LEDs. Each motion detector can have its own effect and color.

It also has the advantage of being completely standalone. No automation platform, hub, or anything other than local wifi is required for functionality.

For instructions on building and wiring the controller, you may watch on overview video on YouTube or find full instructions and diagrams on the related blog article Simple Motion-Activated LED Light Strip Controller

See the other items in this wiki for more details on installing and configuring the firmware for your controller.