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

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

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

Mystical LED Halloween Hood

NeoPixel Ring Bangle Bracelet

Light-Up Angler Fish Embroidery

GPS Logging Dog Harness

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

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

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

NeoPixel LED Cortana Costume

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

NeoPixel Basketball Hoop

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

Adafruit TPL5110 Power Timer Breakout

Getting Started with FLORA

Adafruit Mini TFT " 160x80

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

Bunny Ears with MakeCode

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

Adafruit Color Sensors

Infinity Mirror Valentine's Candy Box

NeoPixie Dust Bag with Circuit Playground Express

Adafruit TPL5111 Reset Enable Timer Breakout

Celebration Spectacles

LED Breath Stats Mask

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

Adafruit VL53L0X Time of Flight Micro-LIDAR Distance Sensor Breakout

Chirping Plush Owl Toy

Adafruit Capacitive Touch Sensor Breakouts

Adafruit APDS9960 breakout

Getting Started with FLORA

Adafruit MCP9808 Precision I2C Temperature Sensor Guide

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

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

LED Stego Flex Spike Hoodie

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

Adafruit SGP30 TVOC/eCO2 Gas Sensor

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

TSL2561 Luminosity Sensor

Monochrome OLED Breakouts

NeoMatrix 8x8 Word Clock

Adafruit PowerBoost 500 Shield

Adabot Operation Game

Adafruit MPRLS Ported Pressure Sensor Breakout

Bike Wheel POV Display

Adafruit DRV2605 Haptic Controller Breakout

Adafruit AS channel Visible Light Sensor

Adafruit 1.27" and 1.5" Color OLED Breakout Board

Adafruit CCS811 Air Quality Sensor

1.8" TFT Display Breakout and Shield

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

Getting Started with FLORA

Adafruit Pi Cobbler Kit

MCP Bit DAC Tutorial

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

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

Adafruit AMG8833 8x8 Thermal Camera Sensor

Adafruit PCF8523 Real Time Clock

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

MCP Bit DAC Tutorial

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

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

Adafruit AM2320 Sensor

Circuit Playground Digital Input

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

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

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

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

Adafruit I2C FRAM Breakout

Adafruit Si7021 Temperature + Humidity Sensor

Adafruit GPIO Expander Bonnet for Raspberry Pi Created by Kattni Rembor. Last updated on :12:47 PM UTC

Arduino Lesson 6. Digital Inputs

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

Adafruit IO Basics: Analog Input

Trinket NeoPixel LED Longboard

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

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

Adafruit ATWINC1500 WiFi Breakout

IS31FL x9 Charlieplexed PWM LED Driver

Simple LED Unicorn Horn

Adafruit DS3231 Precision RTC Breakout

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

Unicorn Hat with Moving Ears

Crickit Dancing Marionette Kit Created by Dano Wall. Last updated on :03:11 PM UTC

Introducing Adafruit Trellis

Trinket-Powered Conference Room Occupancy Display

Android GBoard Morse Code Control with Circuit Playground Express

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

Coffee Detonator: The TNT Plunger Grinder

Adafruit DRV2605 Haptic Controller Breakout

Guardian Shield+ Zelda Breath of the Wild

Introducing Circuit Playground

Slider Crank Mechanism -- from Cardboard and Craft Sticks

Con Badge with Circuit Playground Express

Joy Featherwing. Created by Dean Miller. Last updated on :03:07 PM UTC

Adafruit IO Basics: Digital Input

Introducing Circuit Playground

3D Printed Camera LED Ring

Adafruit MMA8451 Accelerometer Breakout

Snake Charmer Box. Created by Dano Wall. Last updated on :07:25 PM UTC

Transcription:

Adafruit LED Sequins Created by Becky Stern Last updated on 2018-03-02 04:02:00 AM UTC

Guide Contents Guide Contents Overview Sewing with conductive thread Circuit Diagram GEMMA sequin hat Arduino Code CircuitPython Code Downloads 2 3 6 10 11 15 17 19 Adafruit Industries https://learn.adafruit.com/adafruit-led-sequins Page 2 of 19

Overview Sew a little sparkle into your wearable project with an Adafruit LED Sequin. These are the kid-sister to our popular Flora NeoPixel-- they only show a single color and they aren't addressable, but they are our smallest sewable LEDs ever and very easy to use! Before you get started, follow the Introducing GEMMA guide or Introducing Gemma M0 guide This guide was written for the 'original' Gemma board, but can be done with either the original or M0 Gemma. We recommend the Gemma M0 as it is easier to use and is more compatible with modern computers! Adafruit Industries https://learn.adafruit.com/adafruit-led-sequins Page 3 of 19

They come in packs of five with breakaway tabs-- you can separate them one at a time as you build your project. Simply connect 3 to 6VDC to the + pin and ground to the - pin, and the LED on the board will light up. In the photo above we've soldered alligator clips to a 2x2032 coincell battery holder (~6V). You could also use a single CR2032 sewable coincell holder-- you do not need a microcontroller to drive these sequins, unless you want them to blink or fade. Adafruit Industries https://learn.adafruit.com/adafruit-led-sequins Page 4 of 19

When powered from 3.3V they draw about 5mA so you can put up to 4 or 5 in parallel on a single microcontroller pin. We currently have these sequins in warm white, emerald green, ruby red, and royal blue. You can make the LEDs fade and twinkle by using the PWM (a.k.a. analogwrite) functionality of your Gemma or Flora, or just connect directly to a digital I/O pin of a microcontroller to turn on and off (digitalwrite). Adafruit Industries https://learn.adafruit.com/adafruit-led-sequins Page 5 of 19

Sewing with conductive thread Grab a needle and test it's small enough to pass through the holes in the sequins. Thread up your needle with conductive thread, our 2-ply and 3-ply both are great for this purpose. Check out our conductive thread guide to learn more about this stainless steel fiber. Adafruit Industries https://learn.adafruit.com/adafruit-led-sequins Page 6 of 19

We find it easiest to load up your fabric in an embroidery hoop to keep it taught during stitching, especially for beginners. Begin by piercing the needle through the fabric from back to front, near the + on the pixel leaving a six-inch thread tail at the back. Then affix the pixel to the fabric by piercing the needle down through the hole marked + and through to the back of the fabric. Repeat to make a few stitches around the pixel's + connection. Avoid using pin D1 when using the Gemma M0. Instead use three LEDs in parallel on using pins D0 and D2. Adafruit Industries https://learn.adafruit.com/adafruit-led-sequins Page 7 of 19

Stitch over to a digital or analog output on your microcontroller, and repeat the stitching process around the circuit board's pad. Stitch back over to your thread tail at the back and tie the two threads in a double knot. Seal the knot from springing loose with some clear nail polish or other adhesive. Snip the thread tails short. Adafruit Industries https://learn.adafruit.com/adafruit-led-sequins Page 8 of 19

Adafruit Industries https://learn.adafruit.com/adafruit-led-sequins Page 9 of 19

Circuit Diagram This diagram uses the original Gemma but you can also use the Gemma M0 with the exact same wiring! Three of the sequins connect to D0 and the other three connect to D2. The sequins are connected in parallel to these pins. The original version of this project used D1 also, but since the Gemma M0 does not have PWM on this pin, we've tweaked it a bit to only use D0 and D2! Adafruit Industries https://learn.adafruit.com/adafruit-led-sequins Page 10 of 19

GEMMA sequin hat LED sequins are great for clothing and accessories! Here's a simple hat project to build with GEMMA. You can start with the pixel + or -. For this hat we chose to start with the shared ground line that hooks up all the sequins. Stitch around the GND pad on GEMMA at the edge of a knit cap and knot/seal at the back. Adafruit Industries https://learn.adafruit.com/adafruit-led-sequins Page 11 of 19

Lay out your own design or use our circuit diagram above, with the sequins' + sides facing the microcontroller. Continue stitching the ground line all the way around the perimeter of your sequin design, stitching to every sequin's - pad as you go. Knot to your original knot, seal the knot, and trim the ends once dry. Adafruit Industries https://learn.adafruit.com/adafruit-led-sequins Page 12 of 19

Adafruit Industries https://learn.adafruit.com/adafruit-led-sequins Page 13 of 19

Next hook up the + connections from each of GEMMA's outputs to three pixels. We stitched from one sequin to the GEMMA, then over to another sequin and on to the third sequin before going back to the first, making a sort of square that results in the thread tails being in the same place. Knot these thread tails, seal and trim short. Adafruit Industries https://learn.adafruit.com/adafruit-led-sequins Page 14 of 19

Arduino Code Plug in GEMMA over USB and load the following code into your Adafruit Arduino IDE. If you haven't before, check out our Introducing GEMMA guide to get started with the software. int brightness = 0; int fadeamount = 5; int counter = 0; // how bright the LED is // how many points to fade the LED by // counter to keep track of cycles // the setup routine runs once when you press reset: void setup() { // declare pins to be an outputs: pinmode(0, OUTPUT); pinmode(2, OUTPUT); } // the loop routine runs over and over again forever: void loop() { // set the brightness of the analog-connected LEDs: analogwrite(0, brightness); // change the brightness for next time through the loop: brightness = brightness + fadeamount; // reverse the direction of the fading at the ends of the fade: if (brightness == 0 brightness == 255) { fadeamount = -fadeamount; counter++; } // wait for 15 milliseconds to see the dimming effect delay(15); // turns on the other LEDs every four times through the fade by // checking the modulo of the counter. // the modulo function gives you the remainder of // the division of two numbers: if (counter % 4 == 0) { digitalwrite(2, HIGH); } else { digitalwrite(2, LOW); } } This sketch is a mash-up of two very basic Arduino examples: blink and fade. You can modify it to display the patterns of light you like best or code up your own sketch starting with the examples provided from inside Arduino. Adafruit Industries https://learn.adafruit.com/adafruit-led-sequins Page 15 of 19

Once your program is doing what you like, unplug the USB cable and plug in a battery pack like our 2x2032 holder with on/off switch. Take the batteries out if you get stuck in a rainstorm and for washing. Enjoy your new light-up hat! Adafruit Industries https://learn.adafruit.com/adafruit-led-sequins Page 16 of 19

CircuitPython Code GEMMA M0 boards can run CircuitPython a different approach to programming compared to Arduino sketches. In fact, CircuitPython comes factory pre-loaded on GEMMA M0. If you ve overwritten it with an Arduino sketch, or just want to learn the basics of setting up and using CircuitPython, this is explained in the Adafruit GEMMA M0 guide. These directions are specific to the M0 GEMMA board. The original GEMMA with an 8-bit AVR microcontroller doesn t run CircuitPython for those boards, use the Arduino sketch on the Arduino code page of this guide. Below is CircuitPython code that works similarly (though not exactly the same) as the Arduino sketch shown on a prior page. To use this, plug the GEMMA M0 into USB it should show up on your computer as a small flash drive then edit the file main.py with your text editor of choice. Select and copy the code below and paste it into that file, entirely replacing its contents (don t mix it in with lingering bits of old code). When you save the file, the code should start running almost immediately (if not, see notes at the bottom of this page). If GEMMA M0 doesn t show up as a drive, follow the GEMMA M0 guide link above to prepare the board for CircuitPython. Adafruit Industries https://learn.adafruit.com/adafruit-led-sequins Page 17 of 19

import board import pulseio import time from digitalio import DigitalInOut, Direction # PWM (fading) LEDs are connected on D0 (PWM not avail on D1) pwm_leds = board.d0 pwm = pulseio.pwmout(pwm_leds, frequency=1000, duty_cycle=0) # digital LEDs connected on D2 digital_leds = DigitalInOut(board.D2) digital_leds.direction = Direction.OUTPUT brightness = 0 fade_amount = 1285 counter = 0 # how bright the LED is # 2% steping of 2^16 # counter to keep track of cycles while True: # And send to LED as PWM level pwm.duty_cycle = brightness # change the brightness for next time through the loop: brightness = brightness + fade_amount print(brightness) # reverse the direction of the fading at the ends of the fade: if ( brightness <= 0 ): fade_amount = -fade_amount counter += 1 elif ( brightness >= 65535 ): fade_amount = -fade_amount counter += 1 # wait for 15 ms to see the dimming effect time.sleep(.015) # turns on the other LEDs every four times through the fade by # checking the modulo of the counter. # the modulo function gives you the remainder of # the division of two numbers: if ( counter % 4 == 0 ): digital_leds.value = True else: digital_leds.value = False Adafruit Industries https://learn.adafruit.com/adafruit-led-sequins Page 18 of 19

Downloads Datasheet for blue 1206 LED Datasheet for warm white LED Datasheet for red 1206 LED Datasheet for green LED Datasheet for pink LED EagleCAD PCB files on GitHub Fritzing object in Adafruit Fritzing library Adafruit Industries Last Updated: 2018-03-02 04:01:59 AM UTC Page 19 of 19