I Lost My Christmas Light Remote, So I Built One With an Arduino
A lost Christmas light remote and a string stuck in demo mode
All I wanted was solid color.
My Brizled 200-LED string lights switch between warm white and multicolor and have eleven lighting modes. The remote went missing sometime after last Christmas. Without it, the lights start up in demo crazy mode, cycling through every pattern they know.
A button on the power adapter steps through the modes, so at first this looked like a non-problem. Then I flipped the wall switch. The controller forgets its setting when power is cut, so every evening began with me crouched at the outlet clicking through patterns. The button also can’t change the brightness.
This is how a missing remote became an Arduino project, with the wiring and code to build your own.
First I tried to get a replacement remote the normal way
The sensible fix was a replacement remote. Sellers of cheap LED lights will often mail one for free if you ask. Asking was the hard part.
Step one was finding the original order on Amazon. The lights are a few years old, and between archived orders and a search box that would rather sell me new lights, the order would not turn up. No order meant no “contact seller” button.
Step two was customer service, where I landed in a loop with an AI chatbot. I explained that I needed to reach a seller about a remote. It offered to help me with my order. I explained that finding the order was the problem. It offered to help me with my order. We did this for a while.
The fallback was buying one. Brizled lists a 19-key replacement on Amazon, and both listings said “currently unavailable.” A universal remote was no use either, since none ship with codes for off-brand Christmas lights.
Somewhere in that loop I remembered the Arduino starter kit in a drawer that I hadn’t touched in ten years. And yes, I’m aware of the irony: I escaped one AI chatbot by asking another to help me build the thing myself.
How an Arduino can replace an infrared remote
Most cheap light remotes are infrared, the same technology as a TV remote. Each button flashes an invisible LED in a coded pattern, and a sensor on the lights’ power adapter reads it. An Arduino with an infrared LED can flash the same patterns. The hard part is knowing which patterns to send when the original remote is gone.
Parts list
Everything except the infrared LED came from an official Arduino Starter Kit.
| Part | Qty | Notes |
|---|---|---|
| Arduino Uno | 1 | Any ATmega328 board works |
| Breadboard | 1 | The 30-row one from the kit |
| Infrared LED | 1 | Pulled from the front of a dead TV remote |
| BC547 transistor | 1 | Boosts the LED for range |
| 220 Ω resistor | 4 | Red, red, brown |
| 1k resistor | 1 | Brown, black, red |
| Pushbutton | 4 | Color, white, brighter, dimmer |
| Jumper wires | 12 |
One warning about the starter kit: it does not include an infrared LED. It has six clear parts that look exactly like LEDs, and they are phototransistors, which detect light and emit none. I learned this the slow way.
On the software side you need the Arduino IDE and the IRremote library.
Finding the IR codes without the original remote
The usual way to clone a remote is to point it at a receiver and record what it sends. With no remote, I had to guess.
Guessing is less hopeless than it sounds. Cheap remotes almost all use the NEC protocol, where every button press is an 8-bit address plus an 8-bit command. That is 256 possible commands per address, and an Arduino can fire all of them in about a minute.
So the first sketch was a brute-force sweep: loop through a handful of common addresses, send every command on each, and watch the lights for a reaction.
#include <IRremote.hpp>
const uint16_t addrs[] = {0x02, 0x00, 0x01, 0x04, 0x80, 0xEF00, 0xFF00};
void setup() {
Serial.begin(115200);
IrSender.begin(3);
}
void loop() {
for (uint16_t a : addrs) {
for (uint16_t c = 0; c < 256; c++) {
Serial.print("addr 0x"); Serial.print(a, HEX);
Serial.print(" cmd 0x"); Serial.println(c, HEX);
IrSender.sendNEC(a, c, 0);
delay(200);
}
}
Serial.println("Sweep done");
while (true) {}
}
My first sweeps did nothing to the lights. They did operate my TV, which uses the same protocol and accepted every command meant for it. If you try this, aim away from the television.
The break came from the Flipper-IRDB project, a community library of remote captures for the Flipper Zero. Someone had recorded the remote for Brizled’s icicle lights, and it used NEC address 0x02, which wasn’t in my original list. I added it and the lights responded on the first pass.
With the address known, I stepped through the commands one at a time and wrote down what each did. The icicle capture also supplied the two brightness codes, which matched my string exactly.
Brizled LED string light IR codes (NEC, address 0x02)
| Command | Function |
|---|---|
| 0x00 | On |
| 0x02 | Off |
| 0x06 | Steady white |
| 0x08 | Steady multicolor |
| 0x18 | Brightness down |
| 0x1A | Brightness up |
| 0x05 | Fast change between color and white |
| 0x0A | Flashing white |
| 0x0C | Flashing color |
| 0x01 | Timer off |
| 0x04 | 6-hour timer |
These are for the 200-LED warm white and multicolor set. Brightness has four levels and only shows in the steady modes.
Wiring the Arduino IR remote
The first version drove the infrared LED straight from an Arduino pin through a 220 Ω resistor. That is about 17 mA, and it worked from roughly four inches away. Fine for finding codes, useless as a remote.
The fix is a transistor. Pin 3 switches a BC547, and the LED draws its current from the 5V rail through four 220 Ω resistors in parallel, which behave as one 55 Ω resistor. That is about 65 mA, and the range went from four inches to about 20 feet. The kit has no resistor smaller than 220 Ω, which is why there are four of them side by side.
All of this sits on the a–e side of a standard breadboard. The four buttons straddle the center groove.
Top to bottom: the two brightness buttons, the infrared circuit in rows 10 to 16, then the color and white buttons. The tables below list every hole.
Arduino to breadboard
| Arduino pin | Breadboard | Job |
|---|---|---|
| 5V | + rail | Power for the LED |
| GND | − rail | Ground |
| 3 | a16 | Signal to the transistor |
| 4 | a20 | Color button |
| 5 | a25 | White button |
| 6 | a2 | Brightness up button |
| 7 | a6 | Brightness down button |
Components
| Part | Holes |
|---|---|
| 220 Ω resistors, four | Each from the + rail to row 10: a10, b10, c10, d10 |
| Infrared LED | Anode in e10, cathode in e11 |
| BC547 transistor | Collector c11, base c12, emitter c13 |
| 1k resistor | b12 to b16 |
| Brightness up button | Across the groove, rows 2 and 4 |
| Brightness down button | Across the groove, rows 6 and 8 |
| Color button | Across the groove, rows 20 and 22 |
| White button | Across the groove, rows 25 and 27 |
Ground jumpers
Five short jumpers run to the − rail, from a4, a8, a13, a22 and a27. The first two and last two ground the buttons. The one at a13 grounds the transistor’s emitter.
The buttons need no resistors, because the sketch turns on the Arduino’s internal pull-ups. Each button connects its pin to ground when pressed.
The Arduino sketch
The finished sketch is short. It does two jobs: it handles the four buttons, and it sends “on, steady color” three seconds after power-up. That second job is the one that fixed my original complaint. Put the Arduino on the same switch as the lights, and every time they wake up in demo mode it corrects them a few seconds later.
#include <IRremote.hpp>
const int COLOR_BTN = 4;
const int WHITE_BTN = 5;
const int UP_BTN = 6;
const int DOWN_BTN = 7;
void sendCmd(int c) {
IrSender.sendNEC(0x02, c, 0);
delay(300);
}
void sendMode(int mode) {
sendCmd(0x00); // on
sendCmd(mode);
}
bool pressed(int pin) {
if (digitalRead(pin) != LOW) return false;
delay(30); // debounce
if (digitalRead(pin) != LOW) return false;
while (digitalRead(pin) == LOW) {} // wait for release
return true;
}
void setup() {
pinMode(COLOR_BTN, INPUT_PULLUP);
pinMode(WHITE_BTN, INPUT_PULLUP);
pinMode(UP_BTN, INPUT_PULLUP);
pinMode(DOWN_BTN, INPUT_PULLUP);
IrSender.begin(3);
delay(3000);
sendMode(0x08); // steady color at power-up
}
void loop() {
if (pressed(COLOR_BTN)) sendMode(0x08);
if (pressed(WHITE_BTN)) sendMode(0x06);
if (pressed(UP_BTN)) sendCmd(0x1A);
if (pressed(DOWN_BTN)) sendCmd(0x18);
}
Once it’s uploaded the laptop is no longer needed. The sketch lives on the Arduino, and any USB phone charger will power it.
Everything that went wrong
I last used a breadboard about ten years ago, and it showed. In rough order:
- I couldn’t identify a resistor. At one point I asked whether the 100 Ω resistor was “the thing that looks like an Advil.” It was not. That was a ceramic capacitor. Resistors are the little striped barrels.
- The LED was in the wrong hole. Several full sweeps went nowhere because one leg of the LED wasn’t in the circuit at all.
- A salvaged LED has no long leg. The legs had been trimmed, so I couldn’t tell which way round it went. Wiring an analog pin to the LED and reading the voltage settled it: about 1.2 V means it’s conducting, 5 V means it’s backwards.
- You can’t see infrared, but your phone can. Point the LED at the front camera in a dim room and it shows up as a faint purple flicker. This became my test for everything.
- The Serial Monitor printed garbage. The sketch was talking at 115200 baud and the monitor was listening at a different speed.
- I tried to control the lights through a stained glass window with an LED that had a range of four inches. Optimistic.
- The new buttons did nothing. I had wired them to the Arduino and skipped the jumpers to ground, so pressing them connected a pin to nothing.
- The TV, again. It deserves a second mention.
Next year: adding an LCD display
The remote works, and it is also four unlabeled buttons on a breadboard. Next December’s version adds the 16x2 LCD from the same starter kit, so the remote can show what it last sent: the mode on the top line and the brightness level on the bottom.
I’ve planned it but not built it yet. Fitting the display on one 30-row breadboard takes a reshuffle:
| Zone | Rows | Side of the board |
|---|---|---|
| Four buttons | 1 to 12 | Across the groove |
| Infrared circuit | 14 to 20 | Left |
| Contrast potentiometer | 23 to 29 | Left |
| LCD | 15 to 30 | Right, in column j |
The LCD takes six Arduino pins. Pins 3 to 7 stay as they are for the LED and buttons, and the display gets 12, 11, 10, 9, 8 and 2.
There is one design wrinkle. The lights never report back, so the Arduino can’t read the real brightness. It can only count button presses. The plan is to send “brightness up” three times at power-up so the count always starts from a known full level.
I’ll post the wiring and code for that version once it has actually been built and tested.
FAQ
Can a universal remote control Brizled Christmas lights?
Not out of the box. Universal remotes ship with code lists for TVs and audio gear, not off-brand LED string lights. A learning remote could copy the original, but only if you still have the original.
What IR protocol do Brizled LED string lights use?
My 200-LED warm white and multicolor set uses the NEC protocol at address 0x02. A published capture of Brizled’s icicle lights uses the same address and the same brightness codes.
Can I build an Arduino IR remote without the original remote?
Yes. Check the Flipper-IRDB project for a capture of your product or a close relative. Failing that, sweep all 256 NEC commands across likely addresses and watch for a reaction.
Why do my LED Christmas lights reset to a flashing mode when I switch them off?
On my set, the controller loses its mode whenever power is cut and restarts in a demo pattern. The remote’s built-in timer avoids this by switching the lights off without cutting power. Without the remote, an Arduino that resends your mode at power-up does the same job.
How far can an Arduino IR LED reach?
In my build, about four inches when driven straight from a pin at 17 mA, and about 20 feet through a BC547 transistor at roughly 65 mA.
Do I need an Arduino Uno specifically?
No. I used an Uno because it came in the kit. The IRremote library supports many boards; check its documentation for the send pin on yours.