Add LED notes and firmament design
Organize research and notes from earlier sessions: tree hardware and
power, WLED control, existing 3D mapping tools, the ARKit approach, and
the porch festoon research. Add a firmament/ directory with the design
for an iPhone (ARKit + LiDAR) LED mapping app.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RTqTY4YPTZf5BS3tsMUpn4
change
commit bfbbb56074f19f1706d5dfc76ee7c12cd1442abd
author Claude <noreply@anthropic.com>
date
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..ab8e2df
--- /dev/null
+++ b/README.md
@@ -0,0 +1,38 @@
+# glowdown
+
+Notes and tools from LED fiddling.
+
+## Current project
+
+A slim Christmas tree (~7.5 ft tall, ~46" base diameter) wrapped in 500
+WS2812B fairy-light pixels, driven by WLED on a QuinLED Dig-Next-2.
+
+The goal is to record each LED's 3D position, so effects can be computed from
+where the lights *are* rather than where they sit on the wire. The plan is to
+do the mapping with an iPhone Pro (ARKit + LiDAR) and a WLED-driven string.
+
+## Layout
+
+| Path | What's there |
+| --- | --- |
+| [`notes/tree-setup.md`](notes/tree-setup.md) | The tree: dimensions, string count, controller, power |
+| [`notes/wled-and-control.md`](notes/wled-and-control.md) | WLED addressing, realtime streaming, ledmaps, controller options |
+| [`notes/hardware-reference.md`](notes/hardware-reference.md) | Pixel chips, form factors, power rules of thumb |
+| [`notes/mapping-existing-solutions.md`](notes/mapping-existing-solutions.md) | Survey of existing 3D LED mapping tools |
+| [`notes/mapping-arkit-approach.md`](notes/mapping-arkit-approach.md) | Why and how to use ARKit for mapping |
+| [`notes/porch-festoon.md`](notes/porch-festoon.md) | Separate project: a smart porch festoon (research stage) |
+| [`firmament/`](firmament/) | The mapping app (design only, nothing built yet) |
+
+## Status
+
+- Research and notes: written (2026-11-14), compiled from a web research
+  session plus earlier chats from October and November 2026.
+- `firmament/`: design only.
+- Next step: a tracking spike, to see whether ARKit tracking survives a dim
+  room with a blinking string.
+
+## A note on provenance
+
+Claims in `notes/` come from web research done in those sessions. Items marked
+**(unverified)** were stated in an earlier session and not re-checked when
+these notes were assembled. Treat them as leads, not facts.
diff --git a/firmament/DESIGN.md b/firmament/DESIGN.md
new file mode 100644
index 0000000..0075b98
--- /dev/null
+++ b/firmament/DESIGN.md
@@ -0,0 +1,121 @@
+# firmament design
+
+Draft, 2026-11-14. Everything here is a plan, not a record of what works.
+
+## Principle: phone records, laptop solves
+
+The iPhone app only records. Each capture session saves frames, per-frame
+poses and intrinsics, depth, and a timeline of what pattern WLED was showing.
+The solver runs offline on a laptop, in any language. That means the solver can
+be improved and re-run without re-walking the tree, and sample sessions can
+live in the repo as test data.
+
+## Parameters (the first target)
+
+| Parameter | Value | Notes |
+| --- | --- | --- |
+| LED count | 500 | ten strands of 50 |
+| ID code length | 9 bits | 2^9 = 512 >= 500 |
+| Spacing along a strand | ~0.10 m | 50 LEDs per 5 m; max consecutive distance |
+| Strand boundaries | every 50th LED | the spacing prior does not hold across these |
+| WLED outputs | 2 x 250 | to confirm: indices continue across both outputs |
+| Tree | ~2.29 m tall, ~0.58 m base radius | approximate cone prior |
+
+## Pipeline
+
+### 1. Capture (iPhone)
+
+- ARKit world-tracking session, gravity-aligned, with scene depth enabled.
+- LED control: stream frames to WLED over DDP (or UDP realtime), not the JSON
+  API. 500 LEDs is about 1.5 KB per frame.
+- Pattern, per station: all-on flash, all-off flash (sync), then 9 gray-code
+  bits as plain white on/off, then a parity bit. Hold each bit for 3 or more
+  camera frames. Repeat the cycle for redundancy.
+- Stations: stand still for 1-2 seconds, then move on. Cover the tree from many
+  heights and angles, including above and below.
+- Lock exposure if the capture device allows it; otherwise lower LED
+  brightness.
+- Record per frame: timestamp, camera transform, intrinsics, image size,
+  tracking state; plus the pattern timeline.
+
+### 2. Solver (laptop)
+
+1. **Detect** blobs per frame (difference against the all-off frame, threshold,
+   connected components).
+2. **Decode** IDs per blob track from the on/off sequence; use parity and the
+   repeated cycles to reject bad decodes.
+3. **Triangulate** each LED from all views with known poses, robustly (reject
+   by reprojection error, median).
+4. **Refine** with bundle adjustment over poses and points, since ARKit poses
+   drift.
+5. **Clean up** with priors:
+   - String continuity within strands (~0.10 m).
+   - Approximate cone fit from LiDAR or the point cloud, with LEDs near its
+     surface.
+   - Interpolate LEDs that were never seen along their strand.
+6. **Score** every LED: number of views, reprojection error, prior agreement.
+
+Language is undecided. Python (NumPy/OpenCV) is fastest to prototype.
+
+### 3. Outputs
+
+- **Canonical:** `leds.json` or CSV with index, x, y, z (meters, y up),
+  confidence, and views per LED.
+- **Exporters:** xLights 3D custom model, WLED ledmap (height order as the
+  trivial fallback), Pixelblaze map, Blender-friendly CSV.
+
+### 4. Viewer
+
+A 3D plot of the points, colored by confidence, so bad ones are easy to spot.
+
+### 5. Streamer (later)
+
+A small service that computes a color per LED from (x, y, z) each frame and
+sends DDP frames to WLED. Effects: vertical sweeps, rotating colors, rising
+flames.
+
+## Capture session layout (sketch)
+
+```
+session-YYYYMMDD-HHMM/
+  session.json            # LED count, code scheme, device model, notes
+  stations/
+    001/
+      frames/             # image per frame (or a video)
+      poses.jsonl         # {t, transform[16], fx, fy, cx, cy, w, h, tracking}
+      pattern.jsonl       # {t, bit_index or sync marker}
+      depth/              # optional
+```
+
+## Testing
+
+- **Synthetic first.** Generate known LED positions on a cone, render them
+  through simulated cameras with realistic noise and occlusion, and check the
+  solver recovers them. No tree needed.
+- **Real baseline.** Map the same tree with MariMapper and compare.
+
+## Risks
+
+- ARKit tracking in a dim room (first thing to test).
+- Exposure blooming the LEDs.
+- LEDs facing away from the camera biasing detections.
+- Pattern/frame sync under Wi-Fi jitter.
+- Drift between stations.
+
+## Open questions
+
+- Stations or continuous capture?
+- Solver language (Python vs. something compiled)?
+- Whether LiDAR meaningfully improves the cone prior or visibility checks.
+- Do WLED indices continue across the two 250-pixel outputs?
+
+## Milestones
+
+- [ ] Tracking spike: log `trackingState` waving a phone at the blinking
+      string in a dim room.
+- [ ] Capture app: ARKit session, DDP code player, recorder.
+- [ ] Synthetic dataset generator.
+- [ ] Solver: detect, decode, triangulate.
+- [ ] Priors and bundle adjustment.
+- [ ] Viewer and exporters.
+- [ ] Streamer with a first 3D effect.
diff --git a/firmament/README.md b/firmament/README.md
new file mode 100644
index 0000000..07418b3
--- /dev/null
+++ b/firmament/README.md
@@ -0,0 +1,28 @@
+# firmament
+
+A mapping app for finding where each LED on a string is in 3D space, built
+around an iPhone Pro (ARKit + LiDAR) and a WLED-driven string.
+
+The name: a sky full of points of light, each with a coordinate.
+
+## Status
+
+Design only. Nothing is built. See [`DESIGN.md`](DESIGN.md).
+
+## Shape of it
+
+1. **Capture (iPhone, native Swift).** Plays a gray-code pattern to WLED while
+   recording frames, ARKit poses, intrinsics, and depth. A dumb recorder.
+2. **Solver (laptop, offline).** Decodes LED IDs, triangulates, cleans up with
+   string and tree-shape priors, exports positions.
+3. **Viewer and exporters.** A 3D preview, plus CSV/JSON, xLights model, and
+   WLED ledmap outputs.
+4. **Streamer (later).** Computes 3D effects per LED and sends them to WLED
+   over DDP.
+
+## Context
+
+- Why this exists and what already exists:
+  [`../notes/mapping-existing-solutions.md`](../notes/mapping-existing-solutions.md)
+- Why ARKit: [`../notes/mapping-arkit-approach.md`](../notes/mapping-arkit-approach.md)
+- The target hardware: [`../notes/tree-setup.md`](../notes/tree-setup.md)
diff --git a/notes/hardware-reference.md b/notes/hardware-reference.md
new file mode 100644
index 0000000..52963fd
--- /dev/null
+++ b/notes/hardware-reference.md
@@ -0,0 +1,52 @@
+# Hardware reference
+
+Rules of thumb collected from earlier research sessions. Everything here came
+from web research in those sessions and has not been re-verified; prefer the
+linked primary sources.
+
+## Pixel chips
+
+- **WS2811 (12V):** cheapest and most common. Single data line, so one dead
+  pixel kills or garbles everything downstream.
+- **WS2815 / GS8208 (12V):** add a backup data line, so a dead pixel is
+  skipped. GS8208 has a higher PWM refresh rate, which helps avoid flicker on
+  camera and at low brightness. QuinLED's wiring guide notes WS2815 has other
+  downsides, notably being very inefficient.
+- **WS2812B (5V):** what the tree's fairy strings use.
+- **RGBW** (SK6812, UCS2904): a dedicated white die gives a better warm white
+  than RGB mixing, which looks bluish or pinkish when dimmed. Nearly all
+  C9-style pixel strings are RGB only.
+- Prefer **regulated** pixels over resistor-based ones, since they don't
+  visibly fade with a little voltage drop.
+
+## Form factors
+
+- **Fairy / seed pixels:** small, low-power, disappear into branches when off.
+  The usual choice for trees.
+- **12mm bullets:** the standard for rooflines and props.
+- **C9 / globe pixel bulbs:** the same chip inside a classic bulb shape.
+- **Pixel nets, icicles, coro props, "mega trees":** the light-show hobby
+  staples.
+
+## Voltage and power
+
+- 5V suits small fairy strings; 12V or 24V is better for long runs
+  (voltage drop is much more manageable). 24V halves current at the cost of a
+  narrower pixel selection.
+- Inject power every 2-3 strings for 5V fairy lights.
+- QuinLED's pixel guide: about 15 m / 50 ft of plain cable before voltage
+  drop calls for extra injection wires.
+- Size supplies from **measured** per-pixel draw, not datasheet worst case, and
+  keep the load under about 80% of the supply's rating. Mean Well is the
+  brand QuinLED recommends.
+- For permanent installs, let WLED switch a relay to cut supply power when
+  lights are off, and put a smart relay upstream so a hung controller can be
+  power-cycled remotely.
+
+## Primary sources
+
+- [QuinLED power handling and wiring guides](https://quinled.info/llms.txt)
+  (index of pages)
+- [How much power do addressable LEDs use? (QuinLED)](https://quinled.info/2020/03/12/digital-led-power-usage/)
+- [Power injection guide (QuinLED)](https://quinled.info/the-ultimate-led-strip-power-injection-guide/)
+- [WLED Home Assistant integration](https://home-assistant.io/integrations/wled)
diff --git a/notes/mapping-arkit-approach.md b/notes/mapping-arkit-approach.md
new file mode 100644
index 0000000..439bfb1
--- /dev/null
+++ b/notes/mapping-arkit-approach.md
@@ -0,0 +1,66 @@
+# Mapping with ARKit
+
+Why an iPhone Pro (ARKit plus LiDAR) is a good fit for mapping a WLED-driven
+string, and what could go wrong. Assumes an iPhone Pro with LiDAR and a
+WLED-driven string. Written 2026-11-14.
+
+## What ARKit gives us
+
+- **Camera pose per frame in a shared world frame.** No turntable, tripod, or
+  120-degree camera spacing. Walk around and triangulate with known poses.
+- **Metric scale and gravity.** Coordinates come out in meters with "up"
+  known; camera-only methods have to recover both.
+- **More viewpoints.** Occlusion becomes "walk around, crouch, reach over the
+  top".
+- **LiDAR.**
+  - Works in the dark.
+  - Useful for the tree's overall shape (fit a cone) and for visibility
+    checks against the scene mesh.
+  - Depth at a tiny bright point inside foliage lands on needles, so use it
+    for initial guesses only, not the final answer.
+
+## The catch with a moving camera
+
+Sequential capture ("light LED 1, snap, light LED 2, snap") assumes a static
+camera and takes N rounds per viewpoint. The existing iOS app avoids this with
+gray-code scanning: every LED blinks its own index as a binary code in
+parallel. For 500 LEDs that's 9 bits (2^9 = 512), about a second or two per
+viewpoint. Two ways to use it:
+
+- **Stations (simpler, more robust):** hold still, decode, move on.
+- **Continuous:** track blobs across frames while walking and decode over
+  time.
+
+## Gotchas
+
+- **Tracking in the dark.** Visual-inertial tracking wants visible features,
+  and mapping is normally done in a dark room. A dim lamp and lowered LED
+  brightness is probably the compromise. LiDAR may help low-light tracking
+  **(unverified)**. This is the first thing to test.
+- **Exposure.** Auto-exposure will bloom the LEDs. iOS 16+ may expose the
+  underlying capture device so exposure can be locked **(unverified)**.
+- **Drift.** ARKit poses drift slightly; a final bundle-adjustment step
+  (refine poses and points together) would tighten the result.
+- **Sync.** Align frame timestamps with the LED pattern, accounting for
+  WLED/DDP latency and rolling shutter. Hold each bit for 3+ camera frames.
+- **Native iOS only.** Safari on iPhone has no WebXR AR.
+
+## Priors that make it robust
+
+- **String continuity.** Consecutive LEDs on a strand are at most about 10 cm
+  apart (50 LEDs per 5 m). Strand boundaries (every 50th LED) and the two
+  250-pixel outputs are not constrained this way.
+- **Tree shape.** LEDs sit near the surface of an approximate cone (about 2.29
+  m tall, about 0.58 m base radius), refined by LiDAR.
+- **Robust triangulation.** Many views, reject by reprojection error, take
+  the median.
+
+## First spike
+
+Build a minimal ARKit app that logs `trackingState` while waving the phone at a
+blinking string in a dim room. If tracking holds, the rest is straightforward
+engineering. If it doesn't, fall back to stations with the room lit between
+captures.
+
+See [`../firmament/DESIGN.md`](../firmament/DESIGN.md) for the planned
+pipeline.
diff --git a/notes/mapping-existing-solutions.md b/notes/mapping-existing-solutions.md
new file mode 100644
index 0000000..240e200
--- /dev/null
+++ b/notes/mapping-existing-solutions.md
@@ -0,0 +1,62 @@
+# 3D mapping: existing solutions
+
+Researched 2026-11-14 (web), plus mapping leads from an earlier session
+(2026-10-23, marked **earlier**).
+
+Almost every tool uses the same method: light each LED in turn, find the
+bright spot in a camera frame by diffing against a dark reference frame, repeat
+from several angles, then triangulate into 3D.
+
+## Comparison
+
+| Option | How it works | Output / target | Catch |
+| --- | --- | --- | --- |
+| [MariMapper](https://github.com/TheMariday/marimapper) | Webcam maps addressable LEDs into 3D space; Pixelblaze backend plus a stub for writing your own (an **earlier** session also noted a WLED backend) | 3D map, uploadable to Pixelblaze | Most general-purpose; non-Pixelblaze needs a backend |
+| [Parker / Harvard pipeline](https://github.com/GSD6338/XmasTree) | Capture script on a Pi with a webcam, a mapper notebook, then an adjuster notebook for outliers | CSV of coordinates | Research-grade notebooks; coordinates are tree-specific |
+| [standupmaths/xmastree2020](https://github.com/standupmaths/xmastree2020), [2021](https://github.com/standupmaths/xmastree2021) | Original code and coordinates; 2021 adds auto-correcting `light_fixer.py` | Python scripts, coordinate CSV | Coordinates only apply to his tree |
+| [aaknitt/pixel_mapper](https://github.com/aaknitt/pixel_mapper) | Three camera positions exactly 120 degrees apart; two would do in principle, but the tree blocks pixels from any single view | xLights 3D model | Needs careful camera alignment |
+| [WLED→xLights iOS app](https://slbarker.github.io/wled-xlights-mapper-ios-app/) | Walk around with an iPhone; gray-code AR scanning, no LiDAR needed | xLights custom model | iOS only, xLights-centric; one free export, then a lifetime price of GBP 9.99 |
+| xLights custom model | Video-based model generator (WLED forum mention) | xLights | Probably 2D-leaning; not verified for 3D |
+| [Twinkly](https://help.twinkly.com/en/help/map-your-twinkly-pro) | Phone camera scans each bulb; 3D mode, including a front and back scan option | Their app only | Proprietary, only their lights |
+| [blinkenxmas](https://blinkenxmas.readthedocs.io/en/latest/api_calibrate.html) | Angle scanner captures images; a positions calculator uses trigonometry and scores to reject bad estimates | Python library | Small project; a readable reference for the maths |
+| [led_camera_map](https://github.com/savdb/led_camera_map) (**earlier**) | Webcam generates a WLED ledmap and uploads it | WLED 2D ledmap | 2D, grid-snapped **(unverified)** |
+| [XMasTractor / 3d-wled-driver](https://github.com/gunicsba/3d-wled-driver) (**earlier**) | Takes a MariMapper 3D map and runs effects on ESP32 over DDP | Renderer | Needs the map first **(unverified)** |
+| Pixelblaze mapper (**earlier**) | Controller with built-in mapped pattern engine | Pixelblaze | Replaces WLED |
+
+Other open-source tree mappers that follow the same recipe:
+[NoMoor/3dLEDs](https://github.com/NoMoor/3dLEDs),
+[Valthoron/TreeLights](https://github.com/Valthoron/TreeLights),
+[Davidster/ShapeOfLightX](https://github.com/Davidster/ShapeOfLightX),
+[JolonB/XmasTree](https://github.com/JolonB/XmasTree) (ESP32 web UI).
+For the effects side: [sirxemic/xmastree-app](https://github.com/sirxemic/xmastree-app)
+(live-coding effects for Parker's tree) and the
+[Blender add-on](https://github.com/Sharkmanblu/Blender_XmasTree).
+[Jason Coon's led-mapper](https://jasoncoon.github.io/led-mapper/) works with
+FastLED (not explored).
+
+## What the existing tools teach us
+
+- **Occlusion is the main problem.** A tree hides roughly half the LEDs from
+  any one view. A completely black capture usually means the LED was hidden.
+- **Strings, not strips.** Consecutive LEDs are spaced along a wire and can
+  face different directions, so an LED facing away shows up as glow on nearby
+  needles, biasing its detected position. Missing LEDs can be interpolated
+  along the string ([Hackaday comments](https://hackaday.com/2020/11/03/computer-vision-maps-christmas-lights)).
+- **Height-only is already useful.** See `wled-and-control.md`.
+- **Output formats are siloed.** Each tool targets one ecosystem (xLights,
+  Pixelblaze, WLED ledmap, bare CSV). A neutral format with exporters is a gap.
+
+## Where this leaves us
+
+1. Run MariMapper first, as a baseline and as ground truth for anything
+   homemade.
+2. Build a custom mapper only for specific gaps: string-continuity cleanup,
+   neutral output format, and a handheld-camera (ARKit) scanner. See
+   [`mapping-arkit-approach.md`](mapping-arkit-approach.md) and
+   [`../firmament/`](../firmament/).
+
+## Local-first caveat
+
+Twinkly and Govee are cloud-first. An earlier session noted Twinkly's Home
+Assistant integration polls locally, but effects must be loaded from their app
+first **(unverified)**.
diff --git a/notes/porch-festoon.md b/notes/porch-festoon.md
new file mode 100644
index 0000000..b63c0e3
--- /dev/null
+++ b/notes/porch-festoon.md
@@ -0,0 +1,141 @@
+# Porch festoon (separate project)
+
+A smart, locally controlled decorative light string for a porch. Research stage
+only; nothing bought. Compiled from an earlier session (2026-10-23).
+
+All product, price, and vendor details below were gathered in that session and
+have **not** been re-verified since. Listings change; recheck before buying.
+
+The working one-pager lives in Claude's docs:
+[Porch Festoon Lights](https://claude.ai/code/artifact/87779a28-798f-48ac-8f58-ab0a201540b7).
+This file is the repo copy of the thinking.
+
+## Requirements
+
+- Strung across a porch, café/festoon style. Individual-looking bulbs, not
+  pixel dots.
+- Rejected along the way: house outlines, pixel track, C9 strings.
+- Local control only (Home Assistant plus WLED), no cloud.
+- Year-round use, with seasonal colors chosen by Home Assistant. Warm white on
+  most nights, so a real white channel (RGBW) matters.
+- Smaller pixel form factors preferred (mini globes, seed/fairy pixels).
+- Wants independent reviews and track record; pushed back on unreviewed
+  Amazon-sourced strands.
+- **Open question:** is the porch covered? The doc assumes yes, which makes
+  IP66 acceptable; if not, stick to IP68.
+
+## Candidates (globes)
+
+| Option | Chip / power | Spec highlights | Notes |
+| --- | --- | --- | --- |
+| [LED Lighting Hut 50mm Digital RGBW Pixel Bulb Strand](https://www.ledlightinghut.com/50mm-tm1814-rgbw-pixel-bulb-light-strand.html) | TM1814, 12V, RGB + 3000K white | 30 bulbs, 9 m, 28 cm (~11") spacing, UV-resistant milky acrylic globes, IP66 | Listed at $209.50 per strand. TM1814 is on WLED's supported list, so lower risk. Shenzhen-based manufacturer selling direct (an earlier note calling it a US vendor was corrected), so expect international shipping and returns |
+| [PixNet Digital Festoon RGBW 3000K](https://pixnetcontrol.com/digital-festoon/226-digital-festoon-rgbw-3000k.html) | WS2811 protocol, 24V, RGBW 3000K | 50mm globe, IP66, built to hook onto a support wire | Closest in form. UK (Norfolk) professional supplier to AV installers. Needs a 24V supply; QuinLED boards handle that |
+| Amazon 50mm milky globe strings (e.g. [this listing](https://www.amazon.com/Addressable-XConnect-pigtails-LEDS_20CM-6M_EPOXY/dp/B0DXDWZXCF), [WENWENLEE](https://www.amazon.com/WENWENLEE-Addressable-Spacing-LEDs_30CM-9M_EPOXY/dp/B0DXF1QT7G)) | UCS2904 RGBW, 12V (or WS2811 RGB) | 30 bulbs, 20/30/50 cm spacing, IP68, epoxy-filled, ~0.9 W per bulb in 12V RGBW | Cheapest and most spacing options, but anonymous factory product resold under several storefronts (part number suggests a Shenzhen pixel factory). Choose xConnect pigtails. Test-only |
+| [Minleon T50 RGBW Festoon](https://www.minleon.com.au/collections/t50-rgbw-pixel-festoon-light-string) | Minleon's own "RGB+" chipset | Bulbs on short drops, faceted/opaque/clear lenses, custom spacing | Most polished, but Australian and WLED compatibility unclear; ask first |
+| [Gilbert Engineering Smart RGBW Outdoor String](https://gilbertengineeringusa.com/collections/pixels-accessories) | 12V | Lantern-style bulbs, listed at $49.99 | Spec sheet not found; check chip, spacing, and IP rating |
+| [Superlighting LED 30mm globes](https://www.superlightingled.com/addressable-led-pixel-module-lights-c-6_318.html) | UCS2904 RGBW, 12V | ~14.5 cm (5.7") spacing | Smaller and denser: fairy-light feel |
+| YGZGting 50mm pixel ball, 40 count | RGB | 360-degree globes | RGB only, no white channel |
+
+Ruled out: C9 strings (the reputable ones, from Gilbert, Wally's, and Mattos,
+are RGB-only at dense 6" spacing; the one RGBW C9 with wider spacing was from
+an unreviewed seller). The PixelFit C9 RGBW retrofit needs its own proprietary
+controller, so it won't work with WLED.
+
+### Reviews
+
+There are no independent reviews for any of these strands. What exists:
+
+- ScamAdviser rates LED Lighting Hut as very likely legitimate and long-lived,
+  but notes no reviews on popular sites. Don't confuse it with LED Hut
+  (ledhut.co.uk), a different UK retailer.
+- PixNet is a trade supplier with trade-press coverage; its customers are
+  installers who don't post public reviews.
+- Best places for real-world feedback: r/WLED, the QuinLED Discord (search the
+  chip), the xLights community forums and Facebook groups, and
+  doityourselfchristmas.com.
+- Suggested approach: order one strand of each top candidate, run them side by
+  side on the controller for a week or two (warm-white color, diffusion,
+  low-brightness behavior, outdoor durability), then order the rest from the
+  winner in one batch so color matches.
+
+### WLED configuration hint
+
+A blog post testing inexpensive RGBW outdoor lights with WLED found the SK6812
+RGBW pixel type with RGB color ordering was the best match for its lights, and
+made all built-in effects work. A plausible starting point for UCS2904 globes,
+though it isn't a review of these strands
+([post](https://bikerglen.com/blog/controlling-inexpensive-led-lights-with-wled/)).
+
+## Controller and power
+
+- 30 RGBW bulbs at ~0.9 W is about 27 W. A QuinLED Dig-Uno (single output) with
+  a small 12V supply (~60 W) is plenty; a Dig-Quad only if more runs are added.
+- Put the controller and supply indoors near the porch and run one xConnect
+  lead out. At this size power injection is probably unnecessary.
+- Wired Ethernet is worth having for a permanent install.
+
+## Hanging
+
+Hang the string from a tensioned stainless guide wire, never by its own cable.
+
+1. Screw stainless eye bolts into framing at each end (porch header, beams,
+   posts, or ceiling joists if covered), with pilot holes.
+2. Run stainless wire rope between them, secured with wire rope clamps and a
+   turnbuckle at one end.
+3. Tension it, mounting about a foot above the lowest point the bulbs should
+   hang.
+4. Tie the string to the wire at every bulb with UV-resistant black zip ties.
+5. Leave a service loop at the controller end.
+6. Re-tighten the turnbuckle after the first week.
+
+Use stainless throughout for a year-round install in Seattle's climate;
+galvanized will eventually streak rust.
+
+## Alternatives considered
+
+- **Twinkly Festoon:** the off-the-shelf version of the same idea. Home
+  Assistant integration polls locally, but effects must be loaded from their
+  app, and older devices have broken with integration updates.
+- **Nanoleaf Matter outdoor string with a WLED controller swap:**
+  [HA community thread](https://community.home-assistant.io/t/nanoleaf-matter-smart-multicolor-outdoor-string-lights-running-on-wled/923516).
+  A mainstream, widely reviewed RGBW bulb string with full WLED control, but
+  not plug-and-play: one person got no output at first. The working settings
+  used the SK6812/WS2814 RGBW pixel type, BRG color order, with white and green
+  channels swapped, and reversed IP68 connector polarity.
+- **Fairy-light variant:** a
+  [WS2812B fairy string with WLED](https://neon.ninja/2021/01/sparkling-lights/)
+  (2021, 5V) is a good picture of a seed-pixel porch setup.
+- **Dumb café lights on a Z-Wave outdoor plug:** rock-solid, but only on/off
+  and dimming.
+
+## Next steps (from the doc)
+
+- [ ] Measure the porch span and pick spacing (28-30 cm for café density, 50 cm
+      for sparser).
+- [ ] Order one test strand from each of the top two candidates.
+- [ ] Bench-test both on one controller for a week.
+- [ ] Order the winner in one batch, plus controller, supply, and hanging
+      hardware.
+- [ ] Ask in r/WLED or the QuinLED Discord about the winning chip before
+      scaling up.
+
+## References
+
+- [QuinLED 12V WS2811 pixel guide](https://quinled.info/12v-ws2811-pixel-guide/)
+- [QuinLED power injection guide](https://quinled.info/the-ultimate-led-strip-power-injection-guide/)
+- [QuinLED Dig-Quad wiring guide](https://quinled.info/2020/10/03/quinled-dig-quad-wiring-guide/)
+- [Home Assistant WLED integration](https://home-assistant.io/integrations/wled)
+- [Controlling inexpensive LED lights with WLED](https://bikerglen.com/blog/controlling-inexpensive-led-lights-with-wled/)
+- [The best way to hang outdoor string lights (Old World Garden Farms)](https://oldworldgardenfarms.com/2025/05/25/hang-outdoor-string-lights/)
+- [How to hang patio string lights (Blue i Style)](https://www.blueistyleblog.com/howtohangstringlights/)
+- [How to hang outdoor string lights in 3 easy steps (The Turquoise Home)](https://theturquoisehome.com/how-to-hang-outdoor-string-lights/)
+- [How to hang outdoor string lights (Ultra Bright Lightz)](https://ultrabrightlightz.com/blogs/ubl-insider/how-to-hang-outdoor-string-lights)
+- [How to hang outdoor lights for a cozy deck (Outdoor Living Inc)](https://outdoorlivinginc.com/blog/how-to-hang-outdoor-lights/)
+- [SmartHomeScene: best Christmas lights for Home Assistant (local)](https://smarthomescene.com/top-picks/home-assistant-christmas-lights-with-local-control/)
+
+## Why it's in this repo
+
+Spatial effects on a single sagging festoon are basically a 1D curve, so
+mapping is only interesting with a 2D layout (parallel strands, a zigzag, a
+canopy). If spatial effects matter, plan the hanging layout around that before
+buying. The mapping work in [`../firmament/`](../firmament/) could be reused.
diff --git a/notes/tree-setup.md b/notes/tree-setup.md
new file mode 100644
index 0000000..b10e570
--- /dev/null
+++ b/notes/tree-setup.md
@@ -0,0 +1,66 @@
+# Tree setup
+
+Hardware plan for the Christmas tree. Compiled from earlier sessions
+(2026-10-23 sizing, 2026-11-07 power).
+
+## The tree
+
+- About 7.5 ft tall, slim: ~46" diameter at the base.
+- Useful for mapping priors: height ~2.29 m, base radius ~0.58 m (approximate
+  cone).
+
+## Pixels
+
+- Fairy-light strings: **50 LEDs per 5 m** (10 cm spacing, about 3.9").
+  Each string covers roughly 16.4 ft.
+- Chip: WS2812B, GRB order, 5V.
+- Plan: **ten strands of 50 = 500 pixels**.
+
+### How the count was sized
+
+For the 46" slim tree (surface about 47 sq ft), at ~4" spacing:
+
+| Look | String length | Pixels |
+| --- | --- | --- |
+| Sparse spiral | ~95 ft | ~280 |
+| Woven into branches, good density | ~140 ft | ~420 |
+| Dense, show-tree look | ~195 ft | ~580 |
+
+The "woven" look was the target (about 400-450 pixels, 9 strings of 50). The
+build grew to ten strands, 500 pixels.
+
+Pixels are much brighter than incandescent minis, so the old rule of 100
+lights per foot of height overshoots.
+
+## Controller
+
+- QuinLED Dig-Next-2 running WLED.
+- Two WLED outputs of 250 pixels each (five strands per output).
+
+## Power
+
+- 5V supply, **10A to 14A** (Mean Well LRS-75-5 is the 14A option with
+  headroom).
+- Basis: QuinLED's own DIY Christmas tree guide ran about 450 fairy-light
+  pixels on a 5V 10A supply. Measured draw was about 36 W at full white,
+  about 16 W single-color, and about 20 W typical effects, which is roughly
+  16 mA per pixel at full white. Scaled to 500 pixels: about 40 W (8 A) at
+  full white, about 22 W (4.5 A) in effects.
+- Do **not** size from the 60 mA-per-LED worst case: that's for WS2812B
+  strip, and fairy lights use much smaller LEDs on thin wire.
+- Power injection: every 2-3 strings (every 2 for full white). For two chains
+  of five strands, about six injection points total: the front of each chain,
+  plus one in the middle and one at the end of each.
+- Parts: JST SM 3-pin pigtails, 18 AWG power wire, Wago lever nuts.
+- The Dig-Next-2's built-in fused outputs cover fusing, so a separate fuse
+  block is optional.
+- If using a brick supply, wire it directly to the controller. Barrel-to-
+  terminal adapter blocks aren't recommended above about 5A.
+- Dig-Next-2 power rating: about 15A continuous at 5V (as read in an earlier
+  session; **unverified** since).
+
+## Sources
+
+- [QuinLED DIY addressable Christmas tree guide](https://quinled.info/2020/11/29/diy-addressable-christmas-tree-guide/)
+- [QuinLED docs index](https://quinled.info/llms.txt) (an index of pages
+  that's easy to navigate for power, wiring, and injection guides)
diff --git a/notes/wled-and-control.md b/notes/wled-and-control.md
new file mode 100644
index 0000000..61b45c9
--- /dev/null
+++ b/notes/wled-and-control.md
@@ -0,0 +1,66 @@
+# WLED and control
+
+How to drive and address the lights. Items from earlier sessions that weren't
+re-checked are marked **(unverified)**.
+
+## Addressing individual LEDs
+
+- **Segments.** Split a string into ranges, down to a single LED, each with its
+  own color, effect, and brightness. In Home Assistant each segment becomes its
+  own light entity.
+- **Pattern effects.** Grouping and spacing settings on a segment give repeats
+  ("every other bulb", "two on, one off") without per-LED work.
+- **JSON API.** Set the exact color of each LED by index in one request. Per-LED
+  state is temporary; check how it interacts with saved presets before relying
+  on it for scheduled looks.
+- **Realtime streaming.** WLED can receive full frames over DDP or E1.31, for
+  example from xLights, so an external program can compute every LED's color
+  each frame. WLED returns to its own effect when the stream stops
+  **(unverified)**, so the lights recover if the renderer dies.
+- **Presets from Home Assistant.** Build looks as WLED presets and let Home
+  Assistant switch between them (by date, for seasonal looks).
+
+## Mapping inside WLED
+
+- **2D mode plus an `ledmap`.** WLED can treat a string as a 2D grid with a
+  `ledmap` file placing each LED in a cell, so built-in 2D effects play across
+  the real layout. Map files are named `ledmap1` through `ledmap9`
+  **(unverified)**.
+- [led_camera_map](https://github.com/savdb/led_camera_map) generates a ledmap
+  from a webcam and uploads it to WLED. The author developed it on the
+  MoonModules fork of WLED for its better 2D support **(unverified)**.
+- Limits: positions snap to a grid, and it's 2D only.
+- Cheap trick from the WLED forum: a ledmap that orders pixels by **height
+  only** already works well for most regular effects on a tree
+  ([thread](https://wled.discourse.group/t/2d-effects-on-a-christmas-tree/10416)).
+
+## xLights
+
+xLights runs on a computer and sends data to WLED; set the output protocol to
+DDP. See [Adafruit's guide](https://learn.adafruit.com/xlights-for-sparkle-motion-board/xlights-setup-and-mapping).
+If xLights sits in the stack, a 3D custom model of the tree gives a ready-made
+effects engine. xLights plus Falcon Player (FPP, on a Raspberry Pi) is the
+usual next step for sequenced shows, and FPP can drive WLED over E1.31 or DDP
+**(unverified)**.
+
+## Controller options (earlier session, **unverified**)
+
+The WLED firmware decides chip support, so any of these drive the same lights.
+The differences are build quality, protection, and polish.
+
+| Option | Notes |
+| --- | --- |
+| QuinLED Dig-Uno / Dig-Quad / Dig-Next-2 | Community favorite: level shifters, fused outputs, screw terminals. Bare board needs an enclosure. Mostly sold from the EU. |
+| Athom | Pre-assembled, pre-flashed. Less protection (fusing); some models are older ESP8266. |
+| Gledopto | ESP32 in a finished enclosure. Fewer config options. |
+| ABC WLED controllers | ESP32 boards for 5/12/24V, optional Ethernet. German shop. |
+| DIY ESP32 | Cheapest; you handle level shifting and fusing yourself. |
+
+For anything permanent, wired Ethernet is worth having.
+
+## Alternative: Pixelblaze
+
+A commercial controller built around mapped, code-driven patterns. MariMapper
+can export maps for it. It's arguably the most polished option for spatial
+effects, but it replaces WLED, and Home Assistant integration goes through
+community projects.