CMozSparkel
For the makers
CMozSparkel · film props · YouTube builds

One LED. Just an LED.

The whole concept is a single LED — no strip, no run, no shape on stage for now. Just one LED: sculpt how that one light behaves over time — a phosphor hit, a firefly pulse, a twinkling star — and the export box turns it all into Arduino code for that one LED. The cut-out shapes are still in section 4 for when you want them.

— lmPerceived
— mWLED power
— HzEvent rate
— HzPWM carrier

1 — The single LED

Three.js scene, rendered live. Just one LED on its own — no silhouette, no strip. Tap or click the LED itself to switch it on and off, or drag elsewhere on the stage to orbit. Everything below drives this one light.

THREE · LOADING
SINGLE LED · ON
Tap the LED to switch it off / on
LED type
Amber — classic indicator / firefly glow
Pick a real LED colour. Whites keep the temperature slider below; colours override it.
Warm amber suits fireflies and candles; cool white reads as starlight or lightning.
3 V coin cell, 5 V USB, or a 12 V bench supply with a proper resistor / driver — the code notes update.

Diffused is the firefly finish: the whole abdomen seems to glow, not just a dot. Clear keeps a star-like point.

2 — PWM generator

The fast carrier your microcontroller actually outputs to the one LED. The eye integrates it — the camera may not.

2000 Hz · 72%
Under ~200 Hz cameras catch banding. 2–5 kHz is a sweet spot for filming; 20 kHz+ moves whine out of hearing.
The ceiling for the single LED. The shaper below works underneath it.

Perceived brightness

What a viewer (and a lens) actually sees from the one LED, after the envelope + phosphor tail.

3 — Advanced PWM shaping

Start with a character, then bend it. Every preset drives the same single LED.

FIREFLY
Low = neon snap-off. High = old phosphor / filament cooling, a long warm afterglow.
Fireflies and candles are never metronomes. This wobbles timing + peak height per cycle.
⚠ Fast, high-contrast flashing can be uncomfortable on camera and for viewers. The preview smooths rates above 3 Hz — keep stage / stream effects at or below that unless you know your audience.

4 — Cut the shape, place the LED

One-piece outlines made for the ScanNCut or a laser: no loose parts, no thin necks, rounded points that won't snag the blade. Choose felt or fabric and you get stitch marks for sewing the LED on; choose acrylic or ply and you get a 5 mm hole to push it through.

SVG · DXF · REAL SIZE IN MM
Each shape starts with its LED where it makes sense, like the firefly's glowing abdomen. You'll get a warning if it ends up too close to the edge to stitch.
The bright point in the preview is the LED. The glow stays inside the shape, brightest at the LED.
The SVG and DXF download at this real size in millimetres, so they import into ScanNCut CanvasWorkspace or your laser software ready to cut. 60–120 mm suits felt.

Files have a CUT layer (the outline), an ETCH layer (details to draw with the pen tool or engrave) and an LED_MARK layer. For sewn materials, LED_MARK shows the LED outline with + and − stitch points 4 mm either side. For card, acrylic and ply, a 5 mm hole is added to the cut. Set kerf in your laser software for your material.

For felt and fabric. Sew the LED and conductive thread on the backing, following the marked + and − paths out to the tab. Snaps or a battery lead go on the tab pads. Lay the front on top: it hides the stitching and softens the glow. Both pieces are in the same file.

5 — Export: PlatformIO code

Generated live from every slider above — one pin, one LED, and the hardware runs the same maths as the preview.


      
MCULEDPIN → 220Ω → LED +
Wiring in one line: for a single indicator LED, MCU pin → 220 Ω resistor → LED anode, LED cathode → GND. Driving anything bigger — a high-power LED or a COB chip — use a logic-level MOSFET (e.g. IRLZ44N) instead: pin → 100 Ω → gate, LED − to drain, common ground, 10 kΩ gate pull-down so it stays off at boot.