KACHANGยทSIA
SYSTEM OK
Home  /  Blog  /  ESP8266 WiFi LED Controller

ESP8266 WiFi LED Controller โ€” Control Lights From Your Phone

A $5 microcontroller, a $5 relay, and a $10 LED strip โ€” and your phone is the remote control. This page covers what an ESP8266 LED controller can actually do, when it makes sense to build one versus buying a ready-made smart controller, and the simplest path from parts to a working phone-controlled light show.

// CAPABILITIES

What an ESP8266 LED controller can actually do.

An ESP8266 LED controller is exactly what it sounds like โ€” a board that speaks WiFi, drives an LED strip or relay, and exposes a tiny web page that turns your phone (or any browser) into a remote. The "smart" part is a few hundred lines of Arduino code that does three things.

  • Standalone AP network โ€” the ESP8266 broadcasts its own WiFi (default name something like EventLights). Join it from your phone, open 192.168.4.1, and the buttons on the page switch the lights. No router needed, no internet, no app to install.
  • Station mode โ€” the ESP8266 joins your home WiFi as a normal client, like a printer. Visit the IP address from any phone on the same network; multiple phones can control at once.
  • DMX listener (advanced) โ€” wire a $1 MAX485 chip and the controller listens to a DMX chain from a lighting desk, so your lights sync to a real DJ / pro show.

That's the floor. From there you can add presets ("ceremony", "dinner", "dance floor"), timers, sensor triggers, MQTT to Home Assistant, Blynk, or whatever protocol the project needs. The firmware stays tiny โ€” the whole stack fits in under 200 KB of flash, leaving most of the 4 MB NodeMCU board free.

// HONEST COMPARISON

Ready-made vs DIY โ€” when to pick which.

The ready-made smart LED controllers on the market (Magic Home, Govee, Shelly, Hue Bridge, etc.) are real, they're not bad, and they cover most home use cases. The DIY path isn't cheaper-everywhere, faster-everywhere, or "always better". It's a different point on the same curve โ€” and the right choice depends on what you're trying to do.

DimensionReady-made ($50โ€“100)ESP8266 DIY ($10โ€“30 parts)
Up-front costHigherLower
Time-to-first-light10 minutes (plug in, scan QR)30โ€“90 minutes (assemble, flash, debug)
Voice assistants (Alexa / Google)Often out of the boxPossible via bridge; not day-one
Number of zonesTypically 1โ€“2 per controller4โ€“8 zones from one $5 board
DMX sync from a DJ consoleLimited / rareDesigned in ($1 MAX485)
Offline reliability (venue with bad WiFi)Often needs a cloudAP mode โ€” no internet needed
Repair when it breaks in 3 yearsBuy a new oneSwap a $5 ESP8266
Privacy / no cloud accountMixedYours โ€” no account needed

The honest recommendation

If you want one room of lights that respond to a phone and to voice, buy a ready-made smart controller. They're polished, they have apps, and they just work. If you need event reliability โ€” 4โ€“8 zones in a marquee where WiFi is unpredictable โ€” or you want DMX sync from a real lighting desk, the DIY ESP8266 path pays off.

The hybrid answer: many builders run an ESP8266 controller for events and a ready-made for everyday home. They aren't mutually exclusive.

// BUILD ONE: PARTS LIST

What to buy for a 4-zone controller.

The list below builds a 4-zone relay controller that runs on/off zones of 12V LED strips, with phone control over WiFi. Total cost lands around $25โ€“30 if you're starting from scratch.

PartCostWhat to look for
ESP8266 (NodeMCU v3 or Wemos D1 mini)$4โ€“6Any board with the ESP-12E module and a USB port works
4-channel relay module (5V, active-low)$3โ€“5Opto-isolated is safer; common modules without isolation are fine for low-voltage DC loads
12V LED strip (or 12V AC-DC fixtures)$10โ€“25 / 5 mAny single-colour or RGB strip works for on/off; the relay sees only one wire per zone
12V power supply, sized for the strip$8โ€“18Total wattage = strip length (m) ร— watts-per-metre ร— 1.25 (headroom)
USB 5V supply for the ESP8266$3โ€“6An old phone charger works; must be regulated 5V
Breadboard + jumper wires$3โ€“6For prototyping; switch to screw terminals for permanent installs
Inline fuse (5โ€“10A automotive blade)$1Place between the 12V supply and the strip's + line
// WIRING + FLASH OVERVIEW

From parts to phone-controlled lights.

The build sequence below assumes you're using a 4-channel relay module. If you have a different setup (single-channel relay or addressable WS2812B strip), the principles are identical; the GPIO assignments change.

POWER WIRING

Two supplies, common ground

   USB 5V charger
   โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
   โ”‚ +5V โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ–บ ESP8266 VU (USB)
   โ”‚ GND โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ–บ ESP8266 GND โ”€โ”€โ”
   โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜                   โ”‚
                                 common GND
   12V supply                    (tie them!)
   โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”                   โ”‚
   โ”‚ +12V โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ–บ Relay COM (4 channels)
   โ”‚ GND โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ–บ Relay GND โ”€โ”€โ”€โ”˜
   โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Common ground is non-negotiable. Without it, the relay's input side can't reference the ESP8266's GPIO and the relay stays silent.

SIGNAL WIRING

GPIOs to relay inputs

   ESP8266 (NodeMCU)            4-channel relay module
   โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”             โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
   โ”‚ D1 (GPIO5)   โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–บ IN1
   โ”‚ D2 (GPIO4)   โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–บ IN2
   โ”‚ D5 (GPIO14)  โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–บ IN3
   โ”‚ D6 (GPIO12)  โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–บ IN4
   โ”‚ 5V (VU)      โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–บ VCC
   โ”‚ GND          โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–บ GND
   โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜             โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

   Each relay output: COM โ†’ 12V+, NO โ†’ strip +, 
   relay GND โ†’ 12V supply GND

Most modules are active-low โ€” write the GPIO LOW to switch the relay ON. Test with the blink sketch first.

Flash the firmware

  1. Install the Arduino IDE (free) and add the ESP8266 board package โ€” one URL in Preferences โ†’ Additional Boards URLs.
  2. Open your chosen sketch (AP mode, WiFi mode, or DMX mode), select NodeMCU 1.0 (ESP-12E) as the board.
  3. For WiFi mode: edit the two lines for your WiFi name and password. For AP mode: leave them blank โ€” the ESP creates its own network.
  4. Press Upload. The serial monitor (115200 baud) shows the controller's IP address when it boots.

Control from your phone

The exact URL depends on the mode you flashed โ€” but it's always printed in the serial monitor and shown on the first connection.

  • AP mode: join the WiFi network EventLights (default password usually eventlights) โ†’ open 192.168.4.1 in any browser.
  • WiFi mode: from any phone on the same home WiFi, open the IP address shown in the serial monitor (something like 192.168.1.42).

AP mode is the beginner-friendliest. No router needed, no passwords to set up, no internet. It works at a marquee, a friend's house, or a venue with deliberately-blocked guest WiFi. Once that works, WiFi mode is a one-line config change.

// WHEN AN ESP8266 BEATS A SMART CONTROLLER

Three scenarios where DIY actually wins.

It's not about the hardware โ€” a $5 ESP8266 is impressive, but the real win is the firmware you put on it. Here's where the ROI shows up.

  • Event reliability โ€” 4 zones of relay-controlled 12V strips, AP-mode fallback if venue WiFi dies, and DMX sync from a DJ desk. None of those are features on a $50 smart bulb.
  • Repair over replacement โ€” when the controller dies (and any controller will, eventually), you swap a $5 board and re-flash. No new app, no new cloud account, no new privacy policy.
  • Privacy โ€” no cloud account, no traffic to remote servers, no company learning when your lights turn on. The whole project lives on your network.
// THE COMMERCIAL ALTERNATIVE

Skip the soldering with 4 zones, 3 modes, one $19 download.

The Event Lighting Control pack from Kachang Sia is a DIY controller built for exactly this: 4 zones, phone control (AP web + WiFi app), and 3 firmware modes (AP web, WiFi, DMX sync) in one $19 download. The wiring diagrams are redrawn from real event setups โ€” weddings, parties, exhibitions โ€” so you skip the months of trial and error.

๐Ÿ‘‰ See the ESP8266 Event Lighting Pack ($19)
// FAQ

Quick answers before you start.

Do I need an existing WiFi router to use an ESP8266 controller?

No. AP mode lets the ESP8266 create its own WiFi network (usually named something like EventLights) โ€” your phone joins that network directly. This is the easiest mode for first builds and for venues with no internet. When you want it to live on your home network with Home Assistant or a phone app, you switch it to WiFi mode and fill in your network name and password.

Can an ESP8266 controller replace a $50 smart LED controller?

For simple on/off and dimming, yes. For permanent home installs with HomeKit / Alexa / Google integration out of the box, ready-made is easier because the ecosystem support is already there. For event reliability, multi-zone control, and DMX sync, a DIY ESP8266 setup does more for less money. Many builders run an ESP8266 controller for events and a ready-made for home โ€” they aren't mutually exclusive.

What's the range of an ESP8266's WiFi?

Roughly 30โ€“50 m in open air with the onboard antenna, much less through walls and dense structures. For a wedding in a marquee or a small venue, it covers the space comfortably. For larger venues you'll likely need one controller per zone, each acting as its own AP โ€” that's the standard event setup and is usually cheaper than trying to extend range with bigger antennas.

Can I use this with voice assistants (Alexa, Google)?

It's possible through bridging โ€” Tasmota + Alexa, or MQTT + a Home Assistant instance that exposes the lights to Google โ€” but it's not plug-and-play out of the box. Each step takes an afternoon. If you need "Alexa, turn off the uplights" on day one, a ready-made smart controller is faster; if you have one weekend to spare and want the flexibility long-term, the bridge works fine.

// ABOUT THE AUTHOR

Who wrote this guide.

๐Ÿ‘ท

About the author: Jack Loh is an electronics & coding builder based in Singapore. He builds ESP8266 controllers for real event jobs โ€” weddings, parties, exhibitions โ€” and sells the firmware and wiring guides from his own builds.

The honest comparison above comes from running both kinds of controllers on real jobs โ€” ready-made boxes on home installs, DIY ESP8266 controllers on the events where the lights have to work the first time.