Arrange eight sewable NeoPixels in a heart on your fabric.
Trace around your pixels with a pencil or a disappearing-ink embroidery pen.
After you've stitched around the pixel's pad a few times, tie the thread in a knot at the back.
Apply tension to thread tails and dab clear nail polish onto the knots.
Allow to dry, periodically tugging on the thread tails to keep the knots tight.
Only clip thread tails short when completely dry to prevent unraveling!
Continue making short connections between each pixel's data connections, making sure the arrows all point in the same direction along the chain. Refer to the circuit diagram.
Use another thread and running stitch to connect up all the ground (-) pads of the pixels, circling the inner perimeter of the heart. Connect this thread to GND on GEMMA at the back.
Connect the first pixel's inward-facing arrow to D1 on GEMMA.
Tie off and seal all knots before trimming thread tails.
Put a piece of tape or fabric behind GEMMA where it overlaps any stitches it shouldn't touch.
Plug in the USB cable and test out the pixels using the strandtest sketch included in the Adafruit NeoPixel library for Arduino (change the value of PIN to 1 before compiling).
Are they all working? Great! If not, unplug and re-evaluate your circuit. Clean up any frayed or loose bits of thread, re-stitch any loose spots and double-seal your knots. Probe again with your multimeter before reconnecting via USB.
If you're happy with the flashing lights, you're done! Sew your new circuit swatch into a brooch or onto your Valentine's outfit, and rock your new flashy accessory.
But if you want your heart to turn on only when the moment's right, continue on to add a light sensor, perfect for revealing your heart from under a jacket, hat, or hemline.
The circuit isn’t finished yet, but let’s get the final code onto the board before continuing, so we can test it along the way…