# Jewel Hair Stick

## Overview

![](https://cdn-learn.adafruit.com/assets/assets/000/024/150/medium800/led_pixels_HairPin.jpg?1427734419)

This Japanese style hair ornament combines an upcycled chopstick with felt, embroidery, beads and a [GEMMA M0](https://www.adafruit.com/product/3501) or [GEMMA v2](https://www.adafruit.com/product/1222) microcontroller. A NeoPixel Jewel provides the real beauty with kaleidoscopic flower designs. Make a hair stick&nbsp;for every season of the year and you'll be the tea ceremony favorite. Don't have long hair? No worries, just eliminate the chopstick and glue/stitch a barrette on the back of your ornament.

Info: 

# Jewel Hair Stick

## Tools & Supplies

![](https://cdn-learn.adafruit.com/assets/assets/000/024/151/medium800/led_pixels_NEWPARTS.jpg?1427734464)

Info: 

What would an electric kanzashi look like? That was the question I was considering when I designed this piece. The simple circular shapes of the Jewel and GEMMA brought the&nbsp;answer. You'll be using plenty of crafting skills, with a wee bit of tools for this beginner's project. The hardest part will be choosing the colors you want for your ornament.

- The&nbsp;[GEMMA M0&nbsp;](https://www.adafruit.com/products/1222)is recommended over the [GEMMA v2](https://www.adafruit.com/product/1222). Either will work.
- [NeoPixel Jewel](https://www.adafruit.com/products/2226)
- [LiPoly Battery 100mAh](https://www.adafruit.com/product/1570)
- [A Micro Lipo or other small lipoly battery charger at 100mAh rate](https://www.adafruit.com/products/1304)
- [Silicone Wire in fave color](https://www.adafruit.com/products/1970)&nbsp;(at least 1 ft.) - You can try using conductive thread but we prefer silicone wire for stronger connections!
- [USB Cable A/Micro B](https://www.adafruit.com/products/2008)
- [Needlenose Pliers](https://www.adafruit.com/products/146)
- Felt Scrap (6"x6")
- Jewelry Findings - 2" Head Pins (3)/Eye Pins (1)
- Jewelry Findings - Jump Ring (1)
- Crystal&nbsp;Beads - 4 mm (1 pack)
- Silver Beads - 6 mm &nbsp;(1 pack)
- Embroidery Floss (1) or scrap piece 24"
- Embroidery Needle
- Chopstick
- Sandpaper
- Hobby knife or small saw
- Gloss Acrylic Paint (1)
- Clear Nail Polish
- Small Paint Brush
- Scrap cardboard (3"x3")
- Hot glue gun

Make sure you take the time to read the following guides. Jewel is a type of NeoPixel cluster and operates similarly to the other NeoPixel products.

- [Introducing Gemma M0](../../../../adafruit-gemma-m0/) or&nbsp;[Introducing GEMMA](../../../../introducing-gemma)
- [NeoPixel Uber Guide](../../../../adafruit-neopixel-uberguide)
- [Adafruit Guide to Excellent Soldering](../../../../adafruit-guide-excellent-soldering)

&nbsp;

&nbsp;

# Jewel Hair Stick

## Prepare Chopstick

Take your chopstick and measure 6" starting at the tiny tip and mark a line. Then, cut using a hobby knife or saw.&nbsp;

&nbsp;

![led_pixels_Cutt.jpg](https://cdn-learn.adafruit.com/assets/assets/000/024/116/medium640/led_pixels_Cutt.jpg?1427653792)

Sand the raw edge of the cut until smooth, and also sand the tip&nbsp;of the chopstick so it is a nice point. Now, give the entire chopstick a light sanding, as this will make the stick slide through the hair easier and also produce a better paint job.

![led_pixels_sanding.jpg](https://cdn-learn.adafruit.com/assets/assets/000/024/117/medium640/led_pixels_sanding.jpg?1427653843)

Apply three coats of acrylic paint to the entire chopstick, allowing correct drying time between coats. It's&nbsp;helpful to clamp a clothespin on the thicker end and stand the pin up so the chopstick is positioned at the top, with its point on the table.&nbsp;

![led_pixels_paint.jpg](https://cdn-learn.adafruit.com/assets/assets/000/024/118/medium640/led_pixels_paint.jpg?1427653877)

If you are ambitious, start soldering your circuit, but don't forget to come back here to finish the chopstick. For the final touch, add 2 coats of clear nail polish to give a lacquered appearance.&nbsp;

![led_pixels_Gloss.jpg](https://cdn-learn.adafruit.com/assets/assets/000/024/119/medium640/led_pixels_Gloss.jpg?1427653956)

# Jewel Hair Stick

## Circuit Diagram

![](https://cdn-learn.adafruit.com/assets/assets/000/046/978/medium800/led_pixels_Jewel_Hair_Stick-Fritzing.png?1507315346)

[Click to Download Jewel_Hair_Stick Fritzing File](https://github.com/adafruit/Adafruit_Learning_System_Guides/blob/master/Jewel_Hair_Stick/Jewel_Hair_Stick.fzz)
Info: 

Okay, get set -- all soldering will be done on the back&nbsp;side of the GEMMA and Jewel. Notice I've used the same color wire for all three connections&nbsp;on my finished piece to&nbsp;coordinate&nbsp;with the felt. Wire can be beautiful!

**GEMMA --\> Jewel**

- **D1 --\> Data In**
- **GND --\> GND**
- **Vout --\> Power**

# Jewel Hair Stick

## Solder Circuit

Lay your GEMMA and Jewel side by side as in the photo. The wires will be going in the area between the two parts. Trim and strip three pieces of wire--2 at 2 1/4" and 1 at 2 3/4".&nbsp;

![led_pixels_ElectricParts.jpg](https://cdn-learn.adafruit.com/assets/assets/000/024/121/medium640/led_pixels_ElectricParts.jpg?1427654167)

Tin just the one side of each of the wires. This will be the side that gets inserted into the fat pads of the GEMMA. The other side we will leave without solder, so it is easier to insert into the small pads&nbsp;of the Jewel.

![led_pixels_solider.jpg](https://cdn-learn.adafruit.com/assets/assets/000/024/122/medium640/led_pixels_solider.jpg?1427654505)

Warning: 

Now solder wires using the longer wire for the ground connection.

**GEMMA --\> Jewel**

- **D1 --\> Data In**
- **GND --\> GND**
- **Vout --\> Power**

Nip off the excess tips of the wires.

&nbsp;

![led_pixels_Pixel.jpg](https://cdn-learn.adafruit.com/assets/assets/000/024/123/medium640/led_pixels_Pixel.jpg?1427655739)

# Jewel Hair Stick

## Arduino Code

Usually you wait until the end of the project to do the programming. In this case, this is the best way to make sure your parts are working before you glue them down. Connect your&nbsp;GEMMA to your computer with the cable and upload the following code. Notice the section with the colors--you can hack that to be any combination you like. I found that deeper colors work better than lighter ones, but it can be fun to have a subtle mix.

Info: 

[Click to download the NeoPixel library](https://github.com/adafruit/Adafruit_NeoPixel/archive/master.zip)
https://github.com/adafruit/Adafruit_Learning_System_Guides/blob/main/Jewel_Hair_Stick/Jewel_Hair_Stick.ino

Installing Arduino libraries is a frequent stumbling block. If this is your first time, or simply needing a refresher, please read the&nbsp;[All About Arduino Libraries](http://learn.adafruit.com/adafruit-all-about-arduino-libraries-install-use)&nbsp;tutorial.[![](../../../../assets/divider_icon-45a76f14a0234c47f43488c60c9d77a1701a0ff9f3a09498809a26305ce3df23.gif)](../../../../neopixel-punk-collar/3634)If the library is correctly installed (and the Arduino IDE is restarted), you should be able to navigate through the “File” rollover menus as follows:  
  
**File→Sketchbook→Libraries→Adafruit\_NeoPixel→strandtest**  
  
Connect up your NeoPixels in a solderless breadboard and use alligator clips to attach to GEMMA, referring to the circuit diagram if necessary.  
  
You’ll need to change a few lines in the code regarding the data pin (1), type of pixels (RGB vs GRB), and number of pixels (5). The resulting (and slightly simplified) code is below:

From the&nbsp; **Tools→Board** &nbsp;menu, select&nbsp;the&nbsp;device you are using: **&nbsp;**

- **Adafruit Gemma M0**
- **Adafruit Gemma 8 MHz** &nbsp;
- Connect the USB cable between the computer and your device. The original Gemma (8 MHz) need the reset button pressed on the board, then click the upload button (right arrow icon) in the Arduino IDE. You do not need to press the reset on the newer Gemma M0 or Trinket M0.

When the battery is connected, you should get a light show from the LEDs. All your pixels working? Great! You can take apart this prototype and get ready to put the pixels in the collar. Refer to the&nbsp;[NeoPixel Uberguide](../../../../adafruit-neopixel-uberguide)&nbsp;for more info.

# Jewel Hair Stick

## CircuitPython Code

![](https://cdn-learn.adafruit.com/assets/assets/000/046/974/medium800/led_pixels_gemma-cp.jpg?1507247371)

 **GEMMA&nbsp;M0** &nbsp;boards can&nbsp;run&nbsp; **CircuitPython** &nbsp;— a different approach to programming compared to Arduino sketches. In fact,&nbsp; **CircuitPython comes&nbsp;factory pre-loaded on GEMMA&nbsp;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&nbsp;[**Adafruit GEMMA&nbsp;M0 guide**](../../../../adafruit-gemma-m0/circuitpython-setup-1).

Info: 

Below is CircuitPython code that works&nbsp;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&nbsp; **flash drive** …then edit the file “ **code.py** ” with your text editor of choice. Select and copy the code below and paste it into that file,&nbsp; **entirely replacing its contents** &nbsp;(don’t mix it in with lingering bits of old code). When you save the file, the code should&nbsp; **start running almost immediately** &nbsp;(if not, see notes at the bottom of this page).

**If GEMMA M0 doesn’t show up as a&nbsp;drive, follow the GEMMA M0 guide link above to prepare the board for CircuitPython.**

https://github.com/adafruit/Adafruit_Learning_System_Guides/blob/main/Jewel_Hair_Stick/code.py

This code requires the&nbsp; **neopixel.py** &nbsp;library. A factory-fresh board will have this already installed. If you’ve just reloaded the board with CircuitPython, create the “lib” directory and then&nbsp;[download neopixel.py from Github](https://github.com/adafruit/Adafruit_CircuitPython_NeoPixel).

[Download neopixel.py from Github](https://github.com/adafruit/Adafruit_CircuitPython_NeoPixel)
# Jewel Hair Stick

## Prepare Ornament

Get your felt out, as well as a shot glass. Trace the larger side of the shot glass on the&nbsp;felt for a 2" circle. Fold the fabric&nbsp;so you can cut 2 circles at one time.

![led_pixels_traceFelt.jpg](https://cdn-learn.adafruit.com/assets/assets/000/024/124/medium640/led_pixels_traceFelt.jpg?1427656149)

Now take your scrap of cardboard and use the other side of the shot glass to trace a&nbsp;1 1/2" circle. Cut one&nbsp;of these.

![led_pixels_traceCard.jpg](https://cdn-learn.adafruit.com/assets/assets/000/024/125/medium640/led_pixels_traceCard.jpg?1427656392)

Get your chopstick, which should now have its finished gloss. Use your hot glue gun to attach the fat side of the chopstick onto the cardboard. The chopstick should lay just a tad under the center of the cardboard, to allow room for the battery.

![led_pixels_glue.jpg](https://cdn-learn.adafruit.com/assets/assets/000/024/126/medium640/led_pixels_glue.jpg?1427656946)

Next, glue one circle of felt to the cardboard. Be sure to spread the glue evenly as this will be a support for the Jewel. Glue the other circle of felt just to the stick, and not the cardboard. This will form the pocket for the battery.

![led_pixels_gluefelt.jpg](https://cdn-learn.adafruit.com/assets/assets/000/024/127/medium640/led_pixels_gluefelt.jpg?1427657039)

Embroidery time! Thread a piece of floss and use a [split stitch](http://sublimestitching.com/pages/how-to-split-stitch)&nbsp;through&nbsp;the edges of the felt with the cardboard side facing up. You must stay close to the edge to allow room for the battery.

![led_pixels_Stich.jpg](https://cdn-learn.adafruit.com/assets/assets/000/024/128/medium640/led_pixels_Stich.jpg?1427658689)

When you get close to the 10 o'clock position of the circle, only stitch through the top fabric, creating an opening for the battery. Put your battery inside so you know how wide to leave the opening. Then, finish the rest of the edges going through both layers of fabric, until you get to the stick. There you will only be able to get through one layer.

![led_pixels_Pouch.jpg](https://cdn-learn.adafruit.com/assets/assets/000/024/129/medium640/led_pixels_Pouch.jpg?1427659120)

![led_pixels_Battery.jpg](https://cdn-learn.adafruit.com/assets/assets/000/024/130/medium640/led_pixels_Battery.jpg?1427659396)

# Jewel Hair Stick

## Finishing Touches

Gather the jewelry pieces. Using a head pin, thread your beads in your preferred pattern. Then, use your pliers to create a circle at the top of the wire. Create three of these units.

Select an eye pin, and thread your same pattern. When you are done, attach it to one of the other head pin units you made earlier. This will be the one longer strand of the dangle.

![led_pixels_dagnelBit.jpg](https://cdn-learn.adafruit.com/assets/assets/000/024/135/medium640/led_pixels_dagnelBit.jpg?1427659941)

![led_pixels_loop.jpg](https://cdn-learn.adafruit.com/assets/assets/000/024/136/medium640/led_pixels_loop.jpg?1427659967)

Using a jump ring, rotate the split ends&nbsp;apart by moving one side towards you. Don't pull the ring apart side to side or you will never regain the circular shape. Thread the three beaded units onto the ring. Then, attach the jump ring to the bottom of the Jewel on the unmarked hole at the bottom. Use the pliers to clamp&nbsp;the jump ring shut.

![led_pixels_loopClose.jpg](https://cdn-learn.adafruit.com/assets/assets/000/024/137/medium640/led_pixels_loopClose.jpg?1427660209)

![led_pixels_Pixel.jpg](https://cdn-learn.adafruit.com/assets/assets/000/024/138/medium640/led_pixels_Pixel.jpg?1427660382)

Now glue the Jewel onto the cardboard backed felt piece. Then, glue the GEMMA onto the stick/felt side. Concentrate the glue on the top half of the GEMMA where it will adhere nicely to the felt. The rest of the part will sit on the stick. You may want to poke something flat like a spoon handle into the felt pocket to help the GEMMA stick well to the felt and to keep the felt from sticking to the cardboard.&nbsp;

![led_pixels_AlmostDone.jpg](https://cdn-learn.adafruit.com/assets/assets/000/024/139/medium640/led_pixels_AlmostDone.jpg?1427660791)

![led_pixels_Finioshed.jpg](https://cdn-learn.adafruit.com/assets/assets/000/024/140/medium640/led_pixels_Finioshed.jpg?1427660826)

# Jewel Hair Stick

## Wear it!

![](https://cdn-learn.adafruit.com/assets/assets/000/024/141/medium800/led_pixels_AttachBatt.jpg?1427660977)

Wrap the top of your battery with a little Gaff or masking tape to help add strain relief to the wires. Then, tuck it into its pocket and plug into GEMMA. Finally, switch GEMMA on and weave the stick into your hair. It's helpful to poke it through a hairband to help keep it from twisting. Practice your bows and have fun sharing your Japanese style!

![](https://cdn-learn.adafruit.com/assets/assets/000/024/152/medium800thumb/led_pixels_HairPin.jpg?1448317285)


## Featured Products

### Adafruit GEMMA M0 - Miniature wearable electronic platform

[Adafruit GEMMA M0 - Miniature wearable electronic platform](https://www.adafruit.com/product/3501)
The **Adafruit Gemma M0** is a super small microcontroller board, with just enough built-in to create many simple projects. It may look small and cute: round, about the size of a quarter, with friendly alligator-clip sew pads. But do not be fooled! The Gemma M0 is incredibly...

In Stock
[Buy Now](https://www.adafruit.com/product/3501)
[Related Guides to the Product](https://learn.adafruit.com/products/3501/guides)
### Adafruit GEMMA v2 - Miniature wearable electronic platform

[Adafruit GEMMA v2 - Miniature wearable electronic platform](https://www.adafruit.com/product/1222)
 **Deprecation Warning: The Gemma bit-bang USB technique it uses doesn't work as well as it did in 2014, many modern computers won't work well. So while we still carry the Gemma so that people can maintain some older projects, we no longer recommend it.** <a...></a...>

In Stock
[Buy Now](https://www.adafruit.com/product/1222)
[Related Guides to the Product](https://learn.adafruit.com/products/1222/guides)
### NeoPixel Jewel - 7 x 5050 RGB LED with Integrated Drivers

[NeoPixel Jewel - 7 x 5050 RGB LED with Integrated Drivers](https://www.adafruit.com/product/2226)
Be the belle of the ball with the NeoPixel Jewel! &nbsp;We fit seven of our tiny&nbsp;5050 (5mm x 5mm) smart RGB LEDs onto a beautiful, round&nbsp;PCB with mounting holes and a chainable design to create what we think is our most elegant (and evening-wear appropriate) NeoPixel board...

Out of Stock
[Buy Now](https://www.adafruit.com/product/2226)
[Related Guides to the Product](https://learn.adafruit.com/products/2226/guides)
### Lithium Ion Polymer Battery - 3.7v 100mAh

[Lithium Ion Polymer Battery - 3.7v 100mAh](https://www.adafruit.com/product/1570)
Lithium-ion polymer (also known as 'lipo' or 'lipoly') batteries are thin, light, and powerful. The output ranges from 4.2V when completely charged to 3.7V. This battery has a capacity of ~100mAh for a total of about 0.4 Wh. If you need a larger battery, <a...></a...>

In Stock
[Buy Now](https://www.adafruit.com/product/1570)
[Related Guides to the Product](https://learn.adafruit.com/products/1570/guides)
### Adafruit Micro Lipo - USB LiIon/LiPoly charger

[Adafruit Micro Lipo - USB LiIon/LiPoly charger](https://www.adafruit.com/product/1304)
Oh so adorable, this is the tiniest little lipo charger, so handy you can keep it any project box! Its also easy to use. Simply plug in the gold plated contacts into any USB port and a 3.7V/4.2V lithium polymer or lithium ion rechargeable battery into the JST plug on the other end. There are...

Out of Stock
[Buy Now](https://www.adafruit.com/product/1304)
[Related Guides to the Product](https://learn.adafruit.com/products/1304/guides)
### USB Patterned Fabric Cable - A/MicroB

[USB Patterned Fabric Cable - A/MicroB](https://www.adafruit.com/product/2008)
Oooh it's so soft! And that beautiful&nbsp;pattern! If you have to have visible cables&nbsp;then you might as well have the nicest fabric bound cable with a eye-catching snake-like pattern. &nbsp;That's why we now carry this standard A to micro-B USB cable&nbsp;for USB 1.1 or 2.0....

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/2008)
[Related Guides to the Product](https://learn.adafruit.com/products/2008/guides)
### Silicone Cover Stranded-Core Wire - 26AWG in Various Colors

[Silicone Cover Stranded-Core Wire - 26AWG in Various Colors](https://www.adafruit.com/product/1970)
Silicone-sheathing wire is super-flexible and soft, and it's also strong! Able to handle up to 200°C and up to 600V, it will do when PVC covered wire wimps out. We like this wire for being extremely supple and flexible, so it is great for wearables or projects where the wire-harness...

Out of Stock
[Buy Now](https://www.adafruit.com/product/1970)
[Related Guides to the Product](https://learn.adafruit.com/products/1970/guides)
### Simple pliers

[Simple pliers](https://www.adafruit.com/product/146)
Simple needlenose pliers for twisting, pulling and pliering your project.

In Stock
[Buy Now](https://www.adafruit.com/product/146)
[Related Guides to the Product](https://learn.adafruit.com/products/146/guides)

## Related Guides

- [NeoPixel Basketball Hoop](https://learn.adafruit.com/neopixel-mini-basketball-hoop.md)
- [Gemma-Powered NeoPixel LED Sound Reactive Drums](https://learn.adafruit.com/gemma-powered-neopixel-led-sound-reactive-drums.md)
- [Twinkly Earwarmer Headband](https://learn.adafruit.com/twinkly-ear-warmer.md)
- [Adafruit MicroLipo and MiniLipo Battery Chargers](https://learn.adafruit.com/adafruit-microlipo-and-minilipo-battery-chargers.md)
- [Kaleidoscope Eyes (Trinket-Powered NeoPixel LED Ring Goggles)](https://learn.adafruit.com/kaleidoscope-eyes-neopixel-led-goggles-trinket-gemma.md)
- [Mystical LED Halloween Hood](https://learn.adafruit.com/mystical-led-halloween-hood.md)
- [Han Solo Blaster Cosplay](https://learn.adafruit.com/han-solo-blaster-cosplay.md)
- [Charger Charm - 3D Printed holder for Micro LiPo USB Charger](https://learn.adafruit.com/usb-charger-charm-3d-printed-holder-for-micr-lipo-usb-charger.md)
- [Light-Up Costumes in Harsh Environments](https://learn.adafruit.com/light-up-costumes-in-harsh-environments.md)
- [Zipper Switch](https://learn.adafruit.com/zipper-switch.md)
- [NeoPixel Flame Torch](https://learn.adafruit.com/neopixel-flame-torch.md)
- [Spy Theme Playback Device](https://learn.adafruit.com/spy-theme-playback-device.md)
- [Trash-Built Robotic Fish](https://learn.adafruit.com/trash-robo-fish.md)
- [Buzzing Mindfulness Bracelet](https://learn.adafruit.com/buzzing-mindfulness-bracelet.md)
- [SMSsenger Bag](https://learn.adafruit.com/smssenger-bag.md)
