# LED Ampli-Tie

## Overview

https://www.youtube.com/watch?v=7FbK4wA7hjc

![](https://cdn-learn.adafruit.com/assets/assets/000/004/453/medium800/flora_collin_tie_full.jpg?1396813202)

Make your necktie light up like a VU meter! This Flora project uses the Electret Microphone Amplifier to trigger 16 Flora NeoPixels sewn with conductive thread along the length of the tie.  
  
Before you begin this project, we recommend reading the following guides:

- [Getting Started with FLORA](http://learn.adafruit.com/getting-started-with-flora)
- [Adafruit Microphone Amplifier Breakout](http://learn.adafruit.com/adafruit-microphone-amplifier-breakout/)
- [Conductive Thread](http://learn.adafruit.com/conductive-thread)

Photo by johngineer.  
# LED Ampli-Tie

## Tools & Supplies

![](https://cdn-learn.adafruit.com/assets/assets/000/004/451/medium800/flora_ampli-tie-materials.jpg?1396813178)

Bill of materials:

- 16 [Flora NeoPixels](https://www.adafruit.com/products/1260 "Link: https://www.adafruit.com/products/1260")
- [Flora main board](http://www.adafruit.com/products/659 "Link: http://www.adafruit.com/products/659")
- [Microphone amplifier breakout](https://www.adafruit.com/products/1063 "Link: https://www.adafruit.com/products/1063")
- [Lipoly battery](https://www.adafruit.com/products/258)
- Scrap fabric for battery pouch  
- [3-ply conductive thread](https://www.adafruit.com/products/641 "Link: https://www.adafruit.com/products/641")
- Standard cotton/poly thread
- Ribbon cable or [conductive thread ribbon](https://www.adafruit.com/products/1139)  
- [Break-away or otherwise clip-on tie](http://www.amazon.com/gp/product/B000E971C2/)

You'll use a [needle](https://www.adafruit.com/products/615) and to stitch up the circuit.

![flora_ID615_LRG.jpg](https://cdn-learn.adafruit.com/assets/assets/000/004/442/medium640/flora_ID615_LRG.jpg?1396813075)

Sharp scissors are a must! You'll also need a long ruler, some tailor's chalk, and a seam ripper.

![flora_6413733409_45f9ef62a4_b.jpg](https://cdn-learn.adafruit.com/assets/assets/000/004/443/medium640/flora_6413733409_45f9ef62a4_b.jpg?1396813081)

Don't forget your [wire strippers](https://www.adafruit.com/products/527), [pliers](https://www.adafruit.com/products/146), and [flush snips](https://www.adafruit.com/products/152 "Link: https://www.adafruit.com/products/152")!

![flora_csp301_LRG.jpg](https://cdn-learn.adafruit.com/assets/assets/000/004/444/medium640/flora_csp301_LRG.jpg?1396813090)

![flora_simplepliers_LRG.jpg](https://cdn-learn.adafruit.com/assets/assets/000/004/445/medium640/flora_simplepliers_LRG.jpg?1396813103)

![flora_152_LRG.jpg](https://cdn-learn.adafruit.com/assets/assets/000/004/446/medium640/flora_152_LRG.jpg?1396813115)

You will need a good quality basic multimeter that can measure voltage and continuity.  
  
[Click here to buy a basic multimeter.](http://adafruit.com/products/71)  
  
[Click here to buy a top of the line multimeter.](http://adafruit.com/products/308)  
  
[Click here to buy a pocket multimeter.](http://adafruit.com/products/850)  
  
[Don't forget to learn how to use your multimeter too!](http://learn.adafruit.com/multimeters)

![flora_ID850_LRG.jpg](https://cdn-learn.adafruit.com/assets/assets/000/004/447/medium640/flora_ID850_LRG.jpg?1396813121)

Any entry level 'all-in-one' soldering iron that you might find at your local hardware store should work. As with most things in life, you get what you pay for.   
Upgrading to a higher end soldering iron setup, like the [Hakko FX-888 that we stock in our store](http://adafruit.com/products/180), will make soldering fun and easy.  
<u><br>Do not use a "ColdHeat" soldering iron</u>! They are not suitable for delicate electronics work and can damage the Flora ([see here](http://www.epemag.wimborne.co.uk/cold-soldering2.htm)).  
  
[Click here to buy our entry level adjustable 30W 110V soldering iron.](http://adafruit.com/products/180 "Link: http://adafruit.com/products/180")  
  
[Click here to upgrade to a Genuine Hakko FX-888 adjustable temperature soldering iron.](http://adafruit.com/products/303 "Link: http://adafruit.com/products/303")  
  
[Learn how to solder with tons of tutorials!](http://learn.adafruit.com/adafruit-guide-excellent-soldering "Link: http://learn.adafruit.com/adafruit-guide-excellent-soldering")

![flora_xytronics258usa_LRG.jpg](https://cdn-learn.adafruit.com/assets/assets/000/004/448/medium640/flora_xytronics258usa_LRG.jpg?1396813132)

![flora_fx888_LRG.jpg](https://cdn-learn.adafruit.com/assets/assets/000/004/449/medium640/flora_fx888_LRG.jpg?1396813140)

You will want rosin core, 60/40 solder. Good solder is a good thing. Bad solder leads to bridging and cold solder joints which can be tough to find.  
  
[Click here to buy a spool of leaded solder (recommended for beginners).](http://adafruit.com/products/145 "Link: http://adafruit.com/products/145")  
  
[Click here to buy a spool of lead-free solder.](http://adafruit.com/products/734)  
![flora_145solder_LRG.jpg](https://cdn-learn.adafruit.com/assets/assets/000/004/450/medium640/flora_145solder_LRG.jpg?1396813150)

# LED Ampli-Tie

## Circuit Diagram

![](https://cdn-learn.adafruit.com/assets/assets/000/004/282/medium800/flora_pixel-tie-diagram.jpg?1396810539)

The Flora pixels are all connected to common ground bus, as well as a common power bus connected to VBATT. The Flora pixel data bus is connected to D6. The microphone amplifier is connected to 3.3V, GND, and D9.

# LED Ampli-Tie

## Battery Pouch & Flora

![](https://cdn-learn.adafruit.com/assets/assets/000/004/408/medium800/flora_ampli-tie-01-18.jpg?1396812049)

Use a piece of scrap fabric to stitch a small pouch for your lipoly battery. The pouch should be stitched to the back of the tie, just above where the Flora goes, and have an opening at the top for easy removal of the battery for charging. Use a seam ripper to open up the back seam of the tie just a little so you can thread the JST plug and wire inside the tie and down to the Flora.

![](https://cdn-learn.adafruit.com/assets/assets/000/004/409/medium800/flora_ampli-tie-01-19.jpg?1396812077)

The plug joins the Flora just inside the folds of the tie so it won't get caught on anything.

![](https://cdn-learn.adafruit.com/assets/assets/000/004/410/medium800/flora_ampli-tie-01-20.jpg?1396812103)

Tack your Flora in place with plain thread by stitching some unused pads to the tie. Try to just stitch to the back surface of the tie so the front fabric remains smooth.

# LED Ampli-Tie

## Sewing Pixels

https://www.youtube.com/watch?v=eGtGoPhjmcc

Use a ruler to draw a line down the center of your tie with tailor's chalk, and evenly distribute your 16 Flora pixels along this line.

![flora_ampli-tie-01.jpg](https://cdn-learn.adafruit.com/assets/assets/000/004/411/medium640/flora_ampli-tie-01.jpg?1396812132)

![flora_ampli-tie-02.jpg](https://cdn-learn.adafruit.com/assets/assets/000/004/412/medium640/flora_ampli-tie-02.jpg?1396812163)

Mark the position of each pixel with chalk.

![flora_ampli-tie-03.jpg](https://cdn-learn.adafruit.com/assets/assets/000/004/413/medium640/flora_ampli-tie-03.jpg?1396812194)

Stitch a long length of conductive thread to GND next to D6, only piercing the back surface of the tie. Stitch over to the (-) pad on your first pixel and secure (but don't cut the thread).

![flora_ampli-tie-04.jpg](https://cdn-learn.adafruit.com/assets/assets/000/004/414/medium640/flora_ampli-tie-04.jpg?1396812219)

![flora_ampli-tie-05.jpg](https://cdn-learn.adafruit.com/assets/assets/000/004/415/medium640/flora_ampli-tie-05.jpg?1396812250)

Add a few more pixels by connecting this long ground line to the (-) pads on the pixels.

![flora_ampli-tie-06.jpg](https://cdn-learn.adafruit.com/assets/assets/000/004/416/medium640/flora_ampli-tie-06.jpg?1396812280)

Stitch the data bus from D6 to the input pad on the first pixel (marked with an inward-facing arrow). Tie off, seal the knot, and snip the thread.  
  
Stitch small segments of conductive thread between each pixel, connecting the output of one pixel to the input on the next.  
  
Check out our [Conductive Thread guide](http://learn.adafruit.com/conductive-thread) for more tips on working with conductive thread!

![flora_ampli-tie-07.jpg](https://cdn-learn.adafruit.com/assets/assets/000/004/417/medium640/flora_ampli-tie-07.jpg?1396812309)

![flora_ampli-tie-13.jpg](https://cdn-learn.adafruit.com/assets/assets/000/004/418/medium640/flora_ampli-tie-13.jpg?1396812336)

![flora_ampli-tie-14.jpg](https://cdn-learn.adafruit.com/assets/assets/000/004/419/medium640/flora_ampli-tie-14.jpg?1396812364)

Use another long length of conductive thread to connect Flora's VBATT pad to the (+) pads on the pixels.  
  
Once you've stitched a few pixels, test for shorts with your multimeter (make sure your long power and ground threads aren't touching), and fire up the NeoPixel library test code to ensure your fledgeling circuit is all good so far.

![flora_ampli-tie-14-2.jpg](https://cdn-learn.adafruit.com/assets/assets/000/004/420/medium640/flora_ampli-tie-14-2.jpg?1396812393)

![flora_ampli-tie-16.jpg](https://cdn-learn.adafruit.com/assets/assets/000/004/421/medium640/flora_ampli-tie-16.jpg?1396812420)

Stitch up the rest of the pixels - you'll have one long ground bus, one long power bus, and short segments between each input/output data pads.

![flora_ampli-tie-17.jpg](https://cdn-learn.adafruit.com/assets/assets/000/004/422/medium640/flora_ampli-tie-17.jpg?1396812449)

# LED Ampli-Tie

## Add Microphone

![](https://cdn-learn.adafruit.com/assets/assets/000/004/423/medium800/flora_ampli-tie-15.jpg?1396812480)

To match the tie, paint your microphone amplifier with a little black nail polish.

![](https://cdn-learn.adafruit.com/assets/assets/000/004/424/medium800/flora_ampli-tie-21.jpg?1396812507)

Cut a piece of ribbon cable longer than the main part of the tie.

Peel off three wires to use with the microphone amplifier, which will live at the knot of the tie.  
  
Insert the ribbon cable up through the inside of the tie. Cut a small hole with a seam ripper inside the knot of the tie and bring the ribbon cable through it.

![flora_ampli-tie-22.jpg](https://cdn-learn.adafruit.com/assets/assets/000/004/425/medium640/flora_ampli-tie-22.jpg?1396812539)

![flora_ampli-tie-23.jpg](https://cdn-learn.adafruit.com/assets/assets/000/004/426/medium640/flora_ampli-tie-23.jpg?1396812570)

Strip the ends of the wires and solder them up to the three holes on the microphone amplifier.  
  
Use plain thread to anchor the mic to the tie knot using the large mounting holes.

![flora_ampli-tie-24.jpg](https://cdn-learn.adafruit.com/assets/assets/000/004/427/medium640/flora_ampli-tie-24.jpg?1396812598)

![flora_ampli-tie-25.jpg](https://cdn-learn.adafruit.com/assets/assets/000/004/428/medium640/flora_ampli-tie-25.jpg?1396812626)

![](https://cdn-learn.adafruit.com/assets/assets/000/004/429/medium800/flora_ampli-tie-26.jpg?1396812659)

Back at the Flora end of the board, solder the corresponding wires to 3.3V, GND, and D9.

# LED Ampli-Tie

## The Code

## Getting Ready

You'll need the NeoPixel library for this project. For newer Arduino IDE versions, select Library Manager, scroll to "Adafruit\_NeoPixel" and install the latest version.

For very old Arduino IDE versions, download by clicking the ZIP button on the [NeoPixel Github repository page](https://github.com/adafruit/Adafruit_NeoPixel), and rename the resulting folder "Adafruit\_NeoPixel" and move to your Arduino libraries folder.  
  
For more information on programming your Flora board including the software you need to do so, head over to the [Getting Started with Flora](http://learn.adafruit.com/getting-started-with-flora "Link: http://learn.adafruit.com/getting-started-with-flora") guide.

## The Code
We got so excited about this project we made TWO Arduino sketches to meter the volume in the room (by Phil Burgess, James DeVito, and Andy Doro). You can download them both at the [LED Ampli-Tie Github repo](https://github.com/adafruit/Adafruit_Learning_System_Guides/tree/master/LED_Ampli_Tie). You can download the code from the listings below. The first dynamically adjusts to whatever volume is happening:

https://github.com/adafruit/Adafruit_Learning_System_Guides/blob/main/LED_Ampli_Tie/Ampli_Tie_Dynamic/Ampli_Tie_Dynamic.ino

The second allows you to adjust the sensitivity of the VU meter:

https://github.com/adafruit/Adafruit_Learning_System_Guides/blob/main/LED_Ampli_Tie/Ampli_Tie_Adjustable/Ampli_Tie_Adjustable.ino

# LED Ampli-Tie

## Wear it!

![](https://cdn-learn.adafruit.com/assets/assets/000/004/454/medium800/flora_Screen_Shot_2013-02-27_at_6.55.20_AM.png?1396813324)

Take your tie out on the town! It's perfect for parties, concerts, weddings, Bar Mitzvahs...  
  
If you need to wash your tie, remove the battery and gently spot clean-- the pixels, thread and Flora board can handle getting wet (then dry throrougly), but water should not get in the microphone.


## Featured Products

### FLORA - Wearable electronic platform: Arduino-compatible

[FLORA - Wearable electronic platform: Arduino-compatible](https://www.adafruit.com/product/659)
FLORA is Adafruit's fully-featured wearable electronics platform. It's a round, sewable, Arduino-compatible microcontroller designed to empower amazing wearables projects.FLORA comes with Adafruit's support, [tutorials and...](http://learn.adafruit.com/category/flora)

In Stock
[Buy Now](https://www.adafruit.com/product/659)
[Related Guides to the Product](https://learn.adafruit.com/products/659/guides)
### Flora RGB Smart NeoPixel version 3 - Pack of 4

[Flora RGB Smart NeoPixel version 3 - Pack of 4](https://www.adafruit.com/product/1260)
What's a wearable project without LEDs? Our favorite part of the Flora platform is these tiny smart pixels. Designed specifically for wearables, these updated Flora NeoPixels have ultra-cool technology: these ultra-bright LEDs have a constant-current driver cooked right into the LED...

Out of Stock
[Buy Now](https://www.adafruit.com/product/1260)
[Related Guides to the Product](https://learn.adafruit.com/products/1260/guides)
### Electret Microphone Amplifier - MAX4466 with Adjustable Gain

[Electret Microphone Amplifier - MAX4466 with Adjustable Gain](https://www.adafruit.com/product/1063)
Add an ear to your project with this well-designed electret microphone amplifier. This fully assembled and tested board comes with a 20-20KHz electret microphone soldered on. For the amplification, we use the Maxim MAX4466, an op-amp specifically designed for this delicate task! The amplifier...

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

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

In Stock
[Buy Now](https://www.adafruit.com/product/258)
[Related Guides to the Product](https://learn.adafruit.com/products/258/guides)
### Stainless Medium Conductive Thread - 3 ply - 18 meter/60 ft

[Stainless Medium Conductive Thread - 3 ply - 18 meter/60 ft](https://www.adafruit.com/product/641)
After months of searching, we finally have what we consider to be the ultimate conductive thread. It's thin, strong, smooth, and made completely of 316L stainless steel. Once you start working with this thread you'll quickly agree its optimal for any wearables work!  
  
This...

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

[USB LiIon/LiPoly charger](https://www.adafruit.com/product/259)
This is a Lithium Ion and Lithium Polymer battery charger based on the [MCP73833](http://www.microchip.com/wwwproducts/Devices.aspx?dDocName=en027785). It uses a USB mini-B for connection to any computer or 'USB wall adapter'. Charging is performed in three stages: first a...

Out of Stock
[Buy Now](https://www.adafruit.com/product/259)
[Related Guides to the Product](https://learn.adafruit.com/products/259/guides)
### Getting Started with Adafruit FLORA

[Getting Started with Adafruit FLORA](https://www.adafruit.com/product/1839)
 **Making Wearables with an Arduino-Compatible Electronics Platform**  
  
This book introduces readers to building wearable electronics projects using Adafruit's tiny FLORA board: at 4.4 grams, and only 1.75 inches in diameter, and featuring Arduino compatibility, it's the...

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/1839)
[Related Guides to the Product](https://learn.adafruit.com/products/1839/guides)
### Getting Started with Adafruit FLORA Book Pack

[Getting Started with Adafruit FLORA Book Pack](https://www.adafruit.com/product/2404)
Pickup a copy of&nbsp;[Getting Started with Adafruit FLORA](https://www.adafruit.com/products/1839)&nbsp;and then hit the ground running with everything that you need to become an [Adafruit FLORA](https://www.adafruit.com/products/659) supreme being!

This pack is...

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

## Related Guides

- [Sunscreen Reminder Hat](https://learn.adafruit.com/sunscreen-reminder-hat.md)
- [ TensorFlow Lite for EdgeBadge Quickstart](https://learn.adafruit.com/tensorflow-lite-for-edgebadge-kit-quickstart.md)
- [Flora-Powered TARDIS Costume (for Dogs!)](https://learn.adafruit.com/wearable-flora-powered-tardis-costume-dogs.md)
- [VU Meter Baseball Hat](https://learn.adafruit.com/vu-meter-baseball-hat.md)
- [Flora GPS Jacket](https://learn.adafruit.com/flora-gps-jacket.md)
- [Twinkly Earwarmer Headband](https://learn.adafruit.com/twinkly-ear-warmer.md)
- [3D Printed Wireless MIDI Controller Guitar](https://learn.adafruit.com/ez-key-wireless-midi-controller-guitar.md)
- [Wave Shield Voice Changer](https://learn.adafruit.com/wave-shield-voice-changer.md)
- [Flora+NeoPixel LED Skateboard Upgrade](https://learn.adafruit.com/flora-neopixel-led-skateboard-upgrade.md)
- [Sewable NeoPixels](https://learn.adafruit.com/flora-rgb-smart-pixels.md)
- [Superhero Power Plant](https://learn.adafruit.com/superhero-power-plant.md)
- [3D Printed Camera LED Ring](https://learn.adafruit.com/3d-printed-camera-led-ring.md)
- [SMSsenger Bag](https://learn.adafruit.com/smssenger-bag.md)
- [3D Printed LED Microphone Flag](https://learn.adafruit.com/3d-printed-led-microphone-flag.md)
- [Circuit Playground & Fiber Optics](https://learn.adafruit.com/circuit-playground-light-pod.md)
