Sparkle Skirt. Created by Becky Stern. Last updated on :48:58 PM UTC

Similar documents
Light-Up Angler Fish Embroidery

LED Stego Flex Spike Hoodie

Cyberpunk Spikes. Created by Becky Stern. Last updated on :07:06 PM UTC

NeoPixel LED Cortana Costume

Sewable NeoPixels. Created by Becky Stern. Last updated on :50:14 PM EDT

Celebration Spectacles

Jewel Hair Stick. Created by Leslie Birch. Last updated on :47:17 PM UTC

Crystal Glow Knuckles

NeoPixel Punk Collar. Created by Becky Stern. Last updated on :41:18 PM UTC

Adafruit LED Sequins. Created by Becky Stern. Last updated on :02:00 AM UTC

Adafruit LED Sequins. Created by Becky Stern. Last updated on :00:06 PM EST

Getting Started with FLORA

Getting Started with FLORA

FLORA Pixel Brooch. Created by Becky Stern. Last updated on :19:07 PM EST

Flora Brake Light Backpack

Interior Purse Light. Created by Becky Stern. Last updated on :41:08 PM UTC

FLORA TV-B-Gone. Created by Becky Stern. Last updated on :32:57 PM UTC

NeoPixel Basketball Hoop

3D Printed Camera LED Ring

GPS Logging Dog Harness

Bunny Ears with MakeCode

Mystical LED Halloween Hood

NeoPixel Ring Bangle Bracelet

Adafruit TPL5110 Power Timer Breakout

Adafruit TPL5111 Reset Enable Timer Breakout

Alohamora Bottle. Created by Erin St Blaine. Last updated on :58:53 PM UTC

Chirping Plush Owl Toy

Guardian Shield+ Zelda Breath of the Wild

NeoPixie Dust Bag with Circuit Playground Express

Glowing Star Chuck Taylor Sneakers

Feather Weather Lamp. Created by Ruiz Brothers. Last updated on :54:26 PM UTC

'Sup Brows. Created by Kate Hartman. Last updated on :52:04 PM UTC

Lie Ren's Stormflower Gun Blade

No-Sew LED Wristband. Created by Kathy Ceceri. Last updated on :23:40 PM UTC

Adafruit Capacitive Touch Sensor Breakouts

ISS Pin. Created by Leslie Birch. Last updated on :27:30 PM UTC

NeoMatrix 8x8 Word Clock

3D Printed LED Buckle

Camera LED Ring Light

Sino:bit with Arduino

Circuit Playground Digital Input

Easy Sparkle Pocket T-Shirt

Getting Started with FLORA

Punk LED Collar. Created by Becky Stern. Last updated on :02:45 PM EST

FLORA and GEMMA ICSP. Created by Becky Stern. Last updated on :42:16 PM UTC

Simple LED Unicorn Horn

TRON Bag. Created by Becky Stern

Adafruit APDS9960 breakout

Adafruit Color Sensors

NeoPixel Manicure. Created by Sophy Wong. Last updated on :50:38 PM UTC

Bike Wheel POV Display

Magical Mistletoe. Created by Leslie Birch. Last updated on :45:29 PM UTC

Clockwork Goggles. Created by John Park. Last updated on :03:10 PM UTC

Tent Lantern. Created by Timothy Reese. Last updated on :17:25 AM UTC

Trinket NeoPixel LED Longboard

Portable Apple Watch Charger

Bandolier of Light. Created by Becky Stern. Last updated on :16:17 PM EST

Infinity Mirror Valentine's Candy Box

MLX90393 Wide-Range 3-Axis Magnetometer

Datalogging Hat with FLORA BLE

Adabot Operation Game

Toy Car Speed Timer. Created by Kirby Griese. Last updated on :13:49 PM UTC

3D Printed Daft Punk Helmet with Bluetooth

Circuit Playground Express Head-Tilt Ears

FLORA and GEMMA ICSP. Created by Becky Stern. Last updated on :30:55 PM EST

Kaleidoscope Eyes (Trinket-Powered NeoPixel LED Ring Goggles)

Mad Science Test Tube Rack

Adafruit 8x16 LED Matrix FeatherWing

Audio Prank Gift Box. Created by Becky Stern. Last updated on :46:15 PM UTC

Wind Blowing Emoji Prop

Adafruit VL53L0X Time of Flight Micro-LIDAR Distance Sensor Breakout

Galaxy Pendant. Created by Erin St Blaine. Last updated on :44:15 PM UTC

Bluetooth Controlled NeoPixel Headphones

Coffee Detonator: The TNT Plunger Grinder

Circuit Playground Kaleidoscope

Pushrod Garage. Created by John Park. Last updated on :07:30 PM UTC

Prophet 600 GliGli mod

Circuit Playground Yoyo

Flora Wearable GPS. Created by Becky Stern. Last updated on :32:36 PM UTC

TSL2561 Luminosity Sensor

MCP Bit DAC Tutorial

Adafruit MMA8451 Accelerometer Breakout

Adafruit SGP30 TVOC/eCO2 Gas Sensor

Adafruit AS channel Visible Light Sensor

Adafruit 7-Segment LED FeatherWings

Morning Star POV Double Staffs

Trinket-Powered Conference Room Occupancy Display

PyPortal NeoPixel Color Picker Created by Kattni Rembor. Last updated on :42:41 PM UTC

MCP Bit DAC Tutorial

Con Badge with Circuit Playground Express

Adafruit IO Basics: Analog Input

Adafruit 8x16 LED Matrix FeatherWing

Adafruit MCP9808 Precision I2C Temperature Sensor Guide

Glowing Smokey Skull. Created by Ruiz Brothers. Last updated on :03:40 PM UTC

MiniPOV4 - DIY Full-Color Persistence of Vision & Light-Painting Kit

NeoPixel Bike Light. Created by Ruiz Brothers. Last updated on :43:46 PM UTC

Adafruit IO Basics: Temperature & Humidity

LED Eyes. Created by Ruiz Brothers. Last updated on :50:55 AM UTC

Trellis 3D Printed Enclosure

LED Breath Stats Mask

Transcription:

Sparkle Skirt Created by Becky Stern Last updated on 2017-12-13 03:48:58 PM UTC

Guide Contents Guide Contents Overview Tools & Supplies Layout & Circuit Diagram Sew Circuit Code & Battery Wear it! 2 3 6 11 14 18 24 Adafruit Industries https://learn.adafruit.com/sparkle-skirt Page 2 of 24

Overview Make clothing that lights up when you move! This is a sewing (no soldering) Flora project using 12 color-changing NeoPixels and the Flora accelerometer/compass module. Spikes in the sensor readings cause the pixels to flash, and sparkle. The pixels are sewn to the skirt's lining and are diffused by the outer layer of fabric, whether it be a sheer overlay or a cutout lace design. Adafruit Industries https://learn.adafruit.com/sparkle-skirt Page 3 of 24

If a skirt doesn't appeal to you, use this circuit and code on a hat, a belt buckle, and even a blinky dog collar. Prerequisite guides: Getting Started with FLORA Conductive thread FLORA Accelerometer FLORA RGB NeoPixels Adafruit Industries https://learn.adafruit.com/sparkle-skirt Page 4 of 24

Model photos by John de Cristofaro, construction assistance and modeling by Risa Rose. Hat tip to Bona Kim. Adafruit Industries https://learn.adafruit.com/sparkle-skirt Page 5 of 24

Tools & Supplies Bill of materials: FLORA main board FLORA accelerometer + compass module 12 FLORA RGB NeoPixels 150mAh LiPo battery or 3xAAA battery pack Conductive thread Standard thread Lined skirt with either a sheer overlay or cutout top layer Sharp scissors are a must! Adafruit Industries https://learn.adafruit.com/sparkle-skirt Page 6 of 24

You'll use a needle (http://adafru.it/615) and to stitch up the circuit. Conductive thread (https://adafru.it/avx) will carry signal and current to the Flora NeoPixels. You will need a good quality basic multimeter that can measure voltage and continuity. Click here to buy a basic multimeter. (http://adafru.it/71) Click here to buy a top of the line multimeter. (http://adafru.it/308) Click here to buy a pocket multimeter. (http://adafru.it/850) Don't forget to learn how to use your multimeter too! (https://adafru.it/aoy) Adafruit Industries https://learn.adafruit.com/sparkle-skirt Page 7 of 24

We recommend beginners use an embroidery hoop to stabilize the circuit-supporting fabric during sewing. It makes things a lot easier and results in a better-looking finished project. For more information on using an embroidery hoop correctly, check out our Cross Stitch tutorial (https://adafru.it/aut). Adafruit Industries https://learn.adafruit.com/sparkle-skirt Page 8 of 24

Clear nail polish or fray check to seal knots Adafruit Industries https://learn.adafruit.com/sparkle-skirt Page 9 of 24

To mark out your circuit use a water-soluble embroidery marker or tailor's chalk. Adafruit Industries https://learn.adafruit.com/sparkle-skirt Page 10 of 24

Layout & Circuit Diagram Select a skirt and start planning where your pixels will go. Above is a diagram showing how to connect all the parts of this circuit (click to enlarge). Since the conductive thread has nontrivial resistance, pay close attention to the extra connecting power and ground lines on either side of the skirt-- they will help your colored lights shine to their full potential. Adafruit Industries https://learn.adafruit.com/sparkle-skirt Page 11 of 24

Lift the outside layer of the skirt away from the lining. If they are attached with small threads, snip them. Place your components on the front of the skirt lining according to the diagram. We'll do the back pixels separately, after all six of the front pixels are working. Adafruit Industries https://learn.adafruit.com/sparkle-skirt Page 12 of 24

Lift each component and make a mark with a water-soluble marking pen (or just use a very fine tip permanent marker to make a tiny dot). Adafruit Industries https://learn.adafruit.com/sparkle-skirt Page 13 of 24

Sew Circuit Begin by tacking down the FLORA main board to the skirt lining with regular thread, using two unused pads. Set up the fabric in a large embroidery hoop. Stitch the four connections between the Flora main board and the accelerometer board. Check out the Flora Accelerometer Guide (https://adafru.it/ays) for more info. Then begin stitching to connect your pixels data pads (marked with inward facing arrows and outward facing arrows) from FLORA pad D6. Adafruit Industries https://learn.adafruit.com/sparkle-skirt Page 14 of 24

Adafruit Industries https://learn.adafruit.com/sparkle-skirt Page 15 of 24

Read our Conductive Thread (https://adafru.it/avx) guide for more tips on working with this odd steel fiber! Knot, seal and clip the ends of the threads, being careful to avoid unintended connections (aka shorts). Adafruit Industries https://learn.adafruit.com/sparkle-skirt Page 16 of 24

Using one extra long piece of conductive thread, stitch the power bus for the six pixels on the front of the skirt. Repeat with another for the ground line. We'll test these pixels first before connecting more on the back! Don't power up your skirt until you've checked for shorts! Double check your tails are clipped and your skirt is laying flat on a nonconductive surface. Never stitch pixels with the power connected, and never connect power with the skirt bunched up in your lap! Adafruit Industries https://learn.adafruit.com/sparkle-skirt Page 17 of 24

Code & Battery Double check that all your conductive thread tails have been trimmed and your skirt is laying flat on a nonconductive surface, and then connect your FLORA main board to your computer with a USB cable. Open the Adafruit Arduino IDE, which you can download from the Getting Started with FLORA guide. You will need the NeoPixel library for this project-- if you've never installed an Arduino library before, read our guide on the topic! Open up the Library manager Find the Adafruit NeoPixel library and install it... Adafruit Industries https://learn.adafruit.com/sparkle-skirt Page 18 of 24

First test out all six pixels by uploading the sketch in File >> Examples >> Adafruit_NeoPixel >> strandtest. If all of your pixels light up and change color, you're good to continue to the back! Disconnect the USB cable before stitching more pixels on the back. For more tips on stitching up a line of NeoPixels, read the corresponding page in our LED Ampli-Tie guide (https://adafru.it/c9d). When you have pixels on the front and back of the skirt, place a piece of scrap fabric in between them for testing (so they don't short each other out), or put the skirt on a dress form. When you're wearing the skirt, your body will keep the front and back from touching. If your skirt has lots of folds, you may have trouble with your pixel connections shorting against each other. You can insulate them under a piece of ribbon, wear a slip under the skirt, and also add some wobble to your pixel line so when the skirt folds, traces aren't up against each other. Next test out the accelerometer, install the Adafruit LSM303DLHC library using the library manager. Make sure you grab the one with DLHC in the name Adafruit Industries https://learn.adafruit.com/sparkle-skirt Page 19 of 24

Also, install the Adafruit Unified Sensor library Now test by uploading the sketch in File >> Examples >> Adafruit_LSM303 >> Accel_Sensor. Open up the serial monitor and watch for changing motion values. For more information, check out our FLORA Accelerometer guide. Copy the code below into your Adafruit Arduino IDE and click Upload. The colors can be specified in the myfavoritecolors array, and the sensitivity to motion can be defined with MOVE_THRESHOLD. #include <Wire.h> #include <Adafruit_Sensor.h> #include <Adafruit_LSM303_U.h> #include <Adafruit_NeoPixel.h> // Parameter 1 = number of pixels in strip // Parameter 2 = pin number (most are valid) // Parameter 3 = pixel type flags, add together as needed: // NEO_RGB Pixels are wired for RGB bitstream // NEO_GRB Pixels are wired for GRB bitstream // NEO_KHZ400 400 KHz bitstream (e.g. FLORA pixels) // NEO_KHZ800 800 KHz bitstream (e.g. High Density LED strip) Adafruit_NeoPixel strip = Adafruit_NeoPixel(6, 6, NEO_GRB + NEO_KHZ800); Adafruit_LSM303_Accel_Unified accel = Adafruit_LSM303_Accel_Unified(54321); // Here is where you can put in your favorite colors that will appear! // just add new {nnn, nnn, nnn}, lines. They will be picked out randomly // R G B uint8_t myfavoritecolors[][3] = {{200, 0, 200}, // purple {200, 0, 0}, // red {200, 200, 200}, // white }; // don't edit the line below Adafruit Industries https://learn.adafruit.com/sparkle-skirt Page 20 of 24

#define FAVCOLORS sizeof(myfavoritecolors) / 3 // mess with this number to adjust TWINklitude :) // lower number = more sensitive #define MOVE_THRESHOLD 45 void setup() { Serial.begin(9600); } // Try to initialise and warn if we couldn't detect the chip if (!accel.begin()) { Serial.println("Oops... unable to initialize the LSM303. Check your wiring!"); while (1); } strip.begin(); strip.show(); // Initialize all pixels to 'off' void loop() { /* Get a new sensor event */ sensors_event_t event; accel.getevent(&event); Serial.print("Accel X: "); Serial.print(event.acceleration.x); Serial.print(" "); Serial.print("Y: "); Serial.print(event.acceleration.y); Serial.print(" "); Serial.print("Z: "); Serial.print(event.acceleration.z); Serial.print(" "); // Get the magnitude (length) of the 3 axis vector // http://en.wikipedia.org/wiki/euclidean_vector#length double storedvector = event.acceleration.x*event.acceleration.x; storedvector += event.acceleration.y*event.acceleration.y; storedvector += event.acceleration.z*event.acceleration.z; storedvector = sqrt(storedvector); Serial.print("Len: "); Serial.println(storedVector); // wait a bit delay(100); // get new data! accel.getevent(&event); double newvector = event.acceleration.x*event.acceleration.x; newvector += event.acceleration.y*event.acceleration.y; newvector += event.acceleration.z*event.acceleration.z; newvector = sqrt(newvector); Serial.print("New Len: "); Serial.println(newVector); } // are we moving if (abs(newvector - storedvector) > MOVE_THRESHOLD) { Serial.println("Twinkle!"); flashrandom(5, 1); // first number is 'wait' delay, shorter num == shorter twinkle flashrandom(5, 3); // second number is how many neopixels to simultaneously light up flashrandom(5, 2); } void flashrandom(int wait, uint8_t howmany) { for(uint16_t i=0; i<howmany; i++) { Adafruit Industries https://learn.adafruit.com/sparkle-skirt Page 21 of 24

for(uint16_t i=0; i<howmany; i++) { // pick a random favorite color! int c = random(favcolors); int red = myfavoritecolors[c][0]; int green = myfavoritecolors[c][1]; int blue = myfavoritecolors[c][2]; // get a random pixel from the list int j = random(strip.numpixels()); //Serial.print("Lighting up "); Serial.println(j); // now we will 'fade' it in 5 steps for (int x=0; x < 5; x++) { int r = red * (x+1); r /= 5; int g = green * (x+1); g /= 5; int b = blue * (x+1); b /= 5; strip.setpixelcolor(j, strip.color(r, g, b)); strip.show(); delay(wait); } // & fade out in 5 steps for (int x=5; x >= 0; x--) { int r = red * x; r /= 5; int g = green * x; g /= 5; int b = blue * x; b /= 5; strip.setpixelcolor(j, strip.color(r, g, b)); strip.show(); delay(wait); } } // LEDs will be off when done (they are faded to 0) } Adafruit Industries https://learn.adafruit.com/sparkle-skirt Page 22 of 24

Use a scrap piece of coordinating fabric to sew a small battery pouch. We doubled ours over, used the sewing machine to stitch in an L, then clipped the corner and turned the pouch right-side out. Stitch the battery pouch to the skirt lining with regular thread in a place nearby the FLORA main board. Adafruit Industries https://learn.adafruit.com/sparkle-skirt Page 23 of 24

Wear it! Wear your new flashy skirt to your next party, out dancing, make one for each bridesmaid, and be sure to document and share your creations online! Change the colors to match the rest of your outfit or suit the occasion. Adafruit Industries Last Updated: 2017-12-13 03:48:58 PM UTC Page 24 of 24