Twenty-one hours: the battery test that beat the math
Part 7 of the synced LED lights build: two units run until their batteries died, the estimate they beat by almost double, and what that means for brightness.
Some links in this post are Amazon affiliate links. As an Amazon Associate I earn from qualifying purchases, at no extra cost to you.
Every unit runs on a single 2100 mAh LiPo cell, and the one number that decides whether this whole project works is how long that cell lasts. The goal from part 1 was 9 to 10 hours, enough for a full evening plus setup, with margin.
At the end of part 6, I had finished units on my desk and started the test. This is how it went.
The setup
Two units, full charge, switched on at the same moment at 2:20 in the afternoon, then left alone until they went dark:
- one at brightness 60 out of 255, the original setting,
- one at 100 out of 255, after the first units looked a little dim to me.
Both ran the real show firmware: five colors, two minutes each, with ten-second fades. That matters, because the colors aren’t equal. Silver lights all three channels of every LED, while deep blue mostly lights one, so the test needed the actual color cycle, not a single static color.
The prediction
When I asked Claude whether I could turn the brightness up and still hit the battery goal, it estimated the runtime by adding up the pieces:
- the ESP32 at 80 MHz, with its radio napping 90% of the time (part 5 explains the naps): about 30 mA,
- 16 LEDs idling even when dark: about 16 mA,
- the LEDs themselves, averaged over the five colors, using the usual rule of thumb of about 12 mA per color channel at full brightness,
- and a conservative guess that a “2100 mAh” cell really delivers about 1700.
That came out to roughly 16 hours at brightness 60 and 11 to 12 hours at 100. Both comfortably above the goal, but not by a huge margin at 100.
The result
The unit at 100 lasted until 11:15 the next morning. The unit at 60 kept going until 4:31 that afternoon.
| Brightness | Estimated | Measured |
|---|---|---|
| 60 | ~16 h | 26 h 11 m |
| 100 | ~11.5 h | 20 h 55 m |
At the brightness I actually want, a unit runs for almost 21 hours. That’s more than twice the goal.
Why the math was so far off
The two runtimes are enough to work backward. If the cells deliver close to their rated capacity, a unit averages about 96 mA at brightness 100 and 76 mA at 60. The difference between those two, about 20 mA for 40 steps of brightness, is the LEDs. What’s left when you extend that line down to zero brightness, around 45 to 50 mA, is everything else.
That “everything else” landed right where the estimate said it would. The miss was almost entirely the LEDs: they draw about half of what the rule of thumb predicted.
The likely reason is the same design choice from part 4: the ring runs straight off the battery at 3.7 volts instead of 5. The 12 mA-per-channel figure comes from LEDs running on 5 volts. At battery voltage, each LED pulls noticeably less. The choice that made the data signal reliable also turned out to save a lot of power.
The cell may also be delivering more than the conservative 1700 mAh I assumed. Either way, the lesson is the same: the estimate was useful for deciding whether the design could work at all. It was not a substitute for running the test.
What it means for brightness
There’s now a lot of headroom. Extending the same straight line out, very roughly:
| Brightness | Projected runtime |
|---|---|
| 100 | ~21 h (measured) |
| 150 | ~17 h |
| 200 | ~14 h |
I wouldn’t trust those last two rows very far. They come from a straight line through two points, and at higher brightness two other things start to matter:
- Voltage sag. As the battery drains, the LEDs get less voltage, and blue fades first. A brighter setting gets there sooner.
- The diffuser. The faint ring of light I liked in part 2 could turn into hot spots if I push the LEDs much harder.
So the plan is to pick the final brightness by eye, at night, in a dim room, which is what the wedding will actually look like. Then I’ll run one more full test at that setting before flashing all 22.
Letting a camera watch the next one
The first test had a weak spot: me. I wrote down the start time, then kept checking the units until they were dark. Somewhere in a 21-hour run I was always going to be asleep or out when one died.
For the next run, I pointed a Wyze camera at the units and asked Claude to watch the stream and tell me when they went dark. It tried, and it couldn’t. Its shell on my PC runs in a sandbox that can’t see anything on my home network; connecting to the camera’s address just came back “network unreachable.”
So instead it wrote a small Python script that runs on my PC, where the camera is reachable, and does the watching itself. It took a few minutes. Here’s what it does:
- It grabs one frame from the camera and opens it in a window. I drag a box over each unit’s glowing square.
- Every 5 minutes, it grabs a new frame and measures each box’s brightness against where it started.
- When a box drops below a quarter of its starting brightness on two checks in a row, it beeps, pops up a message with the time and the runtime, and saves that frame as proof.
- If the camera drops off the network, it logs “camera not responding” and keeps retrying, so a Wi-Fi hiccup can’t look like a dead battery.

It’s a small thing, but it’s the kind of tool I’d never have stopped to write myself. It’s also a good reminder of where the AI’s limits are: it couldn’t reach a camera on my own network, but it could write the program that does.
Round two: 150 vs. 100 (still running)
For the second test, I put the two settings I’m actually deciding between side by side: one unit at 150 and one at 100, both on a full charge, both watched by the camera script.
As I post this, they’re almost 9 hours in, and both are still going at full brightness. The script’s last check had both of them at or slightly above their starting brightness. Cameras drift a few percent as the room light changes, so “about 100%” is all that means.
Nine hours is already the low end of the goal, at a brightness 50% higher than the first test’s winner. If the straight-line estimate above holds, the unit at 150 should last somewhere around 17 hours. I’ll update this post with the final numbers once both go dark.
What I’d take from this
- Test with the real workload. The color cycle was part of the test, not a detail.
- Rules of thumb assume conditions. “12 mA per channel” assumes 5 volts. Mine don’t run at 5 volts.
- Two data points beat one. A single run tells you a runtime. Two runs at different settings tell you where the power is going.
- The AI’s estimate was right where it had data and wrong where it borrowed a rule of thumb. Worth knowing the next time an estimate looks suspiciously confident.
Next
With battery life settled, it was time to build the rest. Part 8 covers the first fifteen units: how I track them, what broke along the way, and what I’d change if I built them again.