# Halo Energy Sword

## Overview

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

![](https://cdn-learn.adafruit.com/assets/assets/000/030/168/medium800/led_strips_hero-spiralB.jpg?1453857106)

## NeoPixel Sword

In this project we’re making a 3D Printed Energy Sword from the Halo video game series.&nbsp;Inside the blades are NeoPixel LEDs which are connected to an Adafruit Feather BLE 32u4 micro-controller.

A 2000mAh lipo battery will provide several hours of energy and can be recharged over USB. The blade is 86cm (34in) tall and the whole sword weighs just under 1 pound.

You can connect to the Adafruit Feather through Bluetooth. The Adafruit Bluefruit LE Connect app for iOS or Android lets you change the animation or color of the LEDs.

![](https://cdn-learn.adafruit.com/assets/assets/000/030/181/medium800/led_strips_hero-circularB.jpg?1453913739)

## 3D Printing & Cosplay

This project combines 3D printing and electronics to make a cosplay prop that's massive, yet lightweight and really bright. The sword is cut up into several pieces that&nbsp;are optmized for&nbsp;3D printing. The handle and blades are thin and shelled to minimize the amount of material. The circuit is mounted to the inside of the handle, while the LED strips are nestled inside the dual blades. The USB port from the micro-controller is accessible for repogramming and recharging the battery, so you don't&nbsp;have to open it up. &nbsp;&nbsp;

![](https://cdn-learn.adafruit.com/assets/assets/000/030/140/medium800/led_strips_parts.jpg?1453849160)

## Adafruit Parts

- [Adafruit Feather 32u4 Bluefruit LE](https://www.adafruit.com/product/2829)
- [NeoPixel Strips 60 or 144](https://www.adafruit.com/category/168)
- [JST Extension](https://www.adafruit.com/products/1131)
- [2000mAh Battery](https://www.adafruit.com/products/2011)
- [Slide Switch](https://www.adafruit.com/products/805)

## Tools and Supplies

- [3D Printer](https://www.adafruit.com/category/128)&nbsp;+&nbsp;[Filament](https://www.adafruit.com/products/2080)
- [Soldering Iron](https://www.adafruit.com/categories/84)&nbsp;+&nbsp;[Solder](https://www.adafruit.com/categories/84)
- [26AWG](https://www.adafruit.com/products/1970)&nbsp;Wire
- [Helping Third Hands](https://www.adafruit.com/products/291)&nbsp;/&nbsp;[Panavise](https://www.adafruit.com/products/151)
- [Heat Shrink](https://www.adafruit.com/products/1649)
- E6000 Glue / Mounting Tack
- [Wire Stripper](https://www.adafruit.com/products/527)&nbsp;/&nbsp;[Cutters](https://www.adafruit.com/products/152)
- Filing Tool / Hobby Knife
- [5-3/4 Inch x1/4 Inch x3/32 Inch Wood Craft Sticks](http://www.amazon.com/dp/B0033F2HPU/ref=cm_sw_su_dp)

![](https://cdn-learn.adafruit.com/assets/assets/000/030/180/medium800/led_strips_hero-backB.jpg?1453913354)

# Halo Energy Sword

## Circuit Diagram

## Electronics

Follow the two circuit diagrams below and reference the connections for wiring the circuit.

![](https://cdn-learn.adafruit.com/assets/assets/000/030/170/medium800/led_strips_energy-sword-circuit.jpg?1453860047)

## Adafruit Feather 32u4 Bluefruit LE circuit

The&nbsp;NeoPixel strips are&nbsp;cut to&nbsp;fit the length of each blade.

The strips share&nbsp; **Data** , **Power** and **Ground** connections via a Y-cable.

The NeoPixel's **data input** will connect to **Pin #6**.

5V power from the NeoPixel strip will connect to the **BAT** pin.

The **ground pin** from the NeoPixel strip will connect to the **ground** pin.

A slide switch will splice in between the positive red wire of a&nbsp;JST extension cable. The female connector plugs into the male connector of the lipo battery while the male connector plugs into the JST connector of the&nbsp;Adafruit Feather 32u4 Bluefruit LE.

## Lithium Battery Charger

Use an [Adafruit LiPoly charger](https://www.adafruit.com/product/4410) to recharge the 2000mAh battery. Disconnect the battery from the Feather and connect it to the [Adafruit LiPoly charger](https://www.adafruit.com/product/4410). Use a [5V 1A USB power supply](https://www.adafruit.com/product/501)to charge the Adafruit LiPoly charger.

&nbsp;

# Halo Energy Sword

## 3D Printing

## 3D Printed Pieces

The Energy Sword&nbsp;is split into twenty&nbsp;main pieces. The top and bottom end of the handle&nbsp;parts, the front and back of the main handle and the eight pieces of the blades.&nbsp;

The blades are split into four main pieces for the front and back. Each side&nbsp;of the blades are different and snap fit together. The parts will need to be glued together using adhesives.

The top and bottom&nbsp;handle&nbsp;pieces feature pockets that allow wooden craft sticks to be inserted into them - This aligns the parts together and holds them in place while the glue sets.

![](https://cdn-learn.adafruit.com/assets/assets/000/030/169/medium800/led_strips_3d-parts.jpg?1453857137)

[Download the STLs](http://www.thingiverse.com/thing:1296677)
## Gluing&nbsp;blade parts

The blade pieces are glued together with super glue and then reinforced&nbsp;with E6000.

Start by sanding the edges of the blades to ensure they line up&nbsp;flat together. Apply super glue to the one of the edges and then hold both&nbsp;pieces until&nbsp;they hold together. After both side are dry, glue the next part of the blade together until all of the pieces are attached.&nbsp;  
  
Once all of the blades are held together with super glue, apply a generously amount of the E6000 to the inside of blade, were each blade piece meets.&nbsp;  
  
Don't apply E6000 to the walls of the blades, this could&nbsp;prevent the two sides of the blades from snap fitting&nbsp;together.  
  
Allow the E6000 to dry before&nbsp;proceeding.

## Filament Materials

We recommend using PLA material to reduce wraping while 3D printing. The parts&nbsp;can be printed in different types of filament, such as ABS, PET or&nbsp;Nylon.

## Slicer&nbsp;Settings

To slice the parts, we used Simplify3D. We recommend using&nbsp;the settings below or use them as reference. We 3D printed these&nbsp;parts on a&nbsp; **Type A Machines Series 1** 3D printer. If you have Simplify3D, you can download our profiles below.

[Download Printer Profiles](https://github.com/adafruit/printer-profiles)
## Tolerances

The pocket areas of the parts may have tight tolerances. Test the tolerances by inserting a wood craft stick into each pocket. If sticks will not fit into the pockets, you may need to use a craft knife or filing tool to open up the area.

## Customize The Design

The&nbsp;parts where designed in Autodesk Fusion 360. The design has been made public, and available to download in different formats. If&nbsp;you'd like to use a different CAD software package, you are free to import the files and remix them.

[Edit Design](https://a360.co/3wgOKIH)
# Halo Energy Sword

## Code

## Arduino Libraries

To use&nbsp;the Daftpunk&nbsp;BLE&nbsp;sketch you'll want to make sure you're using the [latest version of the Arduino IDE](https://www.arduino.cc/en/Main/Software)&nbsp;(1.6.5 at the time of this writing).

If you're totally new to Arduino take a little time to go through some introductory tutorials like&nbsp;[how to make a LED blink](../../../../adafruit-arduino-lesson-1-blink). &nbsp;This will help you understand how to use the IDE, load a sketch, and upload code.

Next you'll need to make sure the libraries used by the sketch are installed. &nbsp;With the latest Arduino IDE you can use its [library manager](https://www.arduino.cc/en/Guide/Libraries#toc3)&nbsp;to easily install libraries, or check out this [guide on how to manually install a library](../../../../adafruit-all-about-arduino-libraries-install-use/arduino-libraries). &nbsp;You'll want to install the following libraries:

- **Adafruit BluefruitLE&nbsp;nRF51**
- **Adafruit NeoPixel**

Search for the libraries in the library manager and they should be easy to find and install.

## Adafruit AVR Boards

Next, you'll need to install the Adafruit AVR boards package from the Boards Manager. Open the Boards Manager and search for **Adafruit AVR**. This includes all of the boards from Adafruit and will make Arduino compatabile with them. The Daftpunk BLE sketch&nbsp;was tested with **version 1.4.0**.

## Uploading Sketch to Adafruit Feather BLE

This sketch will run the Bluetooth controlled LED program to the NeoPixel strips that are mounted to the front of the visor.

To load the&nbsp;sketch make sure the libraries above are installed, and the Arduino is connected to the computer through a USB cable. &nbsp;Under the **Tools -\> Board** menu make sure the **Adafruit Feather&nbsp;32u4** &nbsp;is selected, and under the **Tools -\> Port** menu the serial port for the Adafruit Feather&nbsp;is selected. &nbsp;

Then press the upload button or click the **Sketch -\> Upload** item to send the code to the Arduino. &nbsp;Woo-hoo the sketch should be running.

[energy_sword_feather_neopixel.zip](https://learn.adafruit.com/system/assets/assets/000/030/175/original/energy_sword_feather_neopixel.zip?1453874881)
## Connect Adafruit BLE Mobile App to Adafruit Feather BLE

Download the Adafruit BLE Connect app for iOS or Android. Under the peripherals list, tap the **connect** button on&nbsp;the Adafruit Bluefruit LE item. Make sure the Feather board is powered on. Select " **Controller**" and choose either **Control Pad** or the **Color Picker**.

- [Adafruit Bluefruit LE Connect for iOS](https://itunes.apple.com/us/app/adafruit-bluefruit-le-connect/id830125974?mt=8)
- [Adafruit Bluefruit LE Connect for Android](https://play.google.com/store/apps/details?id=com.adafruit.bluefruit.le.connect&hl=en)

**Control Pad**

Buttons 1-4 will trigger an animation.

1. larsonScanner
2. color wipe
3. rainbow gradient
4. rainbow cycle

**Color Picker**

Here you can change the brightness or RGB value of the leds.&nbsp;

## Upload and Test Circuit

Once the code is uploaded to the micro-controllers, its a good idea to protoptype the circuit using the diagram in the previous page. Test the NeoPixel Strip to ensure the components are functional. Try out the Adafruit Feather 32u4 Bluefruit LE and run the Adafruit Bluefruit LE Connect iOS/Android app. Play with the controls and use the color picker to change the colors of the NeoPixels.

# Halo Energy Sword

## Assembly

![](https://cdn-learn.adafruit.com/assets/assets/000/030/141/medium800/led_strips_strip-layout.jpg?1453850659)

## Neopixel strip Layout

Lay the Neopixel strip inside of the blade with the LEDs facing towards the center&nbsp;(faceing the cutout&nbsp;of the blade).

![](https://cdn-learn.adafruit.com/assets/assets/000/030/142/medium800/led_strips_strip-cut-to-length-2.jpg?1453850726)

## Measure NeoPixel strip length

A 1 meter long strip should have three NeoPixel left over once you layout the strip inside the blade. Use flush cutters or&nbsp;scissors to cut off the extra NeoPixles.

## Remove silicone cover

To properly&nbsp;fit the strips inside the blade, we'll need to remove the silicone cover by cutting off one of the Neopixels along the copper pads.

![](https://cdn-learn.adafruit.com/assets/assets/000/030/145/medium800/led_strips_strip-tin.jpg?1453851090)

## Tin NeoPixel strip

We'll hold the NeoPixel strip in place&nbsp;using&nbsp;a&nbsp;third helping hand and then tin each pad&nbsp;to prepare it for soldering jumper wires.

## Female jumper wires

Cut and strip short female jumper wires in half, one for each side blade, and solder to the pads on the NeoPixel strips.

![](https://cdn-learn.adafruit.com/assets/assets/000/030/171/medium800/led_strips_strip-tape.jpg?1453872764)

## Mount LED strips

Use&nbsp;adhesives or gaffers tape to secure the strips inside the blade. Make sure the LEDs are face towards to cutout&nbsp;on the blade.

![](https://cdn-learn.adafruit.com/assets/assets/000/030/172/medium800/led_strips_strip-taped.jpg?1453872916)

![](https://cdn-learn.adafruit.com/assets/assets/000/030/174/medium800/led_strips_handle_top_sticks_tac.jpg?1453873334)

## Craft sticks

Measure&nbsp;and cut four craft sticks for each handle end part. If the tolerances are too loose, use a small amount of mounting tac&nbsp;inside the slots.

![](https://cdn-learn.adafruit.com/assets/assets/000/030/147/medium800/led_strips_measrued-wires.jpg?1453851270)

## Measure strip wires

Place the Feather board on the standoffs&nbsp;inside the handle so&nbsp;we can gauge&nbsp;the length from the end of the NeoPixel strip to each pin on the feather board.&nbsp;

![](https://cdn-learn.adafruit.com/assets/assets/000/030/148/medium800/led_strips_y-wries-cut.jpg?1453851343)

## Y-cables

The strips will share pins for data, ground and power. We can share these connections&nbsp;with&nbsp;a small y-cable that will split each connection to share.

![](https://cdn-learn.adafruit.com/assets/assets/000/030/149/medium800/led_strips_y-wires-solder.jpg?1453851424)

## Solder y-cables

Use two third helping hands to hold the wires like shown above and apply solder to the center of the wires to create our y-cable.&nbsp;

![](https://cdn-learn.adafruit.com/assets/assets/000/030/150/medium800/led_strips_shrink-wrape-measure.jpg?1453851496)

## Heat shrink tubing

Measure and cut a piece of heat shrink tubing to&nbsp;insulate each y-cable.

![](https://cdn-learn.adafruit.com/assets/assets/000/030/152/medium800/led_strips_shrink-wrape-heat.jpg?1453851542)

## Heat shrink tubing

Use a lighter or&nbsp;Hot Air to insulate each y-cable.&nbsp;

![](https://cdn-learn.adafruit.com/assets/assets/000/030/153/medium800/led_strips_y-wires-complete.jpg?1453851561)

## Tin y-cables

Prepare each y-cable by tinning all of the ends.

![](https://cdn-learn.adafruit.com/assets/assets/000/030/156/medium800/led_strips_feather-soldered.jpg?1453851702)

## Solder y-cables to feather board

Tin the ground, bat and pin #6 on the feather board according to the circuit diagram.&nbsp;Solder the y-cables to each pin.&nbsp;

![](https://cdn-learn.adafruit.com/assets/assets/000/030/157/medium800/led_strips_feather-wires-taped.jpg?1453851761)

## Wire&nbsp;management

Neatly&nbsp;arrange the wires and hold them in place with a piece of gaffers tape like shown in the picture above.

![](https://cdn-learn.adafruit.com/assets/assets/000/030/155/medium800/led_strips_jumper-wires.jpg?1453851616)

## Male jumper cables

Connecting the wires from the feather board to the strips inside the blade is made easier by using&nbsp;male and female jumper cables.

![](https://cdn-learn.adafruit.com/assets/assets/000/030/151/medium800/led_strips_jumper-connect.jpg?1453851528)

## Tin and solder jumper cables

Use a third helping hand to hold the ends of the y-cables and jumpers while solder them&nbsp;together.&nbsp;

![](https://cdn-learn.adafruit.com/assets/assets/000/030/154/medium800/led_strips_jumper-soldered.jpg?1453851588)

## Jumper heat shrink

Measure a cut heat shrink pieces for each jumper.

![](https://cdn-learn.adafruit.com/assets/assets/000/030/159/medium800/led_strips_feather-mounting.jpg?1453851857)

## Mount feather boarad

Use #4-40 screws to mount the feather board to the stand offs inside the handle.

It's easier to screw the board into the standoffs if you pre tap the feather board mounting holes with the screws first, before mounting the board to the standoffs.&nbsp;

![](https://cdn-learn.adafruit.com/assets/assets/000/030/158/medium800/led_strips_battery-mounted.jpg?1453851838)

## Mount battery

Add&nbsp;a small piece of gaffers tape to the top portion of the&nbsp;2000mAh lipo battery &nbsp;as a&nbsp;strain relief to the power cables.

Slide the lipo battery underneath feather board's standoffs. There should be enough room to securely&nbsp;hold the battery in place.

![](https://cdn-learn.adafruit.com/assets/assets/000/030/160/medium800/led_strips_jst-parts.jpg?1453851910)

## On / Off slide switch

To power the the feather board on and off, we'll build one using a&nbsp;slide switch with a JST extension cable.

![](https://cdn-learn.adafruit.com/assets/assets/000/030/161/medium800/led_strips_jst-soldered.jpg?1453856542)

## Solder JST cables

Shorten the pins on the slide switch with flush cutters. Add heat shrink tubing before soldering each cable to the slide switch.

![](https://cdn-learn.adafruit.com/assets/assets/000/030/162/medium800/led_strips_circuits-mounted.jpg?1453856581)

## Mount slide switch

Add the slide switch inside the handle and arrange the wires&nbsp;so they can connect to the battery.

![](https://cdn-learn.adafruit.com/assets/assets/000/030/163/medium800/led_strips_handle-top-wires.jpg?1453856676)

## Close the handle

Carefully&nbsp;arrange the wires so they are in the wire&nbsp;slots. Snap fit the front part of the handle to the back handle part.

Make sure the wires can easily slide in and out of&nbsp;handle.

![](https://cdn-learn.adafruit.com/assets/assets/000/030/164/medium800/led_strips_handle-top-wiresB.jpg?1453856715)

## Handle&nbsp;ends

String the wires&nbsp;through the handle ends as you fit&nbsp;both parts to the main handle part.

Make sure the wires can easily slide back into the handle.&nbsp;

![](https://cdn-learn.adafruit.com/assets/assets/000/030/165/medium800/led_strips_handle-blade-connections.jpg?1453856736)

## Connect blade to handle

Connect the female jumper wires from strips to&nbsp;the male jumper wire on the feather boaard. Carefully&nbsp;push the wires back into the handle as you insert the wooden sticks into&nbsp;the blade. The blade should fit into&nbsp;the groove on the handle ends.&nbsp;&nbsp;

![](https://cdn-learn.adafruit.com/assets/assets/000/030/166/medium800/led_strips_hot-glue-blades.jpg?1453856806)

## Seal blades

You can use hot glue or E6000 to&nbsp;seal the&nbsp;halves of the blade together. Apply&nbsp;glue to the side of the blades&nbsp;and then&nbsp;hold together unit they bond.

![](https://cdn-learn.adafruit.com/assets/assets/000/030/167/medium800thumb/led_strips_energy-loop.jpg?1453856881)

## Power Up

Allow any adhesives to cure before fliping on the switch and flight off the&nbsp;Covenant!


## Featured Products

### Adafruit Feather 32u4 Bluefruit LE

[Adafruit Feather 32u4 Bluefruit LE](https://www.adafruit.com/product/2829)
Feather is the new development board from Adafruit, and like its namesake it is thin, light, and lets you fly! We designed Feather to be a new standard for portable microcontroller cores.

This is the&nbsp; **Adafruit Feather 32u4 Bluefruit** &nbsp;- our take on an...

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

[Lithium Ion Battery - 3.7V 2000mAh](https://www.adafruit.com/product/2011)
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 2000mAh. If you need a larger (or smaller!) battery,&nbsp;<a...></a...>

Out of Stock
[Buy Now](https://www.adafruit.com/product/2011)
[Related Guides to the Product](https://learn.adafruit.com/products/2011/guides)
### Adafruit NeoPixel Digital RGB LED Strip - White 60 LED

[Adafruit NeoPixel Digital RGB LED Strip - White 60 LED](https://www.adafruit.com/product/1138)
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! You wanted **twice the LEDs**? We got it (well, its 1.875 times as many but that's within a margin of...

In Stock
[Buy Now](https://www.adafruit.com/product/1138)
[Related Guides to the Product](https://learn.adafruit.com/products/1138/guides)
### JST-PH Battery Extension Cable - 500mm

[JST-PH Battery Extension Cable - 500mm](https://www.adafruit.com/product/1131)
By popular demand, we now have a handy extension cord for all of our JST PH-terminated battery packs (such as our LiIon/LiPoly and 3xAAA holders). One end has a JST-PH compatible socket, and the other end has a matching plug. Between the two, 500mm of color coded wire. Handy for wearable...

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

[Silicone Cover Stranded-Core Wire - 26AWG in Various Colors](https://www.adafruit.com/product/1970)
Silicone-sheathing wire is super-flexible and soft, and it's 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...

Out of Stock
[Buy Now](https://www.adafruit.com/product/1970)
[Related Guides to the Product](https://learn.adafruit.com/products/1970/guides)
### Filament for 3D Printers in Various Colors and Types

[Filament for 3D Printers in Various Colors and Types](https://www.adafruit.com/product/2080)
Having a 3D printer without filament is sort of like having a regular printer without paper or ink. &nbsp;And while a lot of printers come with some filament there's a good chance you've been printing up a storm and need something new. &nbsp;That's why we've started carrying a...

Out of Stock
[Buy Now](https://www.adafruit.com/product/2080)
[Related Guides to the Product](https://learn.adafruit.com/products/2080/guides)
### Breadboard-friendly SPDT Slide Switch

[Breadboard-friendly SPDT Slide Switch](https://www.adafruit.com/product/805)
These nice switches are perfect for use with breadboard and perfboard projects. They have 0.1" spacing and snap in nicely into a solderless breadboard. They're easy to switch no matter what size fingers you have, but not so easy that they'll get flipped by accident. Work great as...

In Stock
[Buy Now](https://www.adafruit.com/product/805)
[Related Guides to the Product](https://learn.adafruit.com/products/805/guides)
### Ultimaker 2+ 3D Printer

[Ultimaker 2+ 3D Printer](https://www.adafruit.com/product/2673)
The **Ultimaker 2+** is one of our favorite 3D printers on the market. It's a well-built open-source compact machine with an excellent UX.&nbsp;Every inch of the Ultimaker 2+ is designed to create the most effortless and reliable 3D printing experience ever!&nbsp;<a...></a...>

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

## Related Guides

- [How to Choose a Microcontroller](https://learn.adafruit.com/how-to-choose-a-microcontroller.md)
- [3D Printed Daft Punk Helmet with Bluetooth ](https://learn.adafruit.com/3d-printed-daft-punk-helmet-with-bluetooth.md)
- [Introducing Adafruit Feather](https://learn.adafruit.com/adafruit-feather.md)
- [Jack-o'-LED·trix](https://learn.adafruit.com/jack-o-led-trix.md)
- [Bluetooth Controlled NeoPixel Headphones](https://learn.adafruit.com/bluetooth-controlled-neopixel-headphones.md)
- [Adafruit Feather 32u4 Bluefruit LE](https://learn.adafruit.com/adafruit-feather-32u4-bluefruit-le.md)
- [NeoPixel Matrix Snowflake Sweater](https://learn.adafruit.com/neopixel-matrix-snowflake-sweater.md)
- [3D Printed Case for Adafruit Feather](https://learn.adafruit.com/3d-printed-case-for-adafruit-feather.md)
- [Phone-Activated Talking Dog Collar](https://learn.adafruit.com/phone-activated-talking-dog-collar.md)
- [Bluefruit Controlled Macetech RGB LED Shades](https://learn.adafruit.com/ledshades.md)
- [Festive Feather Holiday Lights](https://learn.adafruit.com/festive-feather-holiday-lights.md)
- [What is Web MIDI & BLE MIDI?](https://learn.adafruit.com/web-ble-midi.md)
- [Bluetooth LE MIDI Controller](https://learn.adafruit.com/bluetooth-le-midi-controller.md)
- [Getting Started with MyoWare Muscle Sensor](https://learn.adafruit.com/getting-started-with-myoware-muscle-sensor.md)
- [Schluff - The Sleep Monitor](https://learn.adafruit.com/schluff-the-oshw-sleep-monitor.md)
