SparkleMap

Guided mobile workflow with automatic map-size recommendations

SparkleMap
Session
RC4.9

Session

Resume work on this device or move the complete mapping session between devices.

No saved session loaded.

Camera video and captured frames are never stored. Saved sessions contain settings, centroids, generated map data, confirmations, and validation controls.

Connect and verify raw-scan readiness

Not connected.

WLED reports the wrong physical count?

Old 2D configuration can make WLED report logical canvas cells instead of the physical output count. SparkleMap can download a recovery package, remove active mapping files, switch WLED to ordinary 1D mode, and reboot before scanning.

Connect first. This action changes WLED configuration.

Before scanning: configure WLED as a raw 1D strip, remove or disable any active ledmap, disable 2D panel transformation, and ensure the configured LED count equals the complete installation being mapped.

Scan raw physical indices

How would you like to continue?

Choose Import if a previous SparkleMap scan JSON is already available. No camera access is required.

Camera scan settings guide
Start / End index
The inclusive physical LED range. For 256 LEDs use 0 through 255.
Green threshold
Controls how strongly green a camera region must be before SparkleMap accepts it. Raise the value to reject reflections; lower it if real LEDs are missed.
Brightness
Use the lowest value that produces one clear camera spot. Excess brightness can cause bloom and false detections.

Camera not started.

LED output used during detection. Start near 128. Lower it for bloom or reflections; raise it when the camera cannot isolate the active LED.

Connect to WLED and start the camera.

Import or use raw physical scan

Import a SparkleMap scan captured while WLED was configured as a raw 1D strip with no active map or 2D transformation.

No scan imported.

Detection quality details and troubleshooting

SparkleMap checks detections automatically. Open this only if generation is blocked, pixels are missing, or the camera result needs diagnosis.

Optical confidence is advisory. Geometric collisions require review before deployment.

Non-high-confidence detections
No scan loaded.
Centroid collisions below 0.5 px
No scan loaded.
Import or complete a scan to review detection quality.

Generate logical map

✦Suggested logical map size

Import or complete a scan to calculate recommendations.

How recommendations are chosen

Regular-grid candidates are factor pairs scored against the detected camera aspect ratio. Sparse candidates provide compact, recommended, and detailed densities while preserving the detected shape ratio. SparkleMap rejects candidates with fewer logical cells than detected LEDs.

Recommended automatically. Complete rectangular grid is for matrices with every cell occupied. Sparse surface is for trees, outlines, props, and random 1D-string placement with empty logical cells.

Import a scan first.

Prepare and install map on WLED

SparkleMap can back up WLED, remove stale maps, prepare ordinary 1D Strip mode, install ledmap.json, reboot, and verify the result.

Generate a map to populate installation values.

Safety: A recovery package is downloaded before configuration changes. Keep it until WLED-native validation passes.
Open WLED 2D ConfigurationOpen WLED File Editor

Generate a map and connect to WLED.

○Inspect WLED, map dimensions, and physical LED rangeNot run
○Create and download recovery packageNot run
○Remove ledmap.json and 2d-gaps.jsonNot run
○Configure WLED as ordinary 1D StripNot run
○Reboot and verify zero panels and no active map filesNot run
○Upload generated map as ledmap.json and compare exact contentsNot run
○Reboot and verify matrix dimensions, physical count, and map ID 0Not run
WLED-native validation is not complete. SparkleMap already completed the deployment reboot. Run PixelForge or another native 2D effect now.
Open WLED homeOpen PixelForge

Optional final regression: power-cycle WLED later and repeat the native pattern to confirm persistence.

Manual installation fallback
  1. Delete ledmap.json and 2d-gaps.json under WLED /edit.
  2. Set WLED 2D Configuration to 1D Strip, save, and reboot.
  3. Upload the generated file directly under /edit as ledmap.json.
  4. Reboot and confirm WLED reports the generated width and height.
  5. Run a WLED-native 2D validation pattern.

Map validation

Validation mode: Generated map against raw physical outputsSparkleMap translates logical cells through the generated map and sends raw physical indices. Use this only while WLED is in raw 1D mode and ledmap.json is absent.

Raw physical mode sends translated physical indexes and is valid only before ledmap.json is installed. Installed-map mode sends logical indexes and is required after deployment.

No connection attempted.

Center marker always selects the nearest mapped LEDs, even when the geometric center is empty. Mapped shape boundary selects the outermost available LEDs rather than the empty logical-canvas edge.

Generate a map and connect to WLED.

Validation checklist
  • Green physical LEDs must match green preview cells containing white dots.
  • 0° moves top-to-bottom as position changes.
  • 90° moves left-to-right as position changes.
  • 45° verifies diagonal intersections.
  • Increasing thickness selects nearby mapped cells.
  • Unconfigured physical pixels must remain off.

Diagnostics

Build
Algorithm
Regular: skew-corrected exact rows. Sparse: unmodified camera geometry, aspect-preserving fit, nearest-free logical-cell assignment.

App settings

Guided mode shows one workflow stage at a time. Advanced mode keeps all developer controls visible.