esp32

Eight solder joints and a ring that lied

Part 4 of the synced LED lights build: the handful of connections in each unit, why the ring runs straight off the battery, and the 30-second bench test I now run on every ring before soldering.

Some links in this post are Amazon affiliate links. As an Amazon Associate I earn from qualifying purchases, at no extra cost to you.

Each light has four parts that need connecting: a LiPo battery, a rocker switch, an ESP32-C3 Super Mini and a 16-LED ring. The wiring is short enough to fit on a sticky note. Multiplied by 22, it’s still the biggest single job in the build.

This is part 4. Part 3 ended with a tray designed around the order I solder things in. This one is about the soldering itself, and the ring that taught me to test before I solder.

The whole circuit

Battery positive runs through the rocker switch to both the ESP32's 5V pin and the ring's 5V pad. Battery negative goes to both grounds. GPIO 4 on the ESP32 drives the ring's data-in pad.LiPo3.0–4.2 VSwitchESP32C3 MiniGPIO 4 →Ring16 LEDs+ (red)5V to both− (black) to both GNDDI3 wires to the ring · 1 switch in the + lead · no level shifter

That’s all of it:

  • Battery + goes through the switch, then splits to the ESP32’s 5V pin and the ring’s 5V pad.
  • Battery − goes to the ESP32’s GND and the ring’s GND.
  • GPIO 4 on the ESP32 goes to the ring’s DI (data in). The ring’s DO pad stays empty.

Three joints on the ring, two on the switch, three on the ESP32 (two of those pads take two wires each). Battery connections go through a JST pigtail, so I never solder anything to a live cell.

Why there’s no 5 V anywhere

The ring’s pads say 5V, and the ESP32 has a pin labeled 5V, but nothing in this circuit actually runs at 5 volts. The battery’s 3.0–4.2 V goes straight in.

That’s on purpose. WS2812B LEDs decide whether a data bit is a 1 or a 0 by comparing it to their own supply voltage: roughly, a “high” has to be at least 70% of the supply. At 5 V, that’s 3.5 V. The ESP32 only outputs 3.3 V, so on a true 5 V supply it’s marginal, and you get flicker or garbage colors.

Run the ring at battery voltage and the threshold drops to about 2.9 V at a full charge, comfortably under 3.3 V. So the simplest wiring is also the most reliable: no level shifter, no extra regulator, no boost converter. The ESP32’s own 3.3 V regulator takes its input from the 5V pin, which happily accepts a LiPo.

Two other details came from Claude, and both were worth having:

  • GPIO 4, not whatever’s closest. On the C3, pins 2, 8 and 9 are tied up with booting and the onboard LED. GPIO 4 has no side jobs.
  • Brightness is capped in firmware at 60 out of 255. Under a diffuser that’s plenty, and it keeps the current low enough that the battery sag doesn’t brown out the board.

The ring that lied

The first ring I wired lit exactly one LED, the one next to the DI pad. The other 15 stayed dark.

Claude’s first guess was the voltage problem above. I was running from USB at that point, which does put a true 5 V on the ring, so it was a reasonable suspect. It suggested moving the ring’s power to the 3V3 pin so the ring and the data line match.

Before I got to that, it asked a better question: is that one LED changing color on schedule? It was. My test sketch cycles through five colors, ten seconds each, and that single LED was following along perfectly.

That one observation reframed the whole problem:

  • If LED 1 shows the right colors at the right times, the board, the sketch, the pin and the data wire all work.
  • Each WS2812B regenerates the signal at full strength before passing it on. So a weak signal from the ESP32 can’t explain LED 2 going dark.
  • The fault had to be between LED 1 and LED 2: LED 1’s data-out stage, or the connection after it.

The fastest way to confirm that was hardware, not software. I hooked up a second ring the same way, with the same board and the same sketch. All 16 lit. The first ring went back as defective.

For the record, Claude had started down another path before that: rewriting the test sketch without the NeoPixel library, to rule out a library bug. It would have worked, but swapping the ring answered the question in two minutes. When you have spare parts, swapping is the cheapest experiment.

The bench test

The real lesson wasn’t about that ring. It was about when I found out. If I’d soldered it into a finished unit, hot-glued the joints and dropped it in the base, I’d have been desoldering through glue next to a fragile pad.

So now every ring gets 30 seconds on the bench before it gets a single joint:

  1. Flash one ESP32 with the test sketch (five colors, ten seconds each) and leave it on USB.
  2. Hold or clip three wires to the ring’s 5V, GND and DI pads. No solder.
  3. Watch for all 16 LEDs to light and change color together. Pass: it goes in the build pile. Fail: it goes in the return bag.

I bought 24 rings for 22 units, so one dud is survivable. Finding two after assembly would have been a bad night.

Soldering 22 of them

There’s no soldering robot for 50 dollars (I asked). What works instead is batching, like a tiny assembly line:

  • Cut and strip everything first: about 8 cm lengths of 26 AWG silicone wire, three per ring plus the switch lead. Different colors for power, ground and data save a lot of squinting.
  • Tin everything next: every pad and every wire end, with 63/37 rosin-core solder. Once both sides are tinned, a joint is a one-second tap of the iron.
  • Go easy on the DI pad. It sits right beside LED 1, the exact part that failed above. Tin first, touch for a second or two, and keep the iron around 320–350 °C.
  • Insulate the switch: a short piece of heat shrink over each switch terminal, slid onto the wire before soldering.
  • Check before power: with a multimeter on continuity and the battery unplugged, 5V to GND must not beep, with the switch either way. Switch on, the battery’s red lead should beep through to the ESP32’s 5V pad.
  • Check every battery’s polarity before it’s plugged in. Generic JST cells sometimes swap red and black (part 1 has the story).

One last rule from the build guide: switch off before plugging in USB to reprogram a board. Otherwise USB power can push back into the battery through the 5V pin.

What I’d take from this

  • Simplest is often the most reliable. Powering the ring from the battery removed a part and fixed the signal-level problem.
  • Test parts before you commit them. Thirty seconds on the bench beats an hour of desoldering.
  • Describe exactly what you see. “One LED lit” was ambiguous. “One LED lit, and it changes color on time” pointed straight at the fault.
  • The AI is good at narrowing, if you feed it observations. Its first guess was wrong, but it knew which question would separate the possibilities.

Next

Part 5 is the part I’ve been promising since part 1: how 22 boards stay in sync with ESP-NOW, with no Wi-Fi network and no wires between tables.

Some content on this site was created with the assistance of AI. All content is instigated, initiated, and directed by humans, and reviewed before posting.