# Pearl's Gem Weapon – Steven Universe

## Overview

https://youtu.be/WbshzFkdis8

In this project we're building Pearl's&nbsp;Spear: LED Wand&nbsp;from Steven Universe!!&nbsp;

&nbsp;

We made Pearl’s gem wand so it lights up and makes sound effects when you swing it around!&nbsp;You too can build your own with a couple parts and craft supplies.

&nbsp;

Use microsoft MakeCode and Adafruit Circuit Playground Express and learn how to program. Drag and drop code blocks to develop interactive LED animations.

![makecode_spear-wand-sq.jpg](https://cdn-learn.adafruit.com/assets/assets/000/069/901/medium640/makecode_spear-wand-sq.jpg?1548386722)

## Lights and Sounds and more!

&nbsp;

The Circuit Playground Express powers the NeoPixel LED strip and can activated animations and sounds with its build in sensors!

&nbsp;

Tigger with motions, sound or even temperature!

&nbsp;

Parts easily connect with Alligator clips, so no need to solder!

![makecode_hero-swing.gif](https://cdn-learn.adafruit.com/assets/assets/000/069/902/medium640thumb/makecode_hero-swing.jpg?1548386841)

## Craft Parts/ Tools

&nbsp;

To build this project, all you need are some foam poster boards and art supplies.&nbsp;

&nbsp;

## Prerequisite Guides

&nbsp;

There's resources in these guides that go beyond what's covered in this tutorial. MakeCode guide is all about setting up your Circuit Playground Express board.

&nbsp;

TheCircuit Playground Express introduction guide walks you through all of the pinouts, sensors and everything you need to know.

&nbsp;

- [MakeCode for Circuit Playground Express](https://learn.adafruit.com/makecode)
- [Introducing Circuit Playground Express](https://learn.adafruit.com/adafruit-circuit-playground-express)
- [Using Vinyl Cutters for Projects](https://learn.adafruit.com/using-cricut-for-projects/overview)

![makecode_parts-side.jpg](https://cdn-learn.adafruit.com/assets/assets/000/069/903/medium640/makecode_parts-side.jpg?1548387171)

![makecode_paper-parts.jpg](https://cdn-learn.adafruit.com/assets/assets/000/069/904/medium640/makecode_paper-parts.jpg?1548387258)

## Parts List

This is an easy to copy + paste list of parts linked to their individual product pages.

- [Adafruit Circuit Playground Express](https://www.adafruit.com/product/3333)
- [Adafruit NeoPixel LED Strip w/ Alligator Clips](https://www.adafruit.com/product/3811)
- [Short Wire Alligator Clips](https://www.adafruit.com/product/1592)
- [3x AAA Battery Pack w/ JST connector](https://www.adafruit.com/product/727)
- [.7mm thick Chipboard](https://www.amazon.com/gp/product/B0127YHXS8)
- Hobby Knife
- colored Cardstock
- glue stick
- colored markers
- [Foam poster board](https://www.goadams.com/products/readi-board-foam-board/foam-board/)
- [Cricut Vinyl Cutter](https://home.cricut.com/)

![](https://cdn-learn.adafruit.com/assets/assets/000/069/931/medium800/makecode_complete.jpg?1548391197)

### 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)
![A Black woman's manicured hand holds a round microcontroller with lit up LEDs.](https://cdn-shop.adafruit.com/640x480/3333-05.jpg)

### Adafruit NeoPixel LED Strip w/ Alligator Clips - 60 LED/m

[Adafruit NeoPixel LED Strip w/ Alligator Clips - 60 LED/m](https://www.adafruit.com/product/3811)
Adding glowy color to your projects has never been easier: no more soldering or stripping wires, clip 'em on and glow! This **Adafruit NeoPixel LED Strip with Alligator Clips** has **30 total LEDs** in a **"60 LED per meter" spacing** , and...

In Stock
[Buy Now](https://www.adafruit.com/product/3811)
[Related Guides to the Product](https://learn.adafruit.com/products/3811/guides)
![Adafruit NeoPixel LED 0.5 meter Strip with Alligator Clips wired to Circuit Playground, lighting up rainbow](https://cdn-shop.adafruit.com/product-videos/640x480/3811-06.jpg)

### Short Wire Alligator Clip Test Lead (set of 12)

[Short Wire Alligator Clip Test Lead (set of 12)](https://www.adafruit.com/product/1592)
Connect this to that without soldering using these handy mini alligator clip test leads. Approximately 4.5" overall cables with alligator clip on each end, color coded. You get 12 pieces in 6 colors. Strong and grippy, these always come in handy! We often use these in conjunction with a...

In Stock
[Buy Now](https://www.adafruit.com/product/1592)
[Related Guides to the Product](https://learn.adafruit.com/products/1592/guides)
![Top-down view of 6 pairs of short wire alligator clips.](https://cdn-shop.adafruit.com/640x480/1592-00.jpg)

### 3 x AAA Battery Holder with On/Off Switch and 2-Pin JST

[3 x AAA Battery Holder with On/Off Switch and 2-Pin JST](https://www.adafruit.com/product/727)
This battery holder connects 3 AAA batteries together in series for powering all kinds of projects. We spec'd these out because the box is slim, and 3 AAA's add up to about 3.3-4.5V, a very similar range to Lithium Ion/polymer (Li-Ion) batteries and have an on-off switch. That makes...

In Stock
[Buy Now](https://www.adafruit.com/product/727)
[Related Guides to the Product](https://learn.adafruit.com/products/727/guides)
![Front angled shot of 3 x AAA battery holder with on-off switch and 2-pin JST PH connector.](https://cdn-shop.adafruit.com/640x480/727-07.jpg)

# Pearl's Gem Weapon – Steven Universe

## Circuit Diagram

![](https://cdn-learn.adafruit.com/assets/assets/000/069/933/medium800/makecode_circuit-diagram.jpg?1548427538)

## Circuit&nbsp;Diagram

This provides a visual reference for wiring of the components. They aren't true to scale, just meant to be used as reference.

## Power Pack

The 3xAAA battery pack can supply ~4.5V which is suffice to power the Circuit Playground Express. The battery plugs directs into the JST connector.&nbsp;

## NeoPixel Strip + Extension Alligator Clips

&nbsp;

The&nbsp;Alligator clip Neopixel strips connects to the pads on Circuit Playground Express. The wires on the Strip will need a small extension to reach the blade. We used short Alligator clips to join the strip to the Circuit Playground.

**Red** connects to **Vout**

**White** &nbsp;connects to **A1**

**Black** connects to **GND** &nbsp;

![makecode_strip-connection.jpg](https://cdn-learn.adafruit.com/assets/assets/000/069/934/medium640/makecode_strip-connection.jpg?1548428116)

# Pearl's Gem Weapon – Steven Universe

## Code

## MakeCode for Circuit Playground Express

MakeCode is this programming editor that runs in the Google Chrome web browser. It’s has an intuitive interface that’s both block based and text editor.

It works with Adafruit's Circuit Playground Express so you can make interactive projects with the on-board sensors and components. You can drag & drop blocks to make interactive programs using lights and sounds without having to solder or learning a new syntax.

You can alternatively upload code directly to the Circuit Playground Express with WebUSB,&nbsp;[see the steps to do so here](https://learn.adafruit.com/makecode/webusb).

## Setup Circuit Playground Express for MakeCode

To get started, we'll need to head over to the&nbsp;[Adafruit MakeCode](https://makecode.adafruit.com/beta?webusb=1#editor)&nbsp;website and follow the steps below.

1. Plug in your Circuit Playground Express with a&nbsp; **USB Cable**
2. Press the&nbsp; **RESET** &nbsp;button. Green light means you're ready to MakeCode
3. Download the&nbsp; **UF2** &nbsp;file and drop it onto&nbsp; **CPLAYBOOT**.

[Edit Makecode](https://makecode.com/_YYaavdfhkTcW)
## Upload and Test Code

&nbsp;

Once you have your CPX setup with the MakeCode UF2, try testing it out by uploading the code to the board.

&nbsp;

Click the link below to open up the program in MakeCode. Click on the pink edit icon near the top of the title to open the code.

&nbsp;

This will create a project in MakeCode and allow you to edit, modify and upload the code to the board.

![makecode.jpg](https://cdn-learn.adafruit.com/assets/assets/000/069/932/medium640/makecode.jpg?1548427443)

## Makecode Blocks
![](https://cdn-learn.adafruit.com/assets/assets/000/070/004/medium800/makecode-blocks.jpg?1548442160)

# Pearl's Gem Weapon – Steven Universe

## Assembly

## Print and Cut Outlines

&nbsp;

To start off we'll go ahead and download, print and then trace the paper outlines onto foam board. We used banner paper to print the length of the blade, but you could tape two pieces of paper to print the full size.&nbsp;

&nbsp;

The files include outlines to use on vinyl cutters to get precise edges and make printing easier.&nbsp;

&nbsp;

Cut out two copies. We'll use the outline to form the sides of the blade and then use the center pieces as the backing and lid.

![makecode_cut-outs-B.jpg](https://cdn-learn.adafruit.com/assets/assets/000/069/907/medium640/makecode_cut-outs-B.jpg?1548387873)

![makecode_foam-cutout.jpg](https://cdn-learn.adafruit.com/assets/assets/000/069/906/medium640/makecode_foam-cutout.jpg?1548387417)

[Pearl_Spear_Cuts.zip](https://cdn-learn.adafruit.com/assets/assets/000/069/935/original/Pearl_Spear_Cuts.zip?1548428447)
## Stack Layers

&nbsp;

Now we can stack the layers on top of each other to form the blade body to mount the NeoPixel Strip.&nbsp;

&nbsp;

## Glue Layers

&nbsp;

We applied hot glue to the inner edges of the backing and the two frame pieces.&nbsp;Glue the backing to the first outline piece.&nbsp;

&nbsp;

**Do NOT glue the other center piece, will use this as our removable lid.**

&nbsp;

We'll want to make sure the backing isn't inserted in the outline, stack it on top then glue the inner edges.

![makecode_foam-stack.jpg](https://cdn-learn.adafruit.com/assets/assets/000/069/908/medium640/makecode_foam-stack.jpg?1548388125)

![makecode_foam-glue.jpg](https://cdn-learn.adafruit.com/assets/assets/000/069/909/medium640/makecode_foam-glue.jpg?1548388167)

## CPX and Battery Assemble&nbsp;

&nbsp;

The Circuit Playground Express and battery pack are attach with a strip of double stick foam tape. Apply the foam tape to the center backing of the Circuit Playground. Position the battery pack with its wire to the opposite side of board as shown.

&nbsp;

## Alligator Cip Extensions&nbsp;

&nbsp;

We'll need to add short extensions for the NeoPixel strip. This will allow it to reach from the CPX, through the handle end and into the spear.

## &nbsp;

## Mark Strip

&nbsp;

Next we'll place the NeoPixel strip on the end of the blade and add a cut out to allow the strip to sit inside the blade cavity.

![makecode_CPX-bat-taped.jpg](https://cdn-learn.adafruit.com/assets/assets/000/069/910/medium640/makecode_CPX-bat-taped.jpg?1548388272)

![makecode_strip-mark.jpg](https://cdn-learn.adafruit.com/assets/assets/000/069/911/medium640/makecode_strip-mark.jpg?1548388330)

![makecode_strip-mark-cut.jpg](https://cdn-learn.adafruit.com/assets/assets/000/069/912/medium640/makecode_strip-mark-cut.jpg?1548388410)

![makecode_strip-mounted.jpg](https://cdn-learn.adafruit.com/assets/assets/000/069/913/medium640/makecode_strip-mounted.jpg?1548388449)

## Handle Build

&nbsp;

The handle can be made with a paper towel rolls or make your own with cereal boxes or chipboard. We can make a beefy handle with&nbsp; [.7mm thick chipboard](https://www.amazon.com/gp/product/B0127YHXS8). We simple rolled the chipboard over the battery pack to get our fit and then hot glued the chipboard into it's shape.&nbsp;

&nbsp;

## Pommel&nbsp;

&nbsp;

The pommel will need to be constructed with [chipboard](https://www.amazon.com/gp/product/B0127YHXS8). Roll the chipboard around the Circuit Playground Express to get a tight fitting and then glue the chipboard to keep its shape.

&nbsp;

Allow the handle and pommel to fully dry before inserting the CPX and battery pack.

&nbsp;

## Mount CPX + Battery pack

&nbsp;

The Circuit Playground Express press fits in to the pommel. Now we can pass the NeoPixel Strip through the handle.

&nbsp;

Now we can join the pommel and handle together. The battery pack will press fit into the handle.&nbsp;

&nbsp;

![makecode_handle-parts.jpg](https://cdn-learn.adafruit.com/assets/assets/000/069/914/medium640/makecode_handle-parts.jpg?1548388725)

![makecode_strip-connection.jpg](https://cdn-learn.adafruit.com/assets/assets/000/069/915/medium640/makecode_strip-connection.jpg?1548388809)

![makecode_pumel-cpx-mounted.jpg](https://cdn-learn.adafruit.com/assets/assets/000/069/916/medium640/makecode_pumel-cpx-mounted.jpg?1548388858)

![makecode_handle-strip-threaded.jpg](https://cdn-learn.adafruit.com/assets/assets/000/069/917/medium640/makecode_handle-strip-threaded.jpg?1548388892)

## Pommel Stopper&nbsp;

&nbsp;

We added small drops of hot glue to the end on the pommel. This will prevent the Circuit Playground Express from pushing through the pommel and will allow the Gem at the end to mount in place.

![makecode_pumel-stopper.jpg](https://cdn-learn.adafruit.com/assets/assets/000/069/929/medium640/makecode_pumel-stopper.jpg?1548391487)

## Assemble Blade Shims

&nbsp;

Next up is adding padding to the side of the handle to press fit the blade into place. We'll use small pieces of scrap foam.

&nbsp;

Cut&nbsp;(3) 33mmx45 and&nbsp;(3) 22x47mm long. Place the blade inside of the handle and arrange the shims close to the edge of the handle.

&nbsp;

Once all of the shims are in place we'll carefully apply glue to just the top parts of the shims.

&nbsp;

Be careful NOT to glue the blade parts to the shim!&nbsp;

&nbsp;

&nbsp;

![makecode_blade-strip-mount.jpg](https://cdn-learn.adafruit.com/assets/assets/000/069/918/medium640/makecode_blade-strip-mount.jpg?1548388996)

![makecode_shim-insert.jpg](https://cdn-learn.adafruit.com/assets/assets/000/069/919/medium640/makecode_shim-insert.jpg?1548390042)

![makecode_shims-glue.jpg](https://cdn-learn.adafruit.com/assets/assets/000/069/920/medium640/makecode_shims-glue.jpg?1548390815)

![makecode_shim-fitted.jpg](https://cdn-learn.adafruit.com/assets/assets/000/069/921/medium640/makecode_shim-fitted.jpg?1548390499)

## Glue Blade Decals&nbsp;

&nbsp;

After the glue dries on the shims, we can remove the blades and glue&nbsp; our deals.&nbsp;

![makecode_decal.jpg](https://cdn-learn.adafruit.com/assets/assets/000/069/928/medium640/makecode_decal.jpg?1548391659)

## Pommel Details

&nbsp;

Print and cut the pattern for the pommel details.&nbsp;We used colored card stock and tape to hold the rolled shapes.

&nbsp;

Place each cut out around the pommel to get its shape and then use tape to secure the roll.

&nbsp;

We can add hot glue inside the pommel, were each part meets, to secure the rolls in place.&nbsp; &nbsp;

![makecode_pommel-details-rolled.jpg](https://cdn-learn.adafruit.com/assets/assets/000/069/922/medium640/makecode_pommel-details-rolled.jpg?1548390667)

![makecode_pommel-details-assembled.jpg](https://cdn-learn.adafruit.com/assets/assets/000/069/923/medium640/makecode_pommel-details-assembled.jpg?1548390794)

## Pommel Gem Assemble

&nbsp;

Last up is the Gem on the end of the pommel. Print, cut and assemble the gem out of scrapes of foam. Once assembled, pass it through the pommel to the end as shown.

&nbsp;

With our gem attach and details glued on we can finish up by press fitting the assembled pommel into the handle!

&nbsp;

Add all the additional details you want and share your creations with the universe!

We hope you have fun building, crafting, and making your own props. You can make cool stuff to sharpen your skills, just don’t give up!

![makecode_pommel-gem-cuts.jpg](https://cdn-learn.adafruit.com/assets/assets/000/069/924/medium640/makecode_pommel-gem-cuts.jpg?1548391188)

![makecode_pommel-gem-assembled.jpg](https://cdn-learn.adafruit.com/assets/assets/000/069/925/medium640/makecode_pommel-gem-assembled.jpg?1548391227)

![makecode_pommel-gem-assembly-fit.jpg](https://cdn-learn.adafruit.com/assets/assets/000/069/926/medium640/makecode_pommel-gem-assembly-fit.jpg?1548391285)

![makecode_pommel-gem-handle-fitting.jpg](https://cdn-learn.adafruit.com/assets/assets/000/069/927/medium640/makecode_pommel-gem-handle-fitting.jpg?1548391238)

![](https://cdn-learn.adafruit.com/assets/assets/000/069/930/medium800/makecode_complete.jpg?1548391144)


## 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)
### 3 x AAA Battery Holder with On/Off Switch and 2-Pin JST

[3 x AAA Battery Holder with On/Off Switch and 2-Pin JST](https://www.adafruit.com/product/727)
This battery holder connects 3 AAA batteries together in series for powering all kinds of projects. We spec'd these out because the box is slim, and 3 AAA's add up to about 3.3-4.5V, a very similar range to Lithium Ion/polymer (Li-Ion) batteries and have an on-off switch. That makes...

In Stock
[Buy Now](https://www.adafruit.com/product/727)
[Related Guides to the Product](https://learn.adafruit.com/products/727/guides)
### Adafruit NeoPixel LED Strip w/ Alligator Clips - 60 LED/m

[Adafruit NeoPixel LED Strip w/ Alligator Clips - 60 LED/m](https://www.adafruit.com/product/3811)
Adding glowy color to your projects has never been easier: no more soldering or stripping wires, clip 'em on and glow! This **Adafruit NeoPixel LED Strip with Alligator Clips** has **30 total LEDs** in a **"60 LED per meter" spacing** , and...

In Stock
[Buy Now](https://www.adafruit.com/product/3811)
[Related Guides to the Product](https://learn.adafruit.com/products/3811/guides)
### Short Wire Alligator Clip Test Lead (set of 12)

[Short Wire Alligator Clip Test Lead (set of 12)](https://www.adafruit.com/product/1592)
Connect this to that without soldering using these handy mini alligator clip test leads. Approximately 4.5" overall cables with alligator clip on each end, color coded. You get 12 pieces in 6 colors. Strong and grippy, these always come in handy! We often use these in conjunction with a...

In Stock
[Buy Now](https://www.adafruit.com/product/1592)
[Related Guides to the Product](https://learn.adafruit.com/products/1592/guides)
### Adafruit + Cartoon Network Cosplay Basics Kit

[Adafruit + Cartoon Network Cosplay Basics Kit](https://www.adafruit.com/product/4358)
Are you interested in making cosplay and Halloween projects&nbsp;with a Circuit Playground Express,&nbsp;but overwhelmed with what to buy? Better yet, do you love Cartoon Network characters and shows?

Here's a intermediary pack to get started, no matter your skill level.&nbsp;This...

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/4358)
[Related Guides to the Product](https://learn.adafruit.com/products/4358/guides)
### Adafruit + Cartoon Network Cosplay "The Works" Kit

[Adafruit + Cartoon Network Cosplay "The Works" Kit](https://www.adafruit.com/product/4359)
Are you a super Cartoon Network fan and interested in making cosplay and Halloween projects&nbsp;with a Circuit Playground Express,&nbsp;but overwhelmed with what to buy?&nbsp;

Here's a huge kit to get started, no matter your skill level.&nbsp;This kit includes&nbsp;beautiful and...

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

## Related Guides

- [Adafruit Circuit Playground Express](https://learn.adafruit.com/adafruit-circuit-playground-express.md)
- [Crickit Powered Mini Chair Swing Ride!](https://learn.adafruit.com/mini-chair-swing-ride.md)
- [LEGO Head Lamp with Audio](https://learn.adafruit.com/lego-head-lamp-with-audio.md)
- [Cartoon Network MakeCode: Garnet's Gauntlets from Steven Universe](https://learn.adafruit.com/cartoon-network-makecode-garnets-gauntlets-from-steven-universe.md)
- [Circuit Playground or Hallowing Jack-o'-Lantern](https://learn.adafruit.com/circuit-playground-jack-o-lantern.md)
- [Easy Sparkle Pocket T-Shirt](https://learn.adafruit.com/easy-sparkle-pocket-t-shirt.md)
- [CircuitPython Powered AT Hand-Raiser](https://learn.adafruit.com/at-hand-raiser.md)
- [Make It Change: Potentiometers](https://learn.adafruit.com/make-it-change-potentiometers.md)
- [New Year Countdown Clock with Circuit Playground Express](https://learn.adafruit.com/new-year-countdown-clock-with-circuit-playground-express.md)
- [Affordable HAL 9000 Replica](https://learn.adafruit.com/hal-9000-replica.md)
- [CPX Mystery Dreidel](https://learn.adafruit.com/cpx-mystery-dreidel.md)
- [Circuit Playground Hot Potato](https://learn.adafruit.com/circuit-playground-hot-potato.md)
- [Chatty Light-Up Circuit Playground Express Mask](https://learn.adafruit.com/chatty-light-up-cpx-mask.md)
- [CircuitPython Basics: Analog Inputs & Outputs](https://learn.adafruit.com/circuitpython-basics-analog-inputs-and-outputs.md)
- [How to Program SAMD Bootloaders](https://learn.adafruit.com/how-to-program-samd-bootloaders.md)
- [Using WebUSB with Arduino and TinyUSB](https://learn.adafruit.com/using-webusb-with-arduino-and-tinyusb.md)
