# Cosplay Glow Fur Raver Bandolier

## Introduction

https://youtu.be/sflPg894wms

Festival season is nearly upon us.&nbsp; When the sun goes down, professional party-goers light it up with NeoPixels.

But what to make?&nbsp; A top hat?&nbsp; Fur leggings?&nbsp; An LED harness?&nbsp; Versatility is key when you're on the playa, or camping with your tribe with limited tent space.

This bandolier can be worn many different ways, so you can sport a different LED costume accessory every night of the week.&nbsp; Make a few extras and loan them to your friends, or strap them all onto yourself and be the life of the party.&nbsp; Or use them to decorate your tent so you can find your way home at night.&nbsp;&nbsp;

![](https://cdn-learn.adafruit.com/assets/assets/000/052/464/medium800/led_strips_raver_girls.jpg?1522029969)

This is a fairly easy beginner project.&nbsp; In addition to the parts listed to the right, you'll need:

- Soldering iron & solder
- Clear 1/2 inch Heat shrink tubing
- Hot glue gun
- Heat gun
- 2" - 3" wide Fun fur trim
- 1/4" wide sparkle trim
- Ribbons for tying
- Needle & thread
- Small piece of velcro

You can add your own code and animation modes or just copy and paste ours for delicious animated rainbow goodness.

# Cosplay Glow Fur Raver Bandolier

## Wiring Diagram

![](https://cdn-learn.adafruit.com/assets/assets/000/052/329/medium800/led_strips_raver_wiring.png?1521591358)

The Gemma will be placed in the middle of the bandolier, with one of the LED strips on either side.&nbsp; We're wiring both strips’ data pins to the same Gemma pin (D1).&nbsp;

This will make both strips show the exact same animations at the same time.&nbsp; We'll get a symmetrical effect, with the animations running outwards in both directions from the Gemma.&nbsp;&nbsp;

# A Note about Power

This project assumes you'll have around 20-30 NeoPixels on each strip -- no more than 50-60 total in the project.&nbsp; With just a few pixels we can keep our wiring really simple and draw power through the battery port on the Gemma.

If you plan to drive a lot more pixels -- say, if you want to use the stunning&nbsp;[144/m NeoPixels](https://www.adafruit.com/product/1507) -- it's best to draw power directly from the battery instead of going through the Gemma.&nbsp;&nbsp;

[Here's a tutorial](../../../../glowing-whoville-hat/wiring-diagram) that shows how to wire up lots of pixels, connecting them directly to the power source.

[Learn lots more about ways to power NeoPixels here.](../../../../adafruit-neopixel-uberguide?view=all#powering-neopixels)

![](https://cdn-learn.adafruit.com/assets/assets/000/052/346/medium800/led_strips_12_battery.jpg?1521594462)

# Batteries

My favorite batteries for wearable projects are LiPoly batteries.&nbsp; They're small and light, and will run a moderate number of NeoPixels for hours.&nbsp; They come in various sizes so you can choose the right one to suit your project.&nbsp;

However, “with great power comes great responsibility.” &nbsp;If LiPoly batteries are punctured or mistreated, they could start a fire.&nbsp; The wires also love to come disconnected from their solder points at the top of the battery, usually as soon as you get to your cosplay event or costume party.&nbsp; &nbsp;

I always wrap a rubber band around the battery and wires to provide strain relief, and minimize the chance that the wires will pull out. A dab of E6000 glue at the wire-to-battery junction is another option.

And don't forget to get a [charger](https://www.adafruit.com/product/1304)!

If LiPoly batteries sound too troublesome, you can also power your project with AA or AAA alkaline cells.&nbsp; [This battery case](https://www.adafruit.com/product/727) will provide the right voltage, and has a nice on/off switch to boot.&nbsp; Using AAA batteries means you can always find fresh batteries if yours have run out, and they're safer to use for kids, or for extreme cosplay events.

# Cosplay Glow Fur Raver Bandolier

## Code

Ravers love rainbows.&nbsp; It's hard to beat a smooth animated bright rainbow pattern -- it goes with everything.&nbsp;

We've included two different ways to program your LEDs: Arduino or CircuitPython.

### Which one should I choose?

There are pros and cons for each method.&nbsp; At the time of writing, CircuitPython is still a brand new thing, while Arduino is a bit more tried and true.&nbsp; Both will work to make pretty rainbows!

The [Arduino](../../../../adafruit-gemma-m0/arduino-ide-setup) IDE currently has way more code samples and control options available.&nbsp; If you're excited about tweaking the code to get it just right, and building on code samples posted by other makers, you may want to stick with Arduino for now.&nbsp; It takes a few steps to get everything installed, but you only need to go through the process once.

[CircuitPython](../../../../adafruit-gemma-m0/circuitpython) is exciting because it's easy to set up and easy to use.&nbsp; Many people already know how to code in Python, and it's just a short step from Python to CircuitPython.&nbsp; &nbsp;There are fewer steps -- not so much to install, and you don't need to compile and upload the code every time.&nbsp; Instead, the Gemma M0 will show up as a drive on your computer and you can just save files directly to it.&nbsp; But at the moment, there aren't yet a zillion open-source samples on the internet just waiting for you to download and try.&nbsp;&nbsp;

# Cosplay Glow Fur Raver Bandolier

## Arduino Code

Adafruit's NeoPixel library comes with a pre-installed rainbow animation effect.&nbsp; You'll need to make just a few edits to the code.

If this is your first time using Arduino, you'll need to download and install the free software and the NeoPixel library.&nbsp;&nbsp;

[Here's a guide that will walk you through installing Arduino and getting the Gemma board set up.](../../../../adafruit-gemma-m0?view=all#arduino-ide-setup)

And..

[Here's a detailed NeoPixel library installation guide.](../../../../adafruit-neopixel-uberguide/arduino-library-installation)

![](https://cdn-learn.adafruit.com/assets/assets/000/052/511/medium800/led_strips_screenshot.jpg?1522088133)

Once you've got Arduino installed and the NeoPixel library installed, open Arduino and choose:

File \> Examples \> Adafruit NeoPixel \> strandtest

This will open up a window with the code we want to modify.

First, find this line near the top of the strandtest code:

```
#define PIN 6
```

Since we soldered our LED strand to pin 1, we'll change the pin number from 6 to 1.

```
#define PIN 1
```

Next, look for this line:

```
Adafruit_NeoPixel strip = Adafruit_NeoPixel(60, PIN, NEO_GRB + NEO_KHZ800);
```

This is where we tell the Gemma how many LEDs we soldered onto pin 1.&nbsp; The default is 60.&nbsp; Change this to reflect the number of pixels you have in ONE strip.

Why count just one strip?&nbsp; We soldered both our strips to pin 1, so they will show the same code at the same time.&nbsp; So even if you have 40 NeoPixels total, we'll want to tell the microcontroller we have 20 since that's how many are in each strip.

```
Adafruit_NeoPixel strip = Adafruit_NeoPixel(20, PIN, NEO_GRB + NEO_KHZ800);
```

The strandtest code runs a series of animations, doing color wipes and chase animations along with the rainbow.&nbsp; For this project I want nothing but rainbows, so we'll go into the code and comment out all the other animations.

Find this section:

```
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
//colorWipe(strip.Color(0, 0, 0, 255), 50); // White RGBW
  // Send a theater pixel chase in...
  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);
}
```

The `loop()` function is the part of the code that will run continuously on the Gemma.&nbsp; Right now it's set up to cycle through three `colorWipe()` animations (the fourth one is already commented out), then three `theaterChase()` animations, then we get to `rainbow()`

Add two slashes:

//

...to the beginning of each animation you do NOT want to show.&nbsp; Your code will look like this:

```
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
//colorWipe(strip.Color(0, 0, 0, 255), 50); // White RGBW
  // Send a theater pixel chase in...
  //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);
}
```

You can also mess with the speed of the rainbow animation.&nbsp; Try a larger or smaller number in place of the `(20)` to see what works for you.

![](https://cdn-learn.adafruit.com/assets/assets/000/052/512/medium800/led_strips_screenshot2.jpg?1522088810)

Now, plug your Gemma into your computer via the USB port.&nbsp; Go to Tools \> Board and select Adafruit Gemma M0.

**Don't see it there?&nbsp;** [Be sure you followed all the instructions on this page.](../../../../adafruit-gemma-m0?view=all#arduino-ide-setup)

Double click the reset button on the Gemma, and at the same time, click the upload button in Arduino.&nbsp; You'll see a second LED light up on the face of the Gemma, in red, and it will flicker a bit.&nbsp; That's how you know it's working!&nbsp;&nbsp;

# Cosplay Glow Fur Raver Bandolier

## CircuitPython Code

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

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 “ **main.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/raver_bandolier/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).

# Cosplay Glow Fur Raver Bandolier

## LED Assembly

Look closely at your LED strips and find the "in" end (arrows pointing away).&nbsp; &nbsp;Carefully count out the number of pixels you want in your bandolier.&nbsp; Count them again!&nbsp; Then cut the strip and the silicone sleeve between the copper pads.

&nbsp;

"Tin" the pads on the IN end of each strip by adding a blob of solder with your soldering iron.

![led_strips_00_cutstrips.jpg](https://cdn-learn.adafruit.com/assets/assets/000/052/330/medium640/led_strips_00_cutstrips.jpg?1521591912)

![led_strips_01_tinstrips.jpg](https://cdn-learn.adafruit.com/assets/assets/000/052/331/medium640/led_strips_01_tinstrips.jpg?1521591924)

Cut two red, two black, and two white wires to about 3 inches long.&nbsp; Strip a tiny bit of the shielding off one end of each wire, then "tin" the wires too, adding a little blob of solder on each one.&nbsp; Solder the wires to the NeoPixel strips:&nbsp; red to +5V, white to IN, and black to GND.

![led_strips_02_solderwires.jpg](https://cdn-learn.adafruit.com/assets/assets/000/052/332/medium640/led_strips_02_solderwires.jpg?1521592058)

Be sure to check the labeling on your strips and match up the wires to the labels.&nbsp; Some batches of NeoPixels may have the pads laid out in a different order, so follow the pin labels rather than physical positions.&nbsp; If you wire them up incorrectly you could damage your strips or your Gemma.

Trim the wires so they're all about 2" long.&nbsp; Strip the loose ends.&nbsp; Twist the colored pairs together, then solder the red wires to Gemma's Vout pin, the white wires to D1 and the black wires to GND.

![led_strips_03_soldergemma.jpg](https://cdn-learn.adafruit.com/assets/assets/000/052/333/medium640/led_strips_03_soldergemma.jpg?1521592338)

Plug your battery in and flip the Gemma’s on/off switch to ON.&nbsp; If all your LEDs come on, it's time to secure everything to make it robust.

Slide a piece of 1/2" clear heat shrink over the wire connection.&nbsp; Squirt some hot glue inside the silicone sleeve, and while the glue is still wet, use a heat gun to shrink the heat shrink down.&nbsp; This will create a solid plastic stopper on the end of your strip so the wires will never pull out or get disconnected.

Repeat with the other strip, and be sure to seal the bottom ends with hot glue and heat shrink the same way.

 **Disconnect the battery when not in use.** Gemma’s on/off switch only turns off the microcontroller…but power is still connected between the battery and LED strips. NeoPixels draw a tiny bit of power even when they appear “off,” and this will slowly drain a connected battery.

# Troubleshooting

If your LEDs don't come on, or don't look right, here are a few things to try:

1. Check to be sure you soldered to the IN end of the NeoPixel strips.&nbsp; The strips won't work if you solder them to OUT.
2. Be sure the black wires are connected to GND on both Gemma and the LED strips, and the red wires are connected to +5V and Vout
3. Check to be sure your battery is charged
4. Try re-uploading the code to the Gemma

![](https://cdn-learn.adafruit.com/assets/assets/000/052/496/medium800thumb/led_strips_ravergirl.jpg?1522086039)

# Cosplay Glow Fur Raver Bandolier

## Bandolier Assembly

Cut two pieces of white fun fur about 2.5 inches wide and slightly longer than your LED strips.&nbsp; Cut two pieces of 1/4" trim to the same length, and 4 pieces of ribbon to about 2 1/2 feet -- just long enough to tie the bandoliers onto your costume.

![led_strips_04_cutfabric.jpg](https://cdn-learn.adafruit.com/assets/assets/000/052/334/medium640/led_strips_04_cutfabric.jpg?1521592669)

Find the top end of the fur strips -- the end you want to start petting from.&nbsp; Line them up with the furry sides facing inwards.

&nbsp;

Sew along the left and right edges for about 1/2 inch: enough to hold the two strips together, leaving a hole in the middle large enough for the Gemma to fit through.

![led_strips_05_stitchedges.jpg](https://cdn-learn.adafruit.com/assets/assets/000/052/335/medium640/led_strips_05_stitchedges.jpg?1521592792)

Stitch two ribbons securely to the free ends of both fur strips.&nbsp; You can use a sewing machine or hand-stitch, but it helps to use heavy duty thread for strength.

![led_strips_06_sewribbons.jpg](https://cdn-learn.adafruit.com/assets/assets/000/052/336/medium640/led_strips_06_sewribbons.jpg?1521592931)

Cut a small piece of scrap fabric the same width as your fur strips and wide enough to hold the Gemma and your battery.&nbsp; Sew one of a small piece of velcro along the top edge as shown.&nbsp; Sew the other side of the velcro to the back side of your fur, next to the center seam.

![led_strips_07_velcro.jpg](https://cdn-learn.adafruit.com/assets/assets/000/052/337/medium640/led_strips_07_velcro.jpg?1521592993)

Line up the velcro, then hand-sew the other three sides of the fabric to the back of the fun fur.&nbsp; Be sure your battery fits nicely inside, and be sure the velcro keeps it in place.&nbsp; Slide your Gemma into the pocket through the hole you left in the fur's center seam, with the LEDs emerging on the furry side of the fabric.

![led_strips_08_batterypocket.jpg](https://cdn-learn.adafruit.com/assets/assets/000/052/339/medium640/led_strips_08_batterypocket.jpg?1521593117)

![led_strips_09_gemmapocket.jpg](https://cdn-learn.adafruit.com/assets/assets/000/052/340/medium640/led_strips_09_gemmapocket.jpg?1521593190)

Place your LED strip down on the furry side of the fur strip, face down.&nbsp; Make sure the wires going to the Gemma are well hidden.&nbsp; Place your 1/4" trim over the back of the strip.&nbsp; Hand-sew the strip and trim in place, catching the silicone sleeve but not piercing the actual LED strip with your needle.

![led_strips_11_finished.jpg](https://cdn-learn.adafruit.com/assets/assets/000/052/344/medium640/led_strips_11_finished.jpg?1521593386)

![led_strips_10_sewback.jpg](https://cdn-learn.adafruit.com/assets/assets/000/052/343/medium640/led_strips_10_sewback.jpg?1521593380)

# Cosplay Glow Fur Raver Bandolier

## Wear It

![](https://cdn-learn.adafruit.com/assets/assets/000/052/459/medium800/led_strips_raver_pixie.jpg?1522029295)

![](https://cdn-learn.adafruit.com/assets/assets/000/052/457/medium800/led_strips_playa_tribal_burning_man_led_costume.jpg?1522029130)

![](https://cdn-learn.adafruit.com/assets/assets/000/052/460/medium800/led_strips_Raver_Girl_-_%28black_bkgnd%29-4.jpg?1522029375)

![](https://cdn-learn.adafruit.com/assets/assets/000/052/462/medium800/led_strips_LED_Scarlett_-_%28black_bkgnd%29-6.jpg?1522029390)


## Featured Products

### Adafruit NeoPixel Digital RGB LED Strip - White 30 LED

[Adafruit NeoPixel Digital RGB LED Strip - White 30 LED](https://www.adafruit.com/product/1376)
You thought it couldn't get better than [our world-famous 32-LED-per-meter Digital LED strip](http://adafruit.com/products/306) but we will prove you wrong! These NeoPixel strips have 30 digitally-addressable pixel LEDs per meter and are very affordable and are only 12.5 mm...

In Stock
[Buy Now](https://www.adafruit.com/product/1376)
[Related Guides to the Product](https://learn.adafruit.com/products/1376/guides)
### 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)
### Lithium Ion Polymer Battery - 3.7v 500mAh

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

Out of Stock
[Buy Now](https://www.adafruit.com/product/1578)
[Related Guides to the Product](https://learn.adafruit.com/products/1578/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)
### Silicone Cover Stranded-Core Wire - 2m 26AWG Red

[Silicone Cover Stranded-Core Wire - 2m 26AWG Red](https://www.adafruit.com/product/1877)
Silicone-sheathing wire is super-flexible and soft, and its 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 has to...

Out of Stock
[Buy Now](https://www.adafruit.com/product/1877)
[Related Guides to the Product](https://learn.adafruit.com/products/1877/guides)
### Silicone Cover Stranded-Core Wire - 2m 26AWG Black

[Silicone Cover Stranded-Core Wire - 2m 26AWG Black](https://www.adafruit.com/product/1881)
Silicone-sheathing wire is super-flexible and soft, and its 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 has to...

In Stock
[Buy Now](https://www.adafruit.com/product/1881)
[Related Guides to the Product](https://learn.adafruit.com/products/1881/guides)
### Silicone Cover Stranded-Core Wire - 2m 26AWG White

[Silicone Cover Stranded-Core Wire - 2m 26AWG White](https://www.adafruit.com/product/1882)
Silicone-sheathing wire is super-flexible and soft, and its 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 has to...

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

## Related Guides

- [Animated NeoPixel Glow Fur Scarf](https://learn.adafruit.com/animated-neopixel-gemma-glow-fur-scarf.md)
- [Make It Glow - Your First NeoPixel Project](https://learn.adafruit.com/make-it-glow-your-first-neopixel-project.md)
- [Sewable NeoPixels](https://learn.adafruit.com/flora-rgb-smart-pixels.md)
- [Circuit Playground Seashell Pendant](https://learn.adafruit.com/circuit-playground-seashell-pendant.md)
- [Mini Pinball Table with Gemma M0](https://learn.adafruit.com/mini-pinball-table-with-gemma-m0.md)
- [CircuitPython Hardware: LED Backpacks & FeatherWings](https://learn.adafruit.com/micropython-hardware-led-backpacks-and-featherwings.md)
- [Best Beginner Boards for Teachers](https://learn.adafruit.com/best-beginner-boards-for-teachers.md)
- [Larson Scanner Shades (Trinket-Powered NeoPixel LED Strip Glasses)](https://learn.adafruit.com/larson-scanner-shades.md)
- [Gemma Color Touch Pendant Necklace](https://learn.adafruit.com/gemma-color-touch-pendant-necklace.md)
- [Gemma-Powered NeoPixel LED Sound Reactive Drums](https://learn.adafruit.com/gemma-powered-neopixel-led-sound-reactive-drums.md)
- [CircuitPython with Jupyter Notebooks](https://learn.adafruit.com/circuitpython-with-jupyter-notebooks.md)
- [Energy Budgets](https://learn.adafruit.com/energy-budgets.md)
- [LED NeoPixel Corset with Circuit Playground Express and MakeCode](https://learn.adafruit.com/led-corset-with-circuit-playground-and-makecode.md)
- [Phantom Mouse Jiggler](https://learn.adafruit.com/phantom-mouse-jiggler.md)
- [Textile Potentiometer Hoodie](https://learn.adafruit.com/textile-potentiometer-hoodie.md)
