Celebration Spectacles

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

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

Getting Started with FLORA

Getting Started with FLORA

Adafruit TPL5111 Reset Enable Timer Breakout

Adafruit TPL5110 Power Timer Breakout

NeoPixel LED Cortana Costume

Crystal Glow Knuckles

LED Stego Flex Spike Hoodie

NeoPixel Basketball Hoop

3D Printed Camera LED Ring

Light-Up Angler Fish Embroidery

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

3D Printed Daft Punk Helmet with Bluetooth

NeoPixel Ring Bangle Bracelet

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

Guardian Shield+ Zelda Breath of the Wild

Trinket NeoPixel LED Longboard

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

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

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

Lie Ren's Stormflower Gun Blade

Bunny Ears with MakeCode

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

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

FLORA TV-B-Gone. Created by Becky Stern. Last updated on :32:57 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

Camera LED Ring Light

Mystical LED Halloween Hood

Flora Brake Light Backpack

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

Chirping Plush Owl Toy

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

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

Bike Wheel POV Display

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

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

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

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

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

Adafruit Capacitive Touch Sensor Breakouts

Con Badge with Circuit Playground Express

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

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

Kaleidoscope Eyes (Trinket-Powered NeoPixel LED Ring Goggles)

Phone-Activated Talking Dog Collar

NeoMatrix 8x8 Word Clock

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

Portable Apple Watch Charger

Simple LED Unicorn Horn

Bluetooth Controlled NeoPixel Headphones

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

7 Portable Multitouch Raspberry Pi Tablet

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

Getting Started with FLORA

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

Circuit Playground Digital Input

Adafruit Color Sensors

NeoPixie Dust Bag with Circuit Playground Express

Glowing LED Chair. Created by Ruiz Brothers. Last updated on :01:47 AM UTC

Adafruit PowerBoost 500 Shield

Crickit Carnival Bumper Bot

Trinket-Powered Conference Room Occupancy Display

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

GPS Logging Dog Harness

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

3D Printed LED Buckle

Circuit Playground Express Head-Tilt Ears

Infinity Mirror Valentine's Candy Box

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

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

Coffee Detonator: The TNT Plunger Grinder

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

Circuit Playground Yoyo

7" Portable HDMI Monitor

Hammer Time Mini Golf Hazard with Crickit

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

3D Printed LED Microphone Flag

LED Ampli-Tie. Created by Becky Stern. Last updated on :02:03 PM EDT

Adabot Operation Game

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

i2c/spi LCD Backpack Created by lady ada Last updated on :11:04 PM UTC

Reindeer Mask with Animated Eyes

Trellis 3D Printed Enclosure

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

Unicorn Hat with Moving Ears

Adafruit APDS9960 breakout

Cup o' Sound. Created by Becky Stern. Last updated on :30:06 PM EST

3D Printed LED Knuckle Jewelry

BlueLive: Livestream Studio switcher controller

Crickit Powered Holiday Diorama

Slider Crank Mechanism -- from Cardboard and Craft Sticks

Android GBoard Morse Code Control with Circuit Playground Express

Easy Sparkle Pocket T-Shirt

LED Eye Prosthetic. Created by Tully Jagoe. Last updated on :00:17 AM EST

Mad Science Test Tube Rack

Naughty or Nice Machine

Sword & Wand Prop Effects with Circuit Playground

LED Breath Stats Mask

Transcription:

Celebration Spectacles Created by Becky Stern Last updated on 2018-08-22 03:45:59 PM UTC

Guide Contents Guide Contents Overview Circuit Diagram Assemble Circuit Test and Glue Wear 'em! 2 3 6 7 10 14 Adafruit Industries https://learn.adafruit.com/celebration-spectacles Page 2 of 15

Overview Ring in the new year or any cause for celebration with your own NeoPixel glasses! For this project you will need: Trinket 3v microcontroller (https://adafru.it/e2s) with USB cable (http://adafru.it/260) JST-PH battery connector (https://adafru.it/e2t) or switched breakout (http://adafru.it/1863) 500mAh lipoly battery (https://adafru.it/drl) and charger (http://adafru.it/1304) sturdy gaffer tape hair clip costume frames with lenses removed silicone coated stranded wire in a matching color (https://adafru.it/ekf) hot glue gun E6000 or epoxy adhesive toothpicks soldering iron and tools (https://adafru.it/dri) helping third hand tool (https://adafru.it/dxr) Adafruit Industries https://learn.adafruit.com/celebration-spectacles Page 3 of 15

If you can glue the NeoPixel rings to the frames without covering the connections on the PCB, go for it. This will make it easier to make tidy wire connections. Hot glue is ok for now, but if you can permanantly affix them with E6000 or epoxy, go for it. Invest in a sturdy platform that won't fall apart during the subsequent steps. Adafruit Industries https://learn.adafruit.com/celebration-spectacles Page 4 of 15

Adafruit Industries https://learn.adafruit.com/celebration-spectacles Page 5 of 15

Circuit Diagram You can create a design by chaining NeoPixel rings, sticks, strips, and jewels to your heart's content. These party glasses use two 24x NeoPixel rings and two NeoPixel sticks. For a more basic design, follow the NeoPixel Goggle diagram (https://adafru.it/cen). Wire connections are as follows (click to enlarge diagram): Trinket BAT+ to NeoPixel stick 4-7VDC or NeoPixel ring PWR Trinket Gnd to NeoPixel stick GND Trinket #1 to NeoPixel stick DIN NeoPixel stick DOUT to NeoPixel ring IN NeoPixel ring OUT to second NeoPixel ring IN NeoPixel ring G to second NeoPixel ring G NeoPixel ring PWR to second NeoPixel ring PWR second NeoPixel ring OUT to second NeoPixel stick DIN second NeoPixel ring G to second NeoPixel stick GND second NeoPixel ring PWR to second NeoPixel stick 4-7VDC second NeoPixel stick 4-7VDC to battery connector + second NeoPixel stick GND to battery connector - You may optionally connect a switch that interrupts power either on the Trinket side or battery side of the glasses. Adafruit Industries https://learn.adafruit.com/celebration-spectacles Page 6 of 15

Assemble Circuit Carefully prep NeoPixel sticks by soldering small lengths of wires to the circuit board pads, which will be covered when you glue the stick to the sides of your glasses frames. Use hot glue to do that now, too. Do not use permanent adhesive on your NeoPixel sticks yet, just in case you need to pop one off to troubleshoot your circuit in the next step. Trim wires to length and carefully solder wires to NeoPixel ring connections as illustrated in the circuit diagram. The trick to this project is tidy wiring, so really take your time to route the wires carefully, then strip, twist, and tin the ends before soldering. Adafruit Industries https://learn.adafruit.com/celebration-spectacles Page 7 of 15

Solder wire connections to a battery connector at the end of the NeoPixel chain (from above, the battery connector ground is on the left). Use hot glue to temporarily affix the battery connector to the frames. Adafruit Industries https://learn.adafruit.com/celebration-spectacles Page 8 of 15

On the other end of the circuit, hot glue Trinket in place and make wire connections as per the circuit diagram. Trim excess wire leads and check over circuit for completeness and quality. Clean up your work surface so there aren't bits of wire all over. Adafruit Industries https://learn.adafruit.com/celebration-spectacles Page 9 of 15

Test and Glue Plug in your Trinket over USB and load the code below. Check out the Introducing Trinket (https://adafru.it/rbf) guide for more info. #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(64, PIN, NEO_GRB + NEO_KHZ800); // 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.setbrightness(40); //adjust brightness here strip.show(); // Initialize all pixels to 'off' void loop() { // Some example procedures showing how to display to the pixels: //colorwipe(strip.color(255, 0, 0), 50); // Red //colorwipe(strip.color(0, 255, 0), 50); // Green //colorwipe(strip.color(0, 0, 255), 50); // Blue // Send a theater pixel chase in... Adafruit Industries https://learn.adafruit.com/celebration-spectacles Page 10 of 15

theaterchase(strip.color(127, 127, 127), 50); // White theaterchase(strip.color(127, 0, 0), 50); // Red theaterchase(strip.color( 0, 0, 127), 50); // Blue //rainbow(20); //rainbowcycle(20); theaterchaserainbow(50); // Fill the dots one after the other with a color void colorwipe(uint32_t c, uint8_t wait) { for(uint16_t i=0; i<strip.numpixels(); i++) { strip.setpixelcolor(i, c); strip.show(); delay(wait); void rainbow(uint8_t wait) { uint16_t i, j; for(j=0; j<256; j++) { for(i=0; i<strip.numpixels(); i++) { strip.setpixelcolor(i, Wheel((i+j) & 255)); strip.show(); delay(wait); // Slightly different, this makes the rainbow equally distributed throughout void rainbowcycle(uint8_t wait) { uint16_t i, j; for(j=0; j<256*5; j++) { // 5 cycles of all colors on wheel for(i=0; i< strip.numpixels(); i++) { strip.setpixelcolor(i, Wheel(((i * 256 / strip.numpixels()) + j) & 255)); strip.show(); delay(wait); //Theatre-style crawling lights. void theaterchase(uint32_t c, uint8_t wait) { for (int j=0; j<10; j++) { //do 10 cycles of chasing for (int q=0; q < 3; q++) { for (int i=0; i < strip.numpixels(); i=i+3) { strip.setpixelcolor(i+q, c); //turn every third pixel on strip.show(); delay(wait); for (int i=0; i < strip.numpixels(); i=i+3) { strip.setpixelcolor(i+q, 0); //turn every third pixel off Adafruit Industries https://learn.adafruit.com/celebration-spectacles Page 11 of 15

//Theatre-style crawling lights with rainbow effect void theaterchaserainbow(uint8_t wait) { for (int j=0; j < 256; j++) { // cycle all 256 colors in the wheel for (int q=0; q < 3; q++) { for (int i=0; i < strip.numpixels(); i=i+3) { strip.setpixelcolor(i+q, Wheel( (i+j) % 255)); //turn every third pixel on strip.show(); delay(wait); for (int i=0; i < strip.numpixels(); i=i+3) { strip.setpixelcolor(i+q, 0); //turn every third pixel off // Input a value 0 to 255 to get a color value. // The colours are a transition r - g - b - back to r. uint32_t Wheel(byte WheelPos) { if(wheelpos < 85) { return strip.color(wheelpos * 3, 255 - WheelPos * 3, 0); else if(wheelpos < 170) { WheelPos -= 85; return strip.color(255 - WheelPos * 3, 0, WheelPos * 3); else { WheelPos -= 170; return strip.color(0, WheelPos * 3, 255 - WheelPos * 3); The pixels are only wired to Trinket's battery power, to they won't light up yet. Unplug the USB cable, then connect your battery (and switch it on if applicable). If they don't, disconnect the battery and double check your wiring. It's easy to flip a NeoPixel stick around backwards or make other mistakes. Also double check your code is sending data to the same pin connecting your NeoPixels' data! The battery we recommend goes with the code above, which animates the NeoPixels-- only some are on at any given time and we've limited the brightness. Modifying these parameters may significantly alter battery life. Once all your NeoPixels are working it's time to add more permanant adhesive. I like E6000 for this because it dries clear and flexible, not brittle like super glue or epoxy. Glue up the rings, sticks, wires, Trinket and battery connector and let cure for 24 hours before wearing. Adafruit Industries https://learn.adafruit.com/celebration-spectacles Page 12 of 15

Use gaffer tape to reinforce where the wires meet the lipoly cell. Contine to wrap the battery in tape, affixing a hair clip while you're at it. This alternate design uses the same circuit as the NeoPixel ring goggles (https://adafru.it/nyc)! Adafruit Industries https://learn.adafruit.com/celebration-spectacles Page 13 of 15

Wear 'em! Clip the battery in your hair and wear your fab new specs! They're not waterproof so stay away from the pool and power down if it starts raining. Adafruit Industries https://learn.adafruit.com/celebration-spectacles Page 14 of 15

Now it's your turn to make these glasses your own! Would you add a temperature sensor, realtime clock for counting down to midnight, or accelerometer to control the animations? Try it out and share your project on our weekly G+ Hangout Show and Tell. Happy new year! Adafruit Industries Last Updated: 2018-08-22 03:45:55 PM UTC Page 15 of 15