NeoPixel LED Cortana Costume

Similar documents
Celebration Spectacles

Light-Up Angler Fish Embroidery

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

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

Mystical LED Halloween Hood

3D Printed Camera LED Ring

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

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

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

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

3D Printed LED Buckle

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

NeoPixel Ring Bangle Bracelet

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

Guardian Shield+ Zelda Breath of the Wild

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

LED Stego Flex Spike Hoodie

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

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

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

NeoPixel Basketball Hoop

Simple LED Unicorn Horn

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

7" Portable HDMI Monitor

Portable Apple Watch Charger

Crystal Glow Knuckles

Solar Boost Bag. Created by Becky Stern. Last updated on :44:55 PM UTC

3D Printed Daft Punk Helmet with Bluetooth

3D Printed Bone Conduction Transducer Box

GPS Logging Dog Harness

7 Portable Multitouch Raspberry Pi Tablet

Getting Started with FLORA

Getting Started with FLORA

Trinket NeoPixel LED Longboard

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

Trellis 3D Printed Enclosure

Adafruit TPL5110 Power Timer Breakout

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

Lie Ren's Stormflower Gun Blade

FPV Mini Display. Created by Ruiz Brothers. Last updated on :00:18 PM UTC

Adafruit TPL5111 Reset Enable Timer Breakout

Phone-Activated Talking Dog Collar

3D Printed 20w Amplifier Box

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

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

Bluetooth Controlled NeoPixel Headphones

Chirping Plush Owl Toy

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

Infinity Mirror Valentine's Candy Box

Bunny Ears with MakeCode

3D Printed 20w Amplifier Box

Magnetic shoelaces. Created by Ruiz Brothers. Last updated on :31:02 PM UTC

Boomy The Boombox. Created by Ruiz Brothers. Last updated on :52:13 PM UTC

Circuit Playground Combadge

NeoPixie Dust Bag with Circuit Playground Express

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

Circuit Playground Digital Input

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

3D Printed LED Knuckle Jewelry

Reindeer Mask with Animated Eyes

Flora Brake Light Backpack

Camera LED Ring Light

Circuit Playground Kaleidoscope

Circuit Playground Yoyo

Zelda Thunder Helm. Created by Ruiz Brothers. Last updated on :46:52 PM UTC

Neon LED Signs. Created by John Park. Last updated on :11:09 PM UTC

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

NeoMatrix 8x8 Word Clock

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

Adafruit Capacitive Touch Sensor Breakouts

Interactive Gift Box. Created by codingpro. Last updated on :47:40 AM UTC

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

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

Unicorn Hat with Moving Ears

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

3D Printed Case for Adafruit Feather

DIY Bluetooth Gamepad

Con Badge with Circuit Playground Express

MCP Bit DAC Tutorial

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

Wind Blowing Emoji Prop

CircuitPython Media Dial

Adafruit Color Sensors

Luminous LED Flowers. Created by Becky Stern. Last updated on :47:44 PM UTC

3D Printed Google AIY Voice Kit

Circuit Cookie Roller

Easy Sparkle Pocket T-Shirt

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

DIY Custom American Girl Doll Prosthetics

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

Mad Science Test Tube Rack

NeoPixel Fairy Crown. Created by Erin St Blaine. Last updated on :22:47 AM UTC

3DPrinted Custom Keycaps

Sword & Wand Prop Effects with Circuit Playground

MCP Bit DAC Tutorial

Trinket-Powered Conference Room Occupancy Display

TRON Bag. Created by Becky Stern

Glowing Star Chuck Taylor Sneakers

Coffee Detonator: The TNT Plunger Grinder

Adafruit APDS9960 breakout

Transcription:

NeoPixel LED Cortana Costume Created by Ruiz Brothers Last updated on 2018-08-22 03:43:43 PM UTC

Guide Contents Guide Contents Overview How it Works Project Advisory Prerequisite Guides Parts & Components Tools & Supplies Circuit Diagram Code Assembly 3D Printing Trace Reference Measure body length Exturde Paths Print Stencil Mark LEDs on unitard Paint Stencil 2 3 3 3 3 4 4 6 7 9 16 16 16 17 18 18 19 Adafruit Industries https://learn.adafruit.com/neopixel-led-cortana-costume Page 2 of 19

Overview In this project we re adding sewable NeoPixels and GEMMA to a bodysuit to make a light up Cortana costume. To get extra details, we ll trace artwork from reference photos, format the artwork and make a stencil that we can 3d print. How it Works This sewable project uses a Gemma, NeoPixel Rings and sewable NeoPixels use our condutive thread to connect data, power and ground. Project Advisory Stitching on stretchy fabric can be very challenging. Be sure to stretch the fabric while you sew so the thread doesn t end up too tight, or the strong stainless steel thread might tear the fabric. If you re a beginner, stick to soldering or try an easier conductive thread project first! Prerequisite Guides Introducing GEMMA (https://adafru.it/dua) NeoPixel Uberguide (https://adafru.it/dhw) Conductive Thread (https://adafru.it/dn3) Adafruit Industries https://learn.adafruit.com/neopixel-led-cortana-costume Page 3 of 19

Parts & Components Most of the tools parts and supplies are available in our shop. Gemma (https://adafru.it/dub) NeoPixels (http://adafru.it/1559) NeoPixel Ring 16x (https://adafru.it/dyu) 150mAh Lipo Battery (https://adafru.it/dyy) Tools & Supplies Condutive Thread (https://adafru.it/cdj) Needles (https://adafru.it/dz0) 3D Printer (https://adafru.it/tf2) PLA Filament (https://adafru.it/dtn) Wire Stripper (http://adafru.it/527) Soldering Iron (https://adafru.it/tf4) Solder (https://adafru.it/cdd) Adafruit Industries https://learn.adafruit.com/neopixel-led-cortana-costume Page 4 of 19

Adafruit Industries https://learn.adafruit.com/neopixel-led-cortana-costume Page 5 of 19

Circuit Diagram Connect the NeoPixel Ring to Gemma using Silicone Wire. Vcc to Vout IN to D1 GND to GND Connect each NeoPixel into two chain along the sides. Create a Y connection were they meet in the middle. Share the NeoPixel Ring's Out pin to the digital pins on both NeoPixel chains as shown in the diagram. Connect - and + pins on the NeoPixels to GND and Vout on Gemma. Adafruit Industries https://learn.adafruit.com/neopixel-led-cortana-costume Page 6 of 19

Code Load the following code onto your GEMMA using the Adafruit Arduino IDE or Codebender: //Cortana costume animating NeoPixels //based on the Larson Scanner Shades by Phillip Burgess //https://learn.adafruit.com/larson-scanner-shades //modified by Becky Stern for Adafruit #include <Adafruit_NeoPixel.h> #define PIN 1 // Parameter 1 = number of pixels in strip // Parameter 2 = Arduino pin number (most are valid) // Parameter 3 = pixel type flags, add together as needed: // NEO_KHZ800 800 KHz bitstream (most NeoPixel products w/ws2812 LEDs) // NEO_KHZ400 400 KHz (classic 'v1' (not v2) FLORA pixels, WS2811 drivers) // NEO_GRB Pixels are wired for GRB bitstream (most NeoPixel products) // NEO_RGB Pixels are wired for RGB bitstream (v1 FLORA pixels, not v2) Adafruit_NeoPixel strip = Adafruit_NeoPixel(21, PIN, NEO_GRB + NEO_KHZ800); int ringrightside[] = {0, 1, 2, 3, 4, 5, 6, 7, 8}; int ringleftside[] = {0, 15, 14, 13, 12, 11, 10, 9, 8}; int singlepixels[] = {16, 17, 18, 19, 20}; // IMPORTANT: To reduce NeoPixel burnout risk, add 1000 uf capacitor across // pixel power leads, add 300-500 Ohm resistor on first pixel's data input // and minimize distance between Arduino and first pixel. Avoid connecting // on a live circuit...if you must, connect GND first. void setup() { strip.begin(); strip.show(); // Initialize all pixels to 'off' } int pos = 0; int pos2 = 0; void loop() { // Draw 5 pixels centered on pos. setpixelcolor() will clip any // pixels off the ends of the strip, we don't need to watch for that. strip.setpixelcolor(ringrightside[abs((pos - 2)%9)], strip.color(0, 0, 80)); // Dark blue strip.setpixelcolor(ringrightside[abs((pos - 1)%9)], strip.color(0, 0, 150)); // Medium blue strip.setpixelcolor(ringrightside[abs((pos )%9)], strip.color(15, 15, 200)); // Center pixel is brig strip.setpixelcolor(ringrightside[abs((pos + 1)%9)], strip.color(0, 0, 150)); // Medium blue strip.setpixelcolor(ringrightside[abs((pos + 2)%9)], strip.color(0, 0, 80)); // Dark blue strip.setpixelcolor(ringleftside[abs((pos - 2)%9)], strip.color(0, 0, 80)); // Dark blue strip.setpixelcolor(ringleftside[abs((pos - 1)%9)], strip.color(0, 0, 150)); // Medium blue strip.setpixelcolor(ringleftside[abs((pos )%9)], strip.color(15, 15, 200)); // Center pixel is brigh strip.setpixelcolor(ringleftside[abs((pos + 1)%9)], strip.color(0, 0, 150)); // Medium blue strip.setpixelcolor(ringleftside[abs((pos + 2)%9)], strip.color(0, 0, 80)); // Dark blue strip.setpixelcolor(singlepixels[abs(pos2-1)], strip.color(0, 0, 80)); // Dark blue strip.setpixelcolor(singlepixels[abs(pos2 )], strip.color(15, 15, 200)); // Center pixel is brightes strip.setpixelcolor(singlepixels[abs(pos2 + 1)], strip.color(0, 0, 80)); // Dark blue strip.show(); delay(100); Adafruit Industries https://learn.adafruit.com/neopixel-led-cortana-costume Page 7 of 19

delay(100); // Rather than being sneaky and erasing just the tail pixel, // it's easier to erase it all and draw a new one next time. for(int j=-2; j<= 2; j++) { strip.setpixelcolor(ringrightside[(pos+j)%9], 0); strip.setpixelcolor(ringleftside[(pos+j)%9], 0); strip.setpixelcolor(singlepixels[(pos2+j)%5], 0); } pos += 1; if(pos < 0) { pos = 1; } else if(pos >= 9) { pos = 0; } pos2 += 1; if(pos2 < 0) { pos2 = 1; } else if(pos2 >= 6) { pos2 = 0; } } Adafruit Industries https://learn.adafruit.com/neopixel-led-cortana-costume Page 8 of 19

Assembly A body form is a must for this project! You can make your own if necessary, but you really shouldn't attempt this project without one. Suit up your bodyform with your shapewear undergarment and mock up the layout of circuitry using pins and a Adafruit Industries https://learn.adafruit.com/neopixel-led-cortana-costume Page 9 of 19

marking pen or pencil. We'll be both soldering and sewing to GEMMA, so let's do the soldering first. Attach two silicone-coated wires to Vout and GND, and one to D1. Then connect one set up to Power, Ground, and Data Input on the 16-NeoPixel ring, respectively. Solder another wire to the NeoPixel ring's Data Out pin. When you're happy with the layout, stitch GEMMA to the undergarmend with plain cotton thread around one of the unused pins. Be careful not to accidentlaly stitch it to your body form! You may need to pull the stretchy fabric away from the form to be sure the needle doesn't pierce any fabric cover that might be on your body form. Before affixing the ring to the garment, start stitching connections from Vout and GND on GEMMA to head to your sewable pixels. You don't have to complete the buses now, this is just so you don't have to sew uncomfortably underneath the NeoPixel ring, so you can leave long thread tails hanging out for now. Adafruit Industries https://learn.adafruit.com/neopixel-led-cortana-costume Page 10 of 19

Secure the NeoPixel ring to the garment with plain thread. Attach the Data Out wire to the garment by stripping a long section of the wire and stitching over and around it with conductive thread. Double the wire over to make a loop, make sure that it can't pull loose from the thread connection! Adafruit Industries https://learn.adafruit.com/neopixel-led-cortana-costume Page 11 of 19

Since we want the right and left pixel chains to perform the same animation, we'll just split the data connection and send it to both at the same time-- they'll act "mirror image" this way without extra code! Stitch the data line to the inputs on the first two sewable pixels. Use those extra power and ground wires to criss cross and transition to conductive thread for the far power and ground buses on the pixel chains (as pictured). Adafruit Industries https://learn.adafruit.com/neopixel-led-cortana-costume Page 12 of 19

Pick up your power and ground threads and stitch on the rest of your pixels. Pull the fabric from the body form and carefully pick up bits of material to create a running stitch on your needle, then pull through. Double check you're not sewing to your form. Gently stretch the fabric as you sew, to make sure there is enough slack in the thread to accomodate for the stretching necessary to put the garment on. Stainless steel conductive thread is very strong and will not stretch-- it will instead tear through your delicate knit fabric and could ruin your project... we've said it before but it's worth mentioning again: this project requires challenging and technical execution, if it's your first foray into conductive thread we strongly recommend you try something on woven (not stretchy) fabric first! Adafruit Industries https://learn.adafruit.com/neopixel-led-cortana-costume Page 13 of 19

At each pixel, wrap tightly around the connection pad, then tie one knot and continue on without breaking the thread. Since the running stitch should be pretty loose (to allow for more stretch), this knot prevents the loops around the pixel from opening up and possibly shorting other components on the pixel. Tidy stitching is the name of the game here! Here's a sewn pixel closeup. It's hard to test your circuit until you've finished stitching! Once you've sewn your pixel chains, you can leave the excess power and ground threads attached in case you need to double over your connections. Just coil them up and pin them to your body form, making sure they're not touching each other. Adafruit Industries https://learn.adafruit.com/neopixel-led-cortana-costume Page 14 of 19

Adafruit Industries https://learn.adafruit.com/neopixel-led-cortana-costume Page 15 of 19

3D Printing Trace Reference Build the stencil files by tracing out the details in your favorite vector app to create the paths or download the svg vectors paths! https://adafru.it/dzj https://adafru.it/dzj Measure body length Adafruit Industries https://learn.adafruit.com/neopixel-led-cortana-costume Page 16 of 19

Create a document with the correct body measruments for each part of the upper, middle and lower chest. Exturde Paths Next we'll build the solid pieces that will act as the cutouts for the stencils, or you download the STLs for the shoulders, chest and lower body. Make a square as big as the build plate you'll be printing on, here we made it 30cm x 30 cm. Import the svg file, snap the bottom faces to the top of the square, just a couple millimeters below the box. https://adafru.it/dzk https://adafru.it/dzk Adafruit Industries https://learn.adafruit.com/neopixel-led-cortana-costume Page 17 of 19

Make the stencile about 1 to 1.5 mm thick. We found that a thinner stencile produced cleaner edges when spray painting on the unitard. Print Stencil Clean your build plate and preheat your extrude. We used a Flexable build plate for easy removal. Prints should take about an hour to complete. Mark LEDs on unitard Mark the placement of were the NeoPixel LEDs are by wearing the unitard over the spanx. Adafruit Industries https://learn.adafruit.com/neopixel-led-cortana-costume Page 18 of 19

Paint Stencil Once we have marked our NeoPixel placments we mock up were we'd like the circuit trace details. Use pieces of blue tape once your happy with the placment of each stencil. Keep the unitard stretch for painting. We used a box to keep the parts stretch out while spraying. Let the paint dry for about 30mins and wear to your next halloween or cosplay event! Adafruit Industries Last Updated: 2018-08-22 03:43:38 PM UTC Page 19 of 19