# Easy Sparkle Pocket T-Shirt

## Overview

Make a sparkly t-shirt that sparkles with real lights.&nbsp; The lights are triggered by the Circuit Playground's shake sensor, so they twinkle when you move, dance, jump, or wiggle.

This is a very easy beginner project that's great to do with kids.&nbsp; It uses a vinyl cutter for the customizable iron-on decoration, and a Circuit Playground programmed with MakeCode, Microsoft's drag-and-drop code editor.&nbsp; The electronics slip into the t-shirt pocket -- there is no soldering or sewing required.

Best of all, the Circuit Playground is removable, so you can easily use it for other projects too.

![](https://cdn-learn.adafruit.com/assets/assets/000/063/625/medium800/makecode_tshirt.jpg?1539731082)

## Parts
### Part: Circuit Playground Express
quantity: 1
Adafruit Circuit Playground Express
[Circuit Playground Express](https://www.adafruit.com/product/3333)

### Part: USB cable
quantity: 1
USB A to Micro-B - 3 foot long
[USB cable](https://www.adafruit.com/product/592)

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

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

# Materials Needed

- T-shirt with a breast pocket
- Circuit Playground Express
- LiPoly battery
- Vinyl Cutting machine
- Sparkly iron-on vinyl
- Iron & ironing board
- Sticky-back velcro square
- Rubber Band

![](https://cdn-learn.adafruit.com/assets/assets/000/063/646/medium800thumb/wearables_makecode_sparkle.jpg?1539893904)

# Easy Sparkle Pocket T-Shirt

## Code with MakeCode

Head over to [makecode.adafruit.com](https://makecode.adafruit.com/) to start coding! Choose the Circuit Playground Express option and create a new project.

![](https://cdn-learn.adafruit.com/assets/assets/000/063/619/medium800/makecode_11_onshake.jpg?1539729899)

We want the lights to come on when we move or shake, so we'll use the **on shake** input.&nbsp; You can find this under the **INPUT** &nbsp;menu.&nbsp; Drag it into your code workspace.

![](https://cdn-learn.adafruit.com/assets/assets/000/063/620/medium800/makecode_12_animation.jpg?1539730015)

Next, we'll tell it what to do when we shake.&nbsp; Under the **LIGHT** menu, choose the **show animation** block and drag that onto the workspace.&nbsp; Put it inside the **on shake** block.

![](https://cdn-learn.adafruit.com/assets/assets/000/063/622/medium800/makecode_13_sparkleanimation.jpg?1539730072)

We want the sparkle animation for this project, so choose that one.&nbsp; Then set the length you'd like the sparkles to last.&nbsp; I chose 2 seconds.

![](https://cdn-learn.adafruit.com/assets/assets/000/063/623/medium800/makecode_14_offagain.jpg?1539730114)

Finally, let's tell the Circuit Playground to be sure all the lights go off at the end of our specified animation time.&nbsp; Under **LIGHT** , drag out **set all pixels to** and then choose **black** , for off.&nbsp; Put this in the **on shake** block after the animation.

[Open the Sparkle Shirt Project in MakeCode](https://makecode.com/_5ztaa1iuccjg)
You can play with the simulator on the left to see what happens!&nbsp; Once you're happy with the code, click **Download**. Plug your Circuit Playground into your computer using a USB cable, tap the reset button on the Circuit Playground, and then drag the resulting file onto the **CPLAYBOOT** &nbsp;flash drive that appears in your file explorer/finder.&nbsp;&nbsp;

Shake your Circuit Playground and watch the sparkle!

If you're having trouble, head over to the [Circuit Playground Express guide here](https://learn.adafruit.com/adafruit-circuit-playground-express?view=all) for some troubleshooting tips.

# Easy Sparkle Pocket T-Shirt

## Vinyl Cutting

I used a Cricut Explore Air 2 for this project, but any vinyl cutter should work just fine.&nbsp; I've added a link to the project on the Cricut Design Space so you can customize the design or the message to match your style.

[Cricut Design Space Project](https://design.cricut.com/landing/project-detail/5bc65bc1ee3275062ca032ba?fbclid=IwAR1OkfAdhjpARB9INDR-xDFrinLp1C5qczJF-9eCT460IFF4E1PB10yi_dw)
Or, you can download this image file for use with other vinyl cutters or vinyl cutting services.

![](https://cdn-learn.adafruit.com/assets/assets/000/063/624/medium800/makecode_stealyoursparkle.jpg?1539731027)

# Sizing and Layout

Different sized t-shirts will want different sized designs.&nbsp; Luckily, it's easy to customize the size in the Cricut Design Space.&nbsp; &nbsp;Just select the group and drag the corner until it's the size you want.

Next, select all the layers except the circle "moon", and click "Weld".&nbsp; This will ensure the whole design cuts as it's laid out on the design board.

Do a test cut on a sheet of paper or card stock and hold it up in front of your shirt to be sure you like the sizing and placement.&nbsp;&nbsp;

![](https://cdn-learn.adafruit.com/assets/assets/000/063/606/medium800/makecode_00_sizing.jpg?1539728977)

After you're sure you're happy with the layout, load your iron-on vinyl into your vinyl cutter&nbsp; **liner side down**.&nbsp; This means shiny-side down, or upside-down, most of the time.&nbsp; Double check to be sure you have this right!&nbsp; This stuff is expensive.

Set your vinyl cutter to the "Iron On" setting and cut.

![](https://cdn-learn.adafruit.com/assets/assets/000/063/607/medium800/makecode_01_loadvinyl.jpg?1539728987)

Peel the unused vinyl carefully off the liner.&nbsp; It works best to pull horizontally, close to your work table (instead of upwards toward the ceiling).

&nbsp;

Take a utility knife or other small sharp tool and carefully "weed" the design, pulling out any vinyl that shouldn't be there and leaving just your perfect design on the liner.

![makecode_02_peelvinyl.jpg](https://cdn-learn.adafruit.com/assets/assets/000/063/608/medium640/makecode_02_peelvinyl.jpg?1539729000)

![makecode_04_weedvinyl.jpg](https://cdn-learn.adafruit.com/assets/assets/000/063/609/medium640/makecode_04_weedvinyl.jpg?1539729026)

Line up the design on your t-shirt.&nbsp; Read the directions that came with the iron-on vinyl for best results.&nbsp; Preheat the fabric, then iron on both sides and let the design cool completely before removing the liner.

![makecode_05_iron.jpg](https://cdn-learn.adafruit.com/assets/assets/000/063/611/medium640/makecode_05_iron.jpg?1539729205)

![makecode_07_pocket.jpg](https://cdn-learn.adafruit.com/assets/assets/000/063/612/medium640/makecode_07_pocket.jpg?1539729296)

# Easy Sparkle Pocket T-Shirt

## Assembly

Gently wrap a rubber band around your battery, catching the leads.&nbsp; These batteries break really easily at the joint where the wires connect to the battery.&nbsp; This little step will add strain relief and save you a lot of heartache.

![makecode_08_batteryband.jpg](https://cdn-learn.adafruit.com/assets/assets/000/063/614/medium640/makecode_08_batteryband.jpg?1539729372)

Slip the Circuit Playground Express and the battery into your t-shirt's pocket and shake it around.&nbsp; Watch it sparkle!&nbsp; On a light-colored t-shirt, or for a subtle light effect, you're done!

If you used a dark colored t-shirt like mine, you may find the lights aren't quite dramatic enough.&nbsp; Here's how I added the Circuit Playground Express to the outside of the pocket for a little extra oomph.

Stick a piece of sticky-back velcro on the back of the Circuit Playground Express.&nbsp; Place the other side on the outside of the shirt pocket, so the Circuit Playground's top aligns with the top of the pocket.&nbsp; Slip the battery in the pocket and attach the Circuit Playground Express to the velcro.

![makecode_07_velcro.jpg](https://cdn-learn.adafruit.com/assets/assets/000/063/615/medium640/makecode_07_velcro.jpg?1539729434)

![makecode_09_attachtoshirt.jpg](https://cdn-learn.adafruit.com/assets/assets/000/063/616/medium640/makecode_09_attachtoshirt.jpg?1539729518)

Cut a circle "moon" out of holographic sticky-back vinyl.&nbsp; (This is the other layer in my Cricut project)&nbsp; It should be slightly larger than 2" across so it covers the whole Circuit Playground.&nbsp;

Stick the vinyl to the front of the Circuit Playground Express to diffuse the light and create a sparkly moon.

![](https://cdn-learn.adafruit.com/assets/assets/000/063/617/medium800/makecode_10_moon.jpg?1539729580)

Slip the battery in the pocket and stick the Circuit Playground Express to the outside of the pocket.&nbsp; Flick the moon and watch it sparkle!


## 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)
### USB cable - USB A to Micro-B

[USB cable - USB A to Micro-B](https://www.adafruit.com/product/592)
This here is your standard A to micro-B USB cable, for USB 1.1 or 2.0. Perfect for connecting a PC to your Metro, Feather, Raspberry Pi or other dev-board or microcontroller

Approximately 3 feet / 1 meter long

Out of Stock
[Buy Now](https://www.adafruit.com/product/592)
[Related Guides to the Product](https://learn.adafruit.com/products/592/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)
- [Make It Glow - Your First NeoPixel Project](https://learn.adafruit.com/make-it-glow-your-first-neopixel-project.md)
- [Light Paintbrush with Circuit Playground](https://learn.adafruit.com/lightpaint-cplay.md)
- [CRICKIT Snake Bot](https://learn.adafruit.com/crickit-snake-bot.md)
- [Circuit Playground Slouch Detector](https://learn.adafruit.com/circuit-playground-slouch-detector.md)
- [3D Print Ratcatcher 2 Controller Device](https://learn.adafruit.com/3d-print-ratcatcher-2-controller-device-wand.md)
- [Machine Learning with Marshmallows and Tiny Sorter](https://learn.adafruit.com/machine-learning-with-marshmallows-and-tiny-sorter.md)
- [Affordable HAL 9000 Replica](https://learn.adafruit.com/hal-9000-replica.md)
- [Cam Follower Automaton](https://learn.adafruit.com/cam-follower-automaton.md)
- [CircuitPython Basics: Analog Inputs & Outputs](https://learn.adafruit.com/circuitpython-basics-analog-inputs-and-outputs.md)
- [Installing Microsoft MakeCode for Adafruit](https://learn.adafruit.com/installing-makecode-for-adafruit.md)
- [Touch Tone for Circuit Playground Express](https://learn.adafruit.com/touch-tone-for-circuit-playground-express.md)
- [Halloween Monsters with CRICKIT and Circuit Playground Express](https://learn.adafruit.com/halloween-monsters-with-crickit.md)
- [Micro USB Dock for Circuit Playground](https://learn.adafruit.com/micro-usb-dock-for-circuit-playground.md)
- [Gemma Firewalker Lite Sneakers](https://learn.adafruit.com/gemma-led-sneakers.md)
- [Using the Android CircuitPython Editor](https://learn.adafruit.com/using-the-android-circuitpython-editor.md)
