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.
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.
Tap the LED to switch it off / on
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.
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.
✦ Easter egg — you found the secret Morse panel
Pick SOS and you don't have to send SOS. Type any message — letters, numbers and spaces — and the one LED will send that instead, on loop. It updates live as you type, and the Arduino export below writes your message into the code too.
Tip: a long message flies past at the current Event rate. Drag Event rate down (try 0.15–0.25 Hz) to slow the dits and dahs so they're easy to read. Unsupported characters are skipped.
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.
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.