# Magic Light Bag of Holding

## Overview

Create a bag that magically collects and holds lights!&nbsp; Pull up to ten colored lights from nowhere, and drop each one into your bag and watch them light up.&nbsp; Turn the bag upside down and all the lights will spill out and vanish.

&nbsp;

Delight and amaze your friends, UPS guy, kids, or pets with this simple trick.&nbsp; It's really easy to customize in MakeCode, with endless possibilities for colors, triggers, and magic effects.

![led_pixels_magiclightbag.jpg](https://cdn-learn.adafruit.com/assets/assets/000/064/819/medium640/led_pixels_magiclightbag.jpg?1540922946)

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

First we'll lay out our NeoPixels and solder them together.&nbsp; Then we'll sew them into a simple fabric bag.

We'll program the Circuit Playground Express using MakeCode, Microsoft's drag-and-drop code editor.&nbsp; It's easy to customize your magic effects with all the different sensors and options the Circuit Playground has to offer.&nbsp;&nbsp;

![](https://cdn-learn.adafruit.com/assets/assets/000/064/817/medium800/led_pixels_00_materials.jpg?1540911479)

## Parts
### Part: Circuit Playground Express
quantity: 1
Circuit Playground Express Microcontroller -- the brains!
[Circuit Playground Express](https://www.adafruit.com/product/3333)

### Part: NeoPixels
quantity: 2
Individual NeoPixels in a pack of 4
[NeoPixels](https://www.adafruit.com/product/1260)

### Part: NeoPIxel Strand
quantity: 1
Could be used instead if you don't like soldering
[NeoPIxel Strand](https://www.adafruit.com/product/3630)

### Part: Battery
quantity: 1
LiPoly Battery - 500mAh
[Battery](https://www.adafruit.com/product/1578)

### Part: Battery Cable with Switch
quantity: 1
Extension cable with on/off switch
[Battery Cable with Switch](https://www.adafruit.com/product/3064)

### Part: Battery Charger
quantity: 1
USB Battery Charger
[Battery Charger](https://www.adafruit.com/product/1304)

### Other Materials Needed

- [Fun fur](https://amzn.to/31ohzj7) or other pretty fabric, about 16" x 14"
- Felt or fleece lining, same size plus a bit more
- Pretty trims or ribbons or jewels for decoration
- [E6000 glue](https://amzn.to/3kk2jwo)
- Needle & thread and/or sewing machine
- Rubber band for the battery

To do this trick the way I'm showing it, you'll also need a magic light-up thumb tip.&nbsp; These are sold under the brand name [D-lite](http://dlite.com/) (among others) and come in a variety of colors and a small or large size.&nbsp;

These are so much fun!&nbsp; They way they work is that the light comes on when you squeeze your finger against your thumb.&nbsp; Simple, delightful, and endless possibilities for pranks and magic trickery.&nbsp;&nbsp;

![](https://cdn-learn.adafruit.com/assets/assets/000/064/818/medium800thumb/led_pixels_d-lite.jpg?1540912245)

# Magic Light Bag of Holding

## Wiring Diagram

![](https://cdn-learn.adafruit.com/assets/assets/000/064/798/medium800/led_pixels_lightbag_wiring_bb.png?1540908843)

The individual NeoPixels will be wired up to pin A1 (to the data IN pad), VOUT to + and G to -.

Each NeoPixel's OUT pad will be wired to the IN pad on the next pixel.

If you want to add an on/off switch, you can plug the battery into a [switched battery extension cable](https://www.adafruit.com/product/3064).&nbsp; These are really handy since they're so clicky and tactile that you can turn your project on or off purely by feel and squeezing through the bag.

# Magic Light Bag of Holding

## Assembly

This shows how to wire up the bag using individual NeoPixels.&nbsp; You could also use the [NeoPixel Light Strand](https://www.adafruit.com/product/3630) -- these pixels are already soldered together and could be wired up to the Circuit Playground quickly and easily.&nbsp; &nbsp;It doesn't give you quite as much control over spacing, and your bag will feel a little stiffer, but it's a great option if you don't want to do a lot of soldering.

Cut your fabric to the size you want your bag.&nbsp; Mine is about 14" by 16", making a 14" x 8" bag when it's folded over and sewn.&nbsp; &nbsp;

&nbsp;

Lay out the pixels and the Circuit Playground on the back of your fabric on the side that will become the front of the bag.&nbsp; Remember to place the Circuit Playground face down, so the pixels shine outwards.&nbsp; Mark where you want each pixel to go.

![led_pixels_02_layout.jpg](https://cdn-learn.adafruit.com/assets/assets/000/064/802/medium640/led_pixels_02_layout.jpg?1540909767)

Now we'll wire up the pixels.&nbsp; Measure out the white, red, and black wire going to pixel #1 against your design and solder them to the A1, VOUT and G pads as shown in the wiring diagram.&nbsp; &nbsp;

&nbsp;

Measure out the red and black wires going to pixel #2 and twist them together with the first wires.&nbsp; You'll want to solder both into the + and - holes on the pixel at the same time.&nbsp;

&nbsp;

Solder the white wire into the IN pad on the pixel.&nbsp; Then measure out the white wire going to pixel #2 and solder it to pixel #1's OUT pad.

![led_pixels_03_wires.jpg](https://cdn-learn.adafruit.com/assets/assets/000/064/803/medium640/led_pixels_03_wires.jpg?1540909944)

![led_pixels_04_led1.jpg](https://cdn-learn.adafruit.com/assets/assets/000/064/804/medium640/led_pixels_04_led1.jpg?1540910107)

Continue measuring and soldering each pixel in order, making sure the wire lengths are about right for your design.

&nbsp;

Once you've got all the pixels soldered up, plug your Circuit Playground into your computer and download the test sketch (linked below).&nbsp; Make sure all the pixels light up!&nbsp; If they don't, check to make sure your solder connections are all good, and that you've soldered each pixel in the right orientation.&nbsp;

&nbsp;

It's easy to get the IN and OUT pads mixed up, and much harder to fix after your project is assembled, so don't skip this step!

![led_pixels_05_led2.jpg](https://cdn-learn.adafruit.com/assets/assets/000/064/805/medium640/led_pixels_05_led2.jpg?1540910125)

![led_pixels_07_test.jpg](https://cdn-learn.adafruit.com/assets/assets/000/064/808/medium640/led_pixels_07_test.jpg?1540910204)

https://makecode.com/_7VPfXgd7yLMr

Click "Download" and drag the resulting file onto the **CPLAYBOOT** drive that appears when you plug in your Circuit Playground and click the Reset button.

This sketch will light up a strand of pixels on pin A1 with a rainbow animation.&nbsp; Pretty!&nbsp;&nbsp;

You can move on to the coding step from here, or continue and finish the bag assembly first.

Attach your pixels to your fabric following your design.&nbsp; I used E6000 glue to glue the pixels down, and then I used a needle and thread to secure the Circuit Playground face-down against the fabric.&nbsp; Sewing is best -- it's not a great idea to soak your Circuit Playground board in glue.&nbsp;&nbsp;

&nbsp;

Remember to face the pixels down into the fabric so they show from the outside.&nbsp; Also, do NOT turn the pixels on while the glue is wet.&nbsp; The wet glue can act as a conductor and short out your pixels (so be patient!).

![led_pixels_08_sew.jpg](https://cdn-learn.adafruit.com/assets/assets/000/064/809/medium640/led_pixels_08_sew.jpg?1540910840)

Make a pocket for your battery inside the bag, near the top where it's easy to get to for charging.&nbsp; Glue or hand-sew a small piece of felt on the inside of the bag.&nbsp; Thread the battery extension cable up through the bottom of the pocket before you secure it down.&nbsp;&nbsp;

&nbsp;

Carefully wind a rubber band around the battery and the wires, holding the wires against the body of the battery.&nbsp; This will provide strain relief -- the solder points for these wires are really delicate and break easily unless the wires are secured.

![led_pixels_09_batterypocket.jpg](https://cdn-learn.adafruit.com/assets/assets/000/064/810/medium640/led_pixels_09_batterypocket.jpg?1540910961)

Cut a piece of felt or fleece the same size as your fabric.&nbsp; This will become an inner liner for your bag, so you can show it empty and/or use it to hold things, without getting tangled up in the wires.

![led_pixels_10_cutinside.jpg](https://cdn-learn.adafruit.com/assets/assets/000/064/811/medium640/led_pixels_10_cutinside.jpg?1540911049)

![led_pixels_11_layoutinside.jpg](https://cdn-learn.adafruit.com/assets/assets/000/064/812/medium640/led_pixels_11_layoutinside.jpg?1540911116)

Fold both pieces of fabric with RIGHT sides together, then sew along the side and bottom edge.&nbsp; Turn the main bag right-side out, but leave the inner bag inside-out.

&nbsp;

Place the inner bag inside the main bag and sew carefully around the top edge, leaving an opening so you can get the battery in and out.

&nbsp;

You can add trim or decorations to your main bag at this time too.

![led_pixels_12_bagmade.jpg](https://cdn-learn.adafruit.com/assets/assets/000/064/813/medium640/led_pixels_12_bagmade.jpg?1540911175)

![led_pixels_14_batterypocket.jpg](https://cdn-learn.adafruit.com/assets/assets/000/064/814/medium640/led_pixels_14_batterypocket.jpg?1540911194)

If you are using a fun-fur type fabric, you can cut a small slit right by the USB port of your Circuit Playground Express for easy programming.&nbsp;

&nbsp;

Fun fur will hide this just fine.&nbsp; Other types of fabric you may need to program through the battery case opening (so make sure you left that big enough!)

![led_pixels_15_usbslit.jpg](https://cdn-learn.adafruit.com/assets/assets/000/064/816/medium640/led_pixels_15_usbslit.jpg?1540911354)

# Magic Light Bag of Holding

## Code with MakeCode

We'll use Microsoft's drag-and-drop code editor to create the magic.&nbsp; MakeCode is an easy way to get up and running with the Circuit Playground Express.&nbsp; No prior coding knowledge is needed, and it's an easy way to experiment and learn to think like a coder.

To get started, go to [makecode.adafruit.com](https://makecode.adafruit.com) and then choose **New Project**.&nbsp; You'll find yourself in the MakeCode Editor.&nbsp; From here, you can click on any of the colored tabs and drag blocks of code onto your workspace, then preview it using the Circuit Playground Express pictured on the left.&nbsp;&nbsp;

Once your code is written, plug your Circuit Playground Express into your computer via its USB port and click the "reset" button.&nbsp; All the lights will turn green and your Circuit Playground will appear as a drive on your computer called **CPLAYBOOT**.&nbsp; Simply drag your downloaded code onto this drive to program the Circuit Playground Express.&nbsp; Easy!

Head over to this [Intro to MakeCode](https://learn.adafruit.com/makecode/what-is-makecode) guide for more info on getting started with MakeCode.

If you want to skip right to the end and work backwards, here's the completed MakeCode project.

https://makecode.com/_J9k5JL69Wb3X

### Set Up the Lights

First, let's tell the Circuit Playground that we have a strand of lights wired up to pin A1.&nbsp; We'll also set the brightness of our lights.&nbsp;

Click on the "Loops" tab and drag an instance of `on start` onto the workspace.&nbsp; Anything inside this bracket will happen just once, when the Circuit Playground is powered up.&nbsp;&nbsp;

&nbsp;

Click on the "Light" tab and find `set brightness 0`and drag it out into your `on start` loop.&nbsp; Set the brightness to something moderate, maybe 140.&nbsp; This will set the brightness of the lights on the front of the Circuit Playground Express.

![led_pixels_makecode_setbrightness1.jpg](https://cdn-learn.adafruit.com/assets/assets/000/064/764/medium640/led_pixels_makecode_setbrightness1.jpg?1540836864)

![led_pixels_makecode_br2.jpg](https://cdn-learn.adafruit.com/assets/assets/000/064/765/medium640/led_pixels_makecode_br2.jpg?1540836880)

![led_pixels_makecode_onstart.jpg](https://cdn-learn.adafruit.com/assets/assets/000/064/763/medium640/led_pixels_makecode_onstart.jpg?1540836853)

Click on the **LIGHT** tab again, and the **NEOPIXEL&nbsp;** tab will appear right under it.&nbsp; From **NEOPIXEL** , drag an instance of `set strip to create strip`into your `on start` loop.

&nbsp;

Click the `+` next to create strip and MakeCode will add some modifiers.&nbsp; Be sure `A1` is selected (since that's the pad we soldered our lights to), then click the next `+`&nbsp;to expand the tab further, giving you the option to specify how many pixels are in your strip.

![led_pixels_makecode_strip.jpg](https://cdn-learn.adafruit.com/assets/assets/000/064/766/medium640/led_pixels_makecode_strip.jpg?1540837305)

![led_pixels_makecode_strip2.jpg](https://cdn-learn.adafruit.com/assets/assets/000/064/767/medium640/led_pixels_makecode_strip2.jpg?1540837314)

![led_pixels_makecode_strip3.jpg](https://cdn-learn.adafruit.com/assets/assets/000/064/768/medium640/led_pixels_makecode_strip3.jpg?1540837327)

It's good practice to make this number a variable.&nbsp; That way if you decide to change the number of pixels in your strip later on, or if we want to reference it later in the code, we can do so easily.&nbsp;

Click the **VARIABLES** tab and make a new variable.&nbsp; Call it `numpixels`.&nbsp; Drag it out into your workspace and into the `create strip` instance, replacing the `0`.

&nbsp;

Drag an instance of `set numpixels to 0` into your `on start` loop above `set strip`.&nbsp; Enter the number of pixels you've added to your project -- I have 7.

&nbsp;

Then, go back to your **NEOPIXELS** tab (under the **LIGHTS** tab) and drag an instance of `strip set brightness` `0`.&nbsp; Change this to `140` also.

![led_pixels_makecode_numpixels.jpg](https://cdn-learn.adafruit.com/assets/assets/000/064/769/medium640/led_pixels_makecode_numpixels.jpg?1540840445)

![led_pixels_makecode_numpixels3.jpg](https://cdn-learn.adafruit.com/assets/assets/000/064/773/medium640/led_pixels_makecode_numpixels3.jpg?1540841648)

## Filling the Bag with Lights

Each time we "drop" a magic light into the bag, we want one light to turn on.&nbsp; We've got ten lights on the face of the Circuit Playground, and seven more spread out along the inside of the bag.&nbsp; But if we used all ten of the Circuit Playground's lights, it wouldn't look quite right.&nbsp; Dropping random lights into a bag would never light up a perfect circle!&nbsp; So we'll just use a few of the Circuit Playground's lights, to make it seem more random and jumbled, and then move on to our light strip.

Decide how you want to trigger your effect.&nbsp; You can use the buttons on the face of the Circuit Playground, or the capacitive touch pads around the edge.&nbsp; Capacitive touch works great with sheer fabric, but if you're using fun fur, the fabric is too thick to trigger the capacitive touch -- so maybe not the best option in this case.&nbsp; You could also use the "tilt" or "shake" features.&nbsp; It's all dependent on your magician's flair and style.&nbsp; You could even use multiple triggers to make it even more mysterious!

I decided to use "shake" -- so each time I shake the bag, another light will appear.

### Add Variables

First we need to create a couple more variables.&nbsp; Go to your&nbsp; **VARIABLES** tab and create a variable called `nextlight`.&nbsp; We'll use this one to refer to the lights on the strip.&nbsp; Create one more called `nextcplight`.&nbsp; We'll use this one to refer to the lights on the Circuit Playground Express.

From the **INPUT** tab, drag an instance of `on shake` (or whatever your preferred trigger is) onto the workspace.&nbsp; From the **LIGHT** tab, drag `set pixel color at 0 to red` into this loop.&nbsp; Then go grab the `nextcplight` variable you just made and drag it into this block to replace the `0`.&nbsp; Finally, change the color to whatever color you'd like the light to be.&nbsp; My magic thumb tip is red, so I'll leave mine red.

![led_pixels_makecode_onshake1.jpg](https://cdn-learn.adafruit.com/assets/assets/000/064/784/medium640/led_pixels_makecode_onshake1.jpg?1540843074)

Now we'll add some code that changes the variable `nextcplight` to refer to a different light.&nbsp; I want to use just 3 of the Circuit Playground Express' lights (to avoid the perfect circle look), so I'll tell it to start at light 1 and then skip ahead lights -- so we'll light up pixels 1, 4, and 7.

Go to the **VARIABLES** tab and drag an instance of `set nextcplight to 0` into your `on start` loop.&nbsp; Set this to `1`.&nbsp; Then drag an instance of `change nextcplight by 1` into your on shake loop and set this to `3`.

&nbsp;

Try downloading the code and see if it works.&nbsp; Plug your Circuit Playground Express into your computer and press the reset button.&nbsp; Drag the downloaded code file onto the **CPLAYBOOT** drive that appears.&nbsp; Try shaking / triggering your effects and watch your lights come on.

![led_pixels_makecode_nextcplight.jpg](https://cdn-learn.adafruit.com/assets/assets/000/064/785/medium640/led_pixels_makecode_nextcplight.jpg?1540843991)

Now let's do the same thing for the light strip.&nbsp; We want to use the same trigger (on shake) but we don't want these lights to come on until all three lights on the Circuit Playground face have come on.&nbsp; We'll need to add a conditional statement (if/then) to make this work.

Under the **LOGIC** tab, drag an `if true then` loop into your `on shake` loop.&nbsp; Then drag a comparison block to replace the `true`.

&nbsp;

Change the first `0` in the comparison block to your `nextcplight` variable.&nbsp; Then change the second `0` to `12` (because we're counting by 3s, remember?).&nbsp; Finally, change the operator `=` to `>` (greater than).&nbsp; Now the code means "if the last light-number we lit is greater than the number of lights onboard the Circuit Playground Express, move on to the next thing".

![led_pixels_makecode_ifthen.jpg](https://cdn-learn.adafruit.com/assets/assets/000/064/786/medium640/led_pixels_makecode_ifthen.jpg?1540844348)

![led_pixels_makecode_ifthen2.jpg](https://cdn-learn.adafruit.com/assets/assets/000/064/787/medium640/led_pixels_makecode_ifthen2.jpg?1540844651)

The next thing is to light the lights on your LED strip.&nbsp; So let's repeat the same idea, only using the blocks and values that will work for our strip.

Grab `strip set pixel color at 0 to red` under the **NEOPIXEL** tab.&nbsp; (Remember, the **NEOPIXEL** tab will change your light strip, whereas the **LIGHT** tab changes the lights on the face of the Circuit Playground Express).&nbsp;

&nbsp;

Drag in your `nextlight` variable (the one we made to refer to the light strip), and a `change nextlight by 0` block from the **VARIABLES** tab.&nbsp; Change the `0` to a `1` to light up the lights sequentially.

&nbsp;

Try downloading this code again and see if it works the way you want.

![led_pixels_makecode_nextlight.jpg](https://cdn-learn.adafruit.com/assets/assets/000/064/788/medium640/led_pixels_makecode_nextlight.jpg?1540844764)

## Emptying the Bag

Hooray!&nbsp; We've gotten the bag to fill up with magic lights each time it's shaken.&nbsp; Now let's add a function that makes it appear to empty out when we're done.

We'll use the "tilt" input for this part.&nbsp; I want the bag to empty out when I turn it completely upside down, so the "tilt down" input is the one I'll use.&nbsp;

You could also make it trigger with a loud sound, a fast swing, or if you shine a bright light at the outside of the bag.&nbsp; So many possibilities!

Drag another instance of `on shake` to your workspace, and change the input to `tilt down`.&nbsp; &nbsp;Under **LOOPS** , drag an instance of `repeat 4 times` into this loop.&nbsp; Change `4` to a number about twice as big as your total number of lights.&nbsp; I have 10 lights total (3 on the Circuit Playground Express and 7 in my strip) so I chose 20.

&nbsp;

From **LIGHT** drag an instance of `set pixel color at 0 to red`, and from **NEOPIXEL&nbsp;** drag an instance of `strip set pixel color at 0 to red`.&nbsp; Change both to black -- this will turn the pixels off.

![led_pixels_makecode_tiltdown.jpg](https://cdn-learn.adafruit.com/assets/assets/000/064/789/medium640/led_pixels_makecode_tiltdown.jpg?1540845197)

![led_pixels_makecode_tiltdown2.jpg](https://cdn-learn.adafruit.com/assets/assets/000/064/790/medium640/led_pixels_makecode_tiltdown2.jpg?1540845580)

Then, we'll add some randomness so the lights go off in a random order.&nbsp; &nbsp;Under the **MATH** tab, drag two instances of `pick random 0 to 10` and replace both the `0`s in the previous two blocks.&nbsp; For the `strip` block, change the 10 to your `numpixels` variable (remember, that is defined as the number of pixels in your strip).&nbsp; For the other, we can leave it as `10` since there are 10 NeoPixels on the face of the Circuit Playground Express.

&nbsp;

Then we'll slow it down a little.&nbsp; Drag an instance of `pause 100ms` from the **LOOPS** tab.&nbsp; You can change this variable to something pleasing -- I chose `15ms` for a fairly quick-fire emptying animation.

![led_pixels_makecode_tiltdown3.jpg](https://cdn-learn.adafruit.com/assets/assets/000/064/792/medium640/led_pixels_makecode_tiltdown3.jpg?1540845884)

![led_pixels_makecode_pause.jpg](https://cdn-learn.adafruit.com/assets/assets/000/064/793/medium640/led_pixels_makecode_pause.jpg?1540846024)

Let's add a failsafe just in case the random numbers don't turn all the lights off.&nbsp; After the `repeat` loop, drag an instance of `set all pixels to red` and `strip set all pixels to red`, and change both to `black`.&nbsp; This will make sure every single light gets turned off, and none appear to get "stuck" in the bag.

![led_pixels_makecode_alloff.jpg](https://cdn-learn.adafruit.com/assets/assets/000/064/795/medium640/led_pixels_makecode_alloff.jpg?1540846362)

## Resetting the Trick

One last thing to add!&nbsp; We want the trick to reset itself after the bag is emptied out, so you can immediately fill it again.&nbsp; To do this, we have to reset the `nextlight` and `nextcplight` variables back to their original state of `0` and `1`.&nbsp; Do this in the `on tilt down` loop, OUTSIDE the `repeat` loop, so the animation finishes before the variables get reset.

Drag an instance of `set nextlight to 0` and `set nextcplight to 0` into the `on tilt down` loop at the very end.&nbsp; Set `nextcplight` to `1`.

![led_pixels_makecode_reset.jpg](https://cdn-learn.adafruit.com/assets/assets/000/064/796/medium640/led_pixels_makecode_reset.jpg?1540846492)

# Magic Light Bag of Holding

## Use It

"Grab" a light out of the air with your magic thumb tip.&nbsp; Hold it above your bag and "drop" the light inside while giving the bag a shake.&nbsp; Each time you do this another light will appear inside the bag, until all your lights have been lit.&nbsp;&nbsp;

Once your bag is "full" of lights, up-end it and watch all the lights disappear.&nbsp; Your trick is now reset!&nbsp; Turn the bag right-side-up again and do it all over again.

![](https://cdn-learn.adafruit.com/assets/assets/000/064/820/medium800/led_pixels_magicbag_colors.jpg?1540923788)

## More Ideas

Make this magic trick your own by adding other functions.&nbsp; Magic light thumb tips come in lots of colors, so maybe try using the buttons on the Circuit Playground Express to add multiple color effects.&nbsp;

You could also add sound effects -- play a sound each time a light is "captured" -- or have the lights dim or disappear when you shine a flashlight at your bag.&nbsp; &nbsp;You could trigger the lights to appear when the Circuit Playground hears a loud sound -- maybe when you shout "Abracadabra!".&nbsp; Or secretly hide some red jewels or giveaways inside the bag, so when you spill the "lights" out, they appear to have changed into jewels.&nbsp;&nbsp;

Make someone smile!


## Featured Products

### Circuit Playground Express

[Circuit Playground Express](https://www.adafruit.com/product/3333)
 **Circuit Playground Express** is the next step towards a perfect introduction to electronics and programming. We've taken the original Circuit Playground Classic and made it even better! Not only did we pack even more sensors in, we also made it even easier to...

In Stock
[Buy Now](https://www.adafruit.com/product/3333)
[Related Guides to the Product](https://learn.adafruit.com/products/3333/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...

In Stock
[Buy Now](https://www.adafruit.com/product/1260)
[Related Guides to the Product](https://learn.adafruit.com/products/1260/guides)
### Adafruit NeoPixel LED Dots Strand - 20 LEDs at 2" Pitch

[Adafruit NeoPixel LED Dots Strand - 20 LEDs at 2" Pitch](https://www.adafruit.com/product/3630)
Attaching NeoPixel strips to your costume can be a struggle as the flexible PCBs can crack when bent too much. So how to add little dots of color? Use these stranded NeoPixel dots! They're very small, so they're easy to embed into any structure, costume, or wearable. Each dot is...

In Stock
[Buy Now](https://www.adafruit.com/product/3630)
[Related Guides to the Product](https://learn.adafruit.com/products/3630/guides)
### JST 2-pin Extension Cable with On/Off Switch - JST PH2

[JST 2-pin Extension Cable with On/Off Switch - JST PH2](https://www.adafruit.com/product/3064)
By popular request - we now have a way you can turn on-and-off Lithium Polymer batteries without unplugging them.

This **PH2 Female/Male&nbsp;JST 2-pin Extension Cable&nbsp;** comes with an in-line **Switch** - click once to turn on, click again to turn off....

In Stock
[Buy Now](https://www.adafruit.com/product/3064)
[Related Guides to the Product](https://learn.adafruit.com/products/3064/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)

## Related Guides

- [Adafruit Circuit Playground Express](https://learn.adafruit.com/adafruit-circuit-playground-express.md)
- [Distance Measurement with Ultrasound](https://learn.adafruit.com/distance-measurement-ultrasound-hcsr04.md)
- [Professor Bubbleton’s Breathing Head in a Jar](https://learn.adafruit.com/professor-bubbleton-s-breathing-head-in-a-jar.md)
- [Infrared Hand Gesture Robot Control Glove](https://learn.adafruit.com/cpx-ir-infrared-hand-gesture-robot-control-glove.md)
- [Adafruit MicroLipo and MiniLipo Battery Chargers](https://learn.adafruit.com/adafruit-microlipo-and-minilipo-battery-chargers.md)
- [LED Ampli-Tie](https://learn.adafruit.com/led-ampli-tie.md)
- [Circuit Playground Express Perk-up Ears](https://learn.adafruit.com/perk-up-ears.md)
- [Sensor Plotting with Mu and CircuitPython](https://learn.adafruit.com/sensor-plotting-with-mu-and-circuitpython.md)
- [Pac Man Pixel Suspenders](https://learn.adafruit.com/pac-man-pixel-suspenders.md)
- [Easter Egg Light Stand](https://learn.adafruit.com/easter-egg-light-stand.md)
- [Playa Festival Bike](https://learn.adafruit.com/playa-festival-bike.md)
- [MakeCode for Circuit Playground Express](https://learn.adafruit.com/makecode.md)
- [Washing Wearable Electronics](https://learn.adafruit.com/washing-wearable-electronics.md)
- [Make It Pulse](https://learn.adafruit.com/make-it-pulse.md)
- [CircuitPython Hardware: LED Backpacks & FeatherWings](https://learn.adafruit.com/micropython-hardware-led-backpacks-and-featherwings.md)
- [NeoPixie Dust Bag](https://learn.adafruit.com/neopixel-pixie-dust-bag.md)
