# 3D Printed NeoPixel Ring Hair Dress

## Overview

http://www.youtube.com/watch?v=69rpMpHtDB4

![](https://cdn-learn.adafruit.com/assets/assets/000/012/169/medium800/3d_printing_hairdress-hero.jpg?1383976550)

Here's an elegant wearables project for those really special occasions. A 3D Printed, LED Hair Dress, powered by an NeoPixel ring and Gemma, Adafruits tiny yet powerful wearables micro-controller.

Info: 

 **Prerequisite guides:**

- [Introducing GEMMA](http://learn.adafruit.com/introducing-gemma)&nbsp;or&nbsp;[Introducing Gemma M0 guide](../../../../adafruit-gemma-m0/)
- [NeoPixel Überguide](http://learn.adafruit.com/adafruit-neopixel-uberguide)

**You will need:**

- [GEMMA board](http://www.adafruit.com/products/1222) or [Trinket](http://www.adafruit.com/products/1501)
- [16x NeoPixel Ring](http://www.adafruit.com/products/1463)
- [Slide Switch](http://www.adafruit.com/products/805)
- [Thin Wire](http://www.adafruit.com/products/1446)
- [Soldering iron](http://www.adafruit.com/products/180) and [solder](http://www.adafruit.com/products/145 "Link: http://www.adafruit.com/products/145")
- [Small LiPo Battery](http://www.adafruit.com/products/1317)
- [MakerBot Adafruit Edition](http://www.adafruit.com/products/1292 "Link: http://www.adafruit.com/products/1292")
- [Bedazzle Stones](http://amzn.com/B007PUQ13S)

![](https://cdn-learn.adafruit.com/assets/assets/000/012/177/medium800/3d_printing_parts.jpg?1383977268)

# 3D Printed NeoPixel Ring Hair Dress

## Customize

## Design & Illustration
You can use our hair dress template or create your own in photoshop, illustrator or any other vector drawling application that can export SVG files. Our hair dress template is 144mm x 195mm. The bottom comb is large enough to rest inside of a hair bun with a little support from a hair clip. The center of the artwork was designed so that a NeoPixel ring can shine through the hair dress. Your hair dress can be designed to fit individual NeoPixels, or even NeoPixel [Strips](http://www.adafruit.com/products/1138)+[Sticks](http://www.adafruit.com/products/1426)!  
  
The illustration inside of the hair dress should be manifold and not have any stray pieces. If your artwork is complex with multiple objects, you should merge them together to create one unified vector path. Your artwork will need to be exported in the SVG file format.  
  
Stuck on the creative stuff? You can get some great inspiration and actual vector files on sites like [http://vecteezy.com](http://vecteezy.com) and [http://all-free-download.com](http://all-free-download.com "Link: http://all-free-download.com"). The design should complement your event or character for a great cosplay!  
![](https://cdn-learn.adafruit.com/assets/assets/000/012/172/medium800/3d_printing_hairdress-ps.jpg?1383976983)

## Tinkercad
We used tinkercad to turn the SVG into a 3D model that can be printed because its super easy to import vector art and extrude it in 3D. You can import SVG files in tinker by selecting the import drop down menu in the right side and choosing your file by either upload or URL. Drag and use the handles along side the object to resize the hair dress. Use the middle handle point to resize the thickness of the object. The height of the haird ress should be extruded to a minimum of 1mm thick.  
  
When your design is finalized, you will want to flip the design up-side-down so that the artwork is printed facing the heated build plate. The side that gets printed on the heated surface creates an almost seamless texture that makes for a great quality print.  
  
For extra awesome, import separate SVG artwork to create depth and accessories to the hair dress for an epic design! To get familiar with tinkercad's UI, check out their tutorial videos on their youtube channel. It's an easy and powerful CAD web app!![](https://cdn-learn.adafruit.com/assets/assets/000/012/173/medium800/3d_printing_hairdress-tinkercad.jpg?1383977031)

# 3D Printed NeoPixel Ring Hair Dress

## 3D Printing

The hair dress is printed in single color, white ABS plastic. But you are free to experiment with multiple colors. A great way to do that is to switch out your filament while printing objects that are higher than the hair dress base.   
  
Ensure your artwork is flipped up-side-down so that it's printed right-side-up when it's removed from the heated build plate. If you forgot to flip it in your 3D app, you can rotate the STL in your slicing program. In MakerWare, you can select the object and click on the turn menu item. Press the +90 button until the hair dress is flipped.

[TinkerCad Template](https://tinkercad.com/things/gBjpFGLY0om-hair-dress-template/)
![](https://cdn-learn.adafruit.com/assets/assets/000/012/171/medium800/3d_printing_hairdress-print.jpg?1383976868)

[Download STLs](http://www.thingiverse.com/thing:182438)
# Printing Techniques

## **Build Plate Preparations**
For ABS printing, it's recommenced to use a heated build plate with katon tape. For best quality, apply a fresh strip of katon tape. You can apply a clear-air-bubble sheet by laying the tape down when the build plate is heated (Be careful!). Use a plastic card to flatten the tape. When air-bubble arise, peel back the tape and reapply the tape in small chucks until it's clean and air bubble free.  

## **Live Level**
We recommend going raft-less for each piece because it will have the best quality result. Each piece will require a well leveled platform. We tend to "live level" our prints, meaning we adjust the build plates thumb screws while the print is laying down filament. This way we can make adjustments directly and improve the leveling by seeing how the extruders are laying down the first layer onto the build plate. We recommend watching the first layer so that you get a more successful print. If you see the layers aren't sticking or getting knocked off, you can always cancel print, peel it off and try again. ![](https://cdn-learn.adafruit.com/assets/assets/000/012/179/medium800/3d_printing_case-print.jpg?1383977906)

## Gemma Enclosure
To defuse and soften the NeoPixel ring, we printed the Gemma enclosure in transparent PLA filament. Each piece can be printed separately or together. The lid cover should easily snap onto the case and tightly fit so the components don't fall out of the enclosure.  
  

## **Build Plate Preparations**
There's a great [video tutorial](http://www.youtube.com/watch?v=VDnBXpFa7DY) by Dr. Henry Thomas who demonstrations a great technique for preparing acrylic build plates for awesome prints. Wipe down the plate with a paper towel lightly dabbed in acetone. Use another paper towel and apply a tiny dab of olive oil. Wipe down the plate so a small film of oil is applied, this will allow the parts to come off the plate easier.  
  
**Removing the pieces**  
The lid will be the most difficult to remove, use a [circuit spatula](http://amzn.com/B00409PJGW). Try to avoid scratching your acrylic build plate. A good way to remove the covers is to position the spatula on the edge of the layer above the build plate. Apply pressure to the spatula, closely grip it upwards and pull up removing the piece from the build plate.  
# 3D Printed NeoPixel Ring Hair Dress

## Bedazzle

We picked up a pack of fake [diamonds and perls](http://amzn.com/B007PUQ13S) from our local crafty arts supply store for under $3 bucks, but you are more than welcome to use any glitter, stickers, stones what-have-you on your hair dress. If you want to paint the hair dress, be sure to use acrylic based paints thats sure to stick.

![](https://cdn-learn.adafruit.com/assets/assets/000/012/170/medium800/3d_printing_bedazzle.jpg?1383976606)

We placed diamonds along side the edges and in between the spots of the circuit cut outs. The pearls were sparingly applied to each side to fill in the gaps of the design. Your design can have as many stones as you like, just remember to super glue them on!

To create a slight curvature to the hair dress, we gently bent the plastic. Since it's 1mm thick and printed in ABS, it's flexible and durable enough not to snap. We used our handy vise gripper and held it bent over night. This creates a slight curve that makes the hair dress more comfortable when wearing. We found this to be a better alternative to using a heat gun because the ABS material tends to curl and cause warping.

# 3D Printed NeoPixel Ring Hair Dress

## Arduino Code

Info: 

# Program Gemma

We used the code from GitHub user [HerrRausB](https://github.com/HerrRausB "Link: https://github.com/HerrRausB") to generate complex animations in the NeoPixel ring. You can download the code below. The code is nicely documented and has editable parameters that can be customized to fit your project. Huge thanks to HerrRausB!  
  
Once you have the sketches how you want, you will need to upload the code to the Gemma. Please follow the instructions on the [Gemma introduction](http://learn.adafruit.com/introducing-gemma) guide to get your Arduino IDE setup with the Gemma. Once you have that sorted out, you will need to push the reset button on the Gemma and then hit the upload sketch button (the arrow icon next to check mark) in the Arduino IDE.

[Download Gemma Hoop Animator](https://github.com/adafruit/Adafruit_Learning_System_Guides/tree/main/Gemma/3D_Printed_NeoPixel_Ring_Hair_Dress)
# Prototype

If your unfamiliar with connecting the Gemma to a NeoPixel ring, you should prototype the circuit by wiring the components together with alligator clips.

See the [Circuit Diagram page](https://learn.adafruit.com/neopixel-ring-hair-dress/circuit-diagram) for how to wire.

On the Gemma, wire up the pin labeled "D0" to the "Data Input" pin on the NeoPixel Ring. Next, wire up ground ("GND") pin of the Gemma to the "Power Signal Ground" pin on the NeoPixel Ring. Now you can connect the Power 5V DC pin on the NeoPixel Ring to the "Vout" pin of the Gemma. You can now plug-in a USB cable from your computer to the Gemma to power it on for prototyping.

# 3D Printed NeoPixel Ring Hair Dress

## CircuitPython Code

![](https://cdn-learn.adafruit.com/assets/assets/000/048/914/medium800/3d_printing_gemma-cp.jpg?1512529911)

 **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.**

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).

https://github.com/adafruit/Adafruit_Learning_System_Guides/blob/main/Gemma/3D_Printed_NeoPixel_Ring_Hair_Dress/code.py

# 3D Printed NeoPixel Ring Hair Dress

## Circuit Diagram

![](https://cdn-learn.adafruit.com/assets/assets/000/012/193/medium800/3d_printing_hairdress-Curcuit-Layout.jpg?1384056525)

Info: 

The slide switch needs to be connected to the lithium polymer battery so that the circuit can easily be powered on and off. To do this, first cut the RED wire connect of the lithium polymer battery. Now you will need to solder and connect one end of the red wire to the middle and left (or right) pin of the slide switch. See our circuit diagram to get a better visual idea. Please be very careful when you do this! Try hard not to pull out the wires from the battery and never let the red and black wires touch!

![](https://cdn-learn.adafruit.com/assets/assets/000/012/181/medium800/3d_printing_neopixel-wire-ring.jpg?1384031761)

We added one extra NeoPixel in the center of the circuit to complement the design of our hair dress. The pins on the NeoPixel get wired to the back of the Gemma. The Data Out pin on the NeoPixel ring will need to be connected to the Data In pin of the single NeoPixel. The Ground pin of the NeoPixel ring connects to the ground pin of the Gemma, while the Ground pin of the single NeoPixel connects to the ground of the NeoPixel Ring.

![](https://cdn-learn.adafruit.com/assets/assets/000/012/182/medium800/3d_printing_circuit-back.jpg?1384032236)

When your circuit is working and tested, you will need to solder the components together. We used 22 gauge wire and measured the lengths needed for each pin and cut them into the appropriate pieces. We used a handy vise tool to keep the Gemma and NeoPixel ring together and tightened the arms so they don't slip while soldering.

![](https://cdn-learn.adafruit.com/assets/assets/000/012/183/medium800/3d_printing_circuit-front.jpg?1384032259)

With all the components soldered, the Gemma should have enough support from the wires to hold itself inside of the NeoPixel ring. The Gemma and NeoPixel Ring make a nice independent circuit that can be used for other awesome projects like the [Gemma Hoop Earrings](http://learn.adafruit.com/gemma-hoop-earrings "Link: http://learn.adafruit.com/gemma-hoop-earrings").

# 3D Printed NeoPixel Ring Hair Dress

## Assemble Hair Dress

![](https://cdn-learn.adafruit.com/assets/assets/000/012/178/medium800/3d_printing_hairdress-in-case.jpg?1383977677)

The Gemma and NeoPixel ring circuit fits nicely inside of the transparent PLA case with the NeoPixels facing down. The NeoPixel ring will become softened and diffused when it shines through the PLA material. Connect the rechargeable lithium polymer battery to the gemma. Now slide the power switch into the case lid so that the switch sticks out. The Power switch will need to be super glued to the lid so that it securely stays in place when it is turned on and off. Allow to the glue to dry for a few minutes. Now you can close the lid, it should securely snap onto the case.

![](https://cdn-learn.adafruit.com/assets/assets/000/012/180/medium800/3d_printing_hairdress-on.jpg?1383978316)

The circuit case can now be attached to the back of the hair dress. We position the case so that the NeoPixel ring shines through the circular ring in the center of the design. We used double-sided sticky foam tape to attach the case to the hair dress so that it can easily be removed for other projects. The foam tape is tuff enough to stick for several hours. You can always use strong adhesives for a more permanent treatment.

![](https://cdn-learn.adafruit.com/assets/assets/000/012/176/medium800/3d_printing_hairdress-turn.jpg?1383977198)

To wear the hair dress, simply pull your hair up into a bun and stick it in where it feels most comfortable. You can use hair pins to hold up the hair dress to keep it from flopping over or falling off. Take caution when wearing the hair dress shaking your hear or dancing!


## 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...>

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/1222)
[Related Guides to the Product](https://learn.adafruit.com/products/1222/guides)
### NeoPixel Ring - 16 x 5050 RGB LED with Integrated Drivers

[NeoPixel Ring - 16 x 5050 RGB LED with Integrated Drivers](https://www.adafruit.com/product/1463)
Round and round and round they go! 16 ultra bright smart LED NeoPixels are arranged in a circle with 1.75" (44.5mm) outer diameter. The rings are 'chainable' - connect the output pin of one to the input pin of another. Use only one microcontroller pin to control as many as you can...

In Stock
[Buy Now](https://www.adafruit.com/product/1463)
[Related Guides to the Product](https://learn.adafruit.com/products/1463/guides)
### Breadboard-friendly SPDT Slide Switch

[Breadboard-friendly SPDT Slide Switch](https://www.adafruit.com/product/805)
These nice switches are perfect for use with breadboard and perfboard projects. They have 0.1" spacing and snap in nicely into a solderless breadboard. They're easy to switch no matter what size fingers you have, but not so easy that they'll get flipped by accident. Work great as...

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

[Lithium Ion Polymer Battery - 3.7v 150mAh](https://www.adafruit.com/product/1317)
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 150mAh for a total of about 0.6 Wh. If you need a larger battery, <a...></a...>

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

[MakerBot Adafruit Edition](https://www.adafruit.com/product/1292)
[Please see our post](https://www.adafruit.com/blog/2013/11/27/breaking-news-stratasys-sues-afinia-ramifications-for-the-desktop-3d-printing-industry/) - Is Adafruit going to continue to sell Stratasys/MakerBot products and use their services? **We do not know yet.**...

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/1292)
[Related Guides to the Product](https://learn.adafruit.com/products/1292/guides)

## Related Guides

- [A NeoPixel Blinkendisc](https://learn.adafruit.com/a-neopixel-blinkendisc.md)
- [NeoPixel NanoRing](https://learn.adafruit.com/neopixel-nanoring-gemma.md)
- [NeoPixel Ring Lamp](https://learn.adafruit.com/neopixel-ring-lamp.md)
- [CircuitPython Essentials](https://learn.adafruit.com/circuitpython-essentials.md)
- [Playa Festival Bike](https://learn.adafruit.com/playa-festival-bike.md)
- [CircuitPython 101: Basic Builtin Data Structures](https://learn.adafruit.com/basic-datastructures-in-circuitpython.md)
- [Sound Reactive NeoPixel Peace Pendant](https://learn.adafruit.com/sound-reactive-neopixel-peace-pendant.md)
- [GEMMA Hoop Earrings](https://learn.adafruit.com/gemma-hoop-earrings.md)
- [CircuitPython Hardware: Charlieplex LED Matrix](https://learn.adafruit.com/micropython-hardware-charlieplex-led-matrix.md)
- [Watchmen's Sister Night NeoPixel Goggles](https://learn.adafruit.com/watchmen-sister-night-circuitpython-neopixel-goggles.md)
- [Hidden Ink UV Message Reader](https://learn.adafruit.com/hidden-ink-uv-message-reader.md)
- [LED Trinket Tree Topper](https://learn.adafruit.com/neopixel-led-trinket-tree-topper.md)
- [Creating and sharing a CircuitPython library](https://learn.adafruit.com/creating-and-sharing-a-circuitpython-library.md)
- [Starduino: 8-Bit Super Mario Tree Topper](https://learn.adafruit.com/starduino-neopixel-8-bit-mario-star-tree-topper.md)
- [Trinket / Gemma IR Control](https://learn.adafruit.com/trinket-gemma-ir-remote-control.md)
