# IRIS LED and Prop Guards

## Overview

http://www.youtube.com/watch?v=DpZGDTNEA8I

![](https://cdn-learn.adafruit.com/assets/assets/000/017/446/medium800/light_hero-bg.jpg?1402930813)

## UFO Drones
This summer light up the night sky and fly safe with your drone. In this project, we'll show you how you can upgrade the IRIS quad copper with LED NeoPixel rings and 3d printed prop guards. These parts provide extra protection to your propellers and are extremely light weight.  
http://www.youtube.com/watch?v=DpZGDTNEA8I

## What do I need to know?
If you've soldered a battery or wired up your own drone, you'll be surprised just how easy this project is! If your just starting out, here's a few guides to help you get started. ![](https://cdn-learn.adafruit.com/assets/assets/000/017/477/medium800/light_hero2-looping.jpg?1403011744)

## Prerequisite Guides

- [Introducing Trinket](https://learn.adafruit.com/introducing-trinket)
- [NeoPixel UberGuide](https://learn.adafruit.com/adafruit-neopixel-uberguide "Link: https://learn.adafruit.com/adafruit-neopixel-uberguide")
- [Collin's Lab: Soldering](https://learn.adafruit.com/collins-lab-soldering "Link: https://learn.adafruit.com/collins-lab-soldering")

You'll need a few tools and parts to get this project lit up.

## Parts

- 4 [16xNeoPixel Rings](https://www.adafruit.com/product/1463)
- 1 [Trinket 5V micro-controller](https://www.adafruit.com/product/1501 "Link: https://www.adafruit.com/product/1501")
- 1 [1200mAh Lithium Polymer Battery](https://www.adafruit.com/product/258 "Link: https://www.adafruit.com/product/258")
- 1 [PowerBoost 500](https://www.adafruit.com/products/1903 "Link: https://www.adafruit.com/products/1903")
- 1 [IRIS autonomous multicopter](https://www.adafruit.com/product/1546)

## Tools & Supplies

- 1 [Wire Wrap Spool](https://www.adafruit.com/product/1446 "Link: https://www.adafruit.com/product/1446") (3 separate colors are best!)
- 1 [Slide Switch](https://www.adafruit.com/product/805 "Link: https://www.adafruit.com/product/805")
- 2 [JST Extension Cable](https://www.adafruit.com/product/1131 "Link: https://www.adafruit.com/product/1131")
- [Soldering Iron](https://www.adafruit.com/product/1204 "Link: https://www.adafruit.com/product/1204")
- [Solder](https://www.adafruit.com/products/734 "Link: https://www.adafruit.com/products/734")
- [Heat Shrink Pack](https://www.adafruit.com/product/344)

# IRIS LED and Prop Guards

## 3D Printing

[Download STLs](http://www.123dapp.com/project/IRIS%20UFO%20and%20Prop%20Guards/2481927)
The tall legs and propeller guards are printed in high impact strength PET material to provide support. You can get a spool of T-Glaze filament from your favorite filament supplier.   
  
TGLAZE 50c (heated bed) /230c extruder (40 extrude /50 travel speeds)  
or 60c (heated bed) / 235c extruder (60 extrude /70 travel speeds)  
  
PET+ 270c (50/60 speeds)

![](https://cdn-learn.adafruit.com/assets/assets/000/017/476/medium800/light_pet-spools.jpg?1402972588)

 **iris-prop-guard.stl**  
The prop guard needs a minimum print build volume of 250mm x 150mm x 100mm. No raft or support needed. Fits IRIS classic.

**iris+prop-guard-half-left.stl** and&nbsp; **iris+prop-guard-half-right.stl**  
Updated files for IRIS+. Guard must be printed in two parts to fit on most build platforms since the propellers are larger.

**iris-box.stl**  
The box is designed to fit the 1200mAh battery, trinket, powerboost 500 and slide switch. No raft or support needed.   
  
**iris-cover.stl**  
This part is the cover to the enclosure box. No raft or support needed.   
  
**iris-ring-cap.stl**  
This part should be printed in translucent filament material to protect and diffuse the LED light from the NeoPixel rings.  
  
**iris-ring-clip.stl**  
This is the mount that clips onto the arm of the IRIS. It needs support material to print the overhanging parts.  
  
**iris-ring-holder.stl**  
This part is designed to house the 16x NeoPixel Ring. No raft or support needed.

[Download Tall Legs &amp; Arm Mount](http://www.thingiverse.com/thing:189674)
You can download the tall legs and arm mount for IRIS from thingiverse designed by Brendan22

# IRIS LED and Prop Guards

## Circuit Diagram

![](https://cdn-learn.adafruit.com/assets/assets/000/017/540/medium800/light_circuit-diagram.png?1403120417)

## Circuit Diagram
The illustration is intended to be used only as a reference. The image above outlines each component and wired connections. The Trinket, Powerboost 500, 1200mAh lipo battery and switch slide will be housed inside the **iris-box.stl** part. ## Prepping the Components
Before assembling 3D printed parts, you'll need to prepare the circuit. If this is your first project using NeoPixels and Arduino micro-controllers, it's a good idea to prototype your circuit with a breadboard. ## Slide Switch Adapter
Shorten a JST extension cable to about 10mm long by cutting the positive and negative cables with wire cutters. Use wire stripers to strip the ends of the positive and negative wires. Apply a bit of rosin to the stripped ends and tin the tips of the wires. Add a piece of shrink tubing to the positive wire and solder them together by holding them in place with a third-helping-hand.  
![](https://cdn-learn.adafruit.com/assets/assets/000/017/487/medium800/light_trinket-back.jpg?1403051895)

## Trinket 5V
You will need to solder a female JST connection cable to the positive and negative power pads on the back of the PCB. This will allow you to plug in the male JST cable from the PowerBoost 500 5V out to the Trinket.  
  
The following lists the pin outs for connecting the 5V Trinket to the 16x NeoPixel ring.  
  

> **Trinket #0** to **NeoRing**  **IN**  
> **Trinket GND** to **NeoRing GND**  
> **Trinket BAT+** to **NeoRing PWR**

![](https://cdn-learn.adafruit.com/assets/assets/000/017/538/medium800/light_powerboost-in-box.jpg?1403118946)

## PowerBoost 500
Check out the [PowerBoost introduction guide](https://learn.adafruit.com/adafruit-powerboost) for more information on this module. In this circuit, you simply need to solder a male JST connection cable to the **GND** and **5V** pins and connect that to the Trinket. The slide switch adapter will connect to the female EN (+) and GND (-) port on the PowerBoost 500. ## NeoPixel Ring Chain
The four NeoPixel rings will be connected in a chain that will allow power, ground and data signal to distribute between them.   
Each NeoPixel ring will need to share power and ground connections. The data pins are chained by connecting the first ring's **OUT** pin to the **IN** pin of the proceeding ring. You will need to measure the lengths of each wire so that they are long enough to chain together.

## Powering 64 NeoPixel LEDs
In order to power all 4 of the 16x NeoPixel rings, we suggest using a Powerboost 500 module to increase the voltage of the 1200mAh lithium polymer battery from 3.7v to 5v. This will give better color over the long wires and high current draw  
# IRIS LED and Prop Guards

## Code

## Setting up Arduino IDE
You'll need the Adafruit Arduino IDE and the special config for using the Trinket. Follow the [introduction to Trinket](https://learn.adafruit.com/introducing-trinket) guide for a full tutorial. Once your Arduino IDE is setup for the 5V Trinket, create a new sketch. Paste in the example code. Goto file menu tools \> **Board** \> **Adafruit Trinket 8Mhz**. Then **Tools** \> **Programmer** \> **USBtinyISP**. Plug in a USB mini cable connecting your computer to the Trinket. Wait for the red LED to blink and get the upload code button.

## Arduino Sketch
Use the code below to make the NeoPixel Ring LED's animate between two patterns. A spinning glow and a random spark effect. ```auto
// Low power NeoPixel goggles example.  Makes a nice blinky display
// with just a few LEDs on at any time...uses MUCH less juice than
// rainbow display!

#include &lt;Adafruit_NeoPixel.h&gt;

#define PIN 0

Adafruit_NeoPixel pixels = Adafruit_NeoPixel(64, PIN);

uint8_t  mode   = 1, // Current animation effect
         offset = 0; // Position of spinny eyes
  uint32_t color  = 0x00ffe6; // Start red
uint32_t prevTime;

void setup() {
  pixels.begin();
  pixels.setBrightness(255); // 1/3 brightness
  prevTime = millis();
}

void loop() {
  uint8_t  i;
  uint32_t t;

  switch(mode) {

   case 0: // Random sparks - just one LED on at a time!
    i = random(64);
    pixels.setPixelColor(i, color);
    pixels.show();
    delay(10);
    pixels.setPixelColor(i, 64);
    break;
 
   case 1: // Spinny wheels (8 LEDs on at a time)
    for(i=0; i&lt;64; i++) {
      uint32_t c = 0;
      if(((offset + i) &amp; 7) &lt; 4) c = color; // 4 pixels on...
      pixels.setPixelColor(   i, c); // First eye
      pixels.setPixelColor(32-i, c); // Second eye (flipped)
    }
    pixels.show();
    offset++;
    delay(40);
    break;
  }

  t = millis();
  if((t - prevTime) &gt; 8000) {      // Every 8 seconds...
    mode++;                        // Next mode
    if(mode &gt; 1) {                 // End of modes?
      mode = 0;                    // Start modes over
      color &gt;&gt;= 0  ;                 // Next color R-&gt;G-&gt;B
      if(!color) color = 0x00ffe6; // Reset to red
    }
    for(i=0; i&lt;16; i++) pixels.setPixelColor(i, 0);
    prevTime = t;
  }
}
```

# IRIS LED and Prop Guards

## Assembly

![](https://cdn-learn.adafruit.com/assets/assets/000/017/481/medium800/light_remove-support.jpg?1403030422)

## Prep 3D Printed Parts
Start by using [flat pliers](https://www.adafruit.com/product/1368) to remove the support material from the **iris-box.stl** enclosure. Grip onto a chuck of material, twist and pull off all the supports underneath the slide switch clips, usb holes, and all four screw mounts.  
![](https://cdn-learn.adafruit.com/assets/assets/000/017/490/medium800/light_slide-switch-insert.jpg?1403052302)

Carefully insert the slide switch adapter side-ways into the opening from inside the enclosure.

![](https://cdn-learn.adafruit.com/assets/assets/000/017/496/medium800/light_trinket-wired.jpg?1403058770)

## Solder Wires to Trinket
Position the Trinket inside the enclosure and align the enclosure over the bottom of the IRIS. Measure and cut three wires that will be needed to connect the first NeoPixel ring to the Trinket. Use a panavise jr. to assist holding the Trinket in place while your solder. ![](https://cdn-learn.adafruit.com/assets/assets/000/017/497/medium800/light_trinket-box-wires.jpg?1403058987)

## Fit Wires Inside Enclosure
Carefully insert the three wires through the slit and hole, on the side of the enclosure. ![](https://cdn-learn.adafruit.com/assets/assets/000/017/482/medium800/light_trinket-box-align.jpg?1403030464)

## Mount Trinket to enclosure
Remove the support material around the slide switch and USB opening. Align the USB port on the Trinket to the USB port hole on the enclosure and use two 2.9mm (#4 x 3/8') plat phillips screws to secure it to the enclosure. ![](https://cdn-learn.adafruit.com/assets/assets/000/017/498/medium800/light_trinket-box-wires2.jpg?1403059192)

Make sure to tightly fasten the screw so that its flush with the outside of the enclosure box.

![](https://cdn-learn.adafruit.com/assets/assets/000/017/478/medium800/light_box-screw.jpg?1403012917)

## Mount Enclosure to IRIS
Position the enclosure on to the bottom of IRIS and line up the mounting holes near the battery door. Use two 3.4mm(#6-32 x 1/2') flat phillips screws with nut to attach the box to the body.  
![](https://cdn-learn.adafruit.com/assets/assets/000/017/471/medium800/light_powerboost-in-box.jpg?1402972353)

## Install Power Circuit
Insert the 1200mAh lithium polymer battery into the enclosure with the corners fitting under the tabs and plug it into the slide switch adapter. ![](https://cdn-learn.adafruit.com/assets/assets/000/017/493/medium800/light_circuits-group-in-box-wired.jpg?1403052860)

Place the PowerBoost 500 on top of the battery and connect it to the Slide Switch and Trinket.

![](https://cdn-learn.adafruit.com/assets/assets/000/017/472/medium800/light_box-comps.jpg?1402972374)

## Sealing Enclosure
Adjust the wires and components inside the enclosure, close and snap shut the enclosure. Use 4 (#4 x 3/8') phillips screws to securely close the **iris-cover.stl** to the **iris-box.stl** part. ![](https://cdn-learn.adafruit.com/assets/assets/000/017/458/medium800/light_prop-clip0.jpg?1402971742)

## Install Mount Adapters
Attach **iris-ring-clip.stl** by fitting it through the bottom of each leg. ![](https://cdn-learn.adafruit.com/assets/assets/000/017/459/medium800/light_prop-clip1.jpg?1402971761)

Clip the hooks on to the top of the prop arms by angling the clips up higher.

![](https://cdn-learn.adafruit.com/assets/assets/000/017/460/medium800/light_prop-clip.jpg?1402971787)

Once both hooks are snapped into the prop arm, push the front part of the ring clip on to the logo cutout. It should click into place.

![](https://cdn-learn.adafruit.com/assets/assets/000/017/461/medium800/light_prop-clip-attached.jpg?1402971841)

Install the **iris-ring-holder.stl** part on to the bottom of the **iris-ring-clip.stl** part. Use the #6-32x1/2' flat phillips screws with nuts to join the two mounts together and add a nut to secure the mount.

![](https://cdn-learn.adafruit.com/assets/assets/000/017/495/medium800/light_neopixel-ring-wiring.jpg?1403055953)

## Wiring First NeoPixel Ring
Choose an arm you'd wish to house the first NeoPixel ring and measure the lengths of wire that will be needed to reach the enclosure box. Solder three wires to the **IN** , **GND** and **PWR** pin on the NeoPixel ring. These three wires need to be soldered to the on the **D0** , **GND** and **5V** pins on the 5V Trinket. Use a panovise jr. to hold the NeoPixel ring in place while you solder. ![](https://cdn-learn.adafruit.com/assets/assets/000/017/462/medium800/light_wire-clips.jpg?1402971861)

## Hide the Wires
Pop off the clips holding the wires on the bottom of each arm and tuck the wires from the NeoPixel ring in the cavity and secure them with the clips. A flat head screw driver can assist with removing the clips. ![](https://cdn-learn.adafruit.com/assets/assets/000/017/464/medium800/light_ring-wires-back.jpg?1402971926)

## Fit NeoPixel Wiring into Mount
Slide the wires through the slit of the opening in the **iris-ring-holder.stl** and position the 3 wires in so it doesn't kink when you press the NeoPixel ring into the part. ![](https://cdn-learn.adafruit.com/assets/assets/000/017/463/medium800/light_ring-holder.jpg?1402971911)

## Install NeoPixel Ring into Mount
Place the NeoPixel Ring inside the **iris-ring-holder.stl.** Make sure all of the wires are tucked inside the holder carefully, try not to bend or kink!![](https://cdn-learn.adafruit.com/assets/assets/000/017/469/medium800/light_attach-leg-mount.jpg?1402972151)

## Install Tall Legs
Make space for the legs near the ends of the arms by moving the wire clips after the Leg mounts. ![](https://cdn-learn.adafruit.com/assets/assets/000/017/465/medium800/light_prop-ring-sandwitch.jpg?1402971977)

## Install Prop Guards
Place the prop guards between **iris-ring-clip.stl** and **iris-ring-holder.stl** ![](https://cdn-learn.adafruit.com/assets/assets/000/017/466/medium800/light_prop-screw.jpg?1402972103)

## Secure Mounts
Use the 3.4mm screws to secure all three pieces together. ![](https://cdn-learn.adafruit.com/assets/assets/000/017/473/medium800/light_prop-nut.jpg?1402972435)

Tighten the nut to lock all three parts into place.

![](https://cdn-learn.adafruit.com/assets/assets/000/017/474/medium800/light_prop-diffuser.jpg?1402972444)

## Install LED Diffuser
Slip the diffuser cover over the top of the rings and snap it on to **iris-ring-holder.stl** ![](https://cdn-learn.adafruit.com/assets/assets/000/017/475/medium800/light_tape-wires.jpg?1402972487)

## Conceal Wiring and Tidy Up
Use a couple pieces of electrical tape to secure and hide all to the wires. ![](https://cdn-learn.adafruit.com/assets/assets/000/017/499/medium800thumb/light_skyloop.jpg?1448311764)


## Featured Products

### Type A Machines Series 1 Pro 3D Printer

[Type A Machines Series 1 Pro 3D Printer](https://www.adafruit.com/product/2412)
Built to last&nbsp;and better than ever. The **Series&nbsp;1&nbsp;Pro 3D** printers&nbsp;from Type A Machines offer&nbsp;durability, modularity and one of the largest build volumes in their&nbsp;class.

Featuring a streamlined aluminum and acrylic body, a glass build surface...

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/2412)
[Related Guides to the Product](https://learn.adafruit.com/products/2412/guides)
### 3DR Iris+ — Autonomous multicopter

[3DR Iris+ — Autonomous multicopter](https://www.adafruit.com/product/2199)
The new consumer-grade **3DR Iris+** is an all-in-one autonomous aerial vehicle with a compact and durable design. Stylish and powerful, Iris runs on the innovative [Pixhawk autopilot system](http://store.3drobotics.com/products/3dr-pixhawk)--the newest in advanced autopilot...

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/2199)
[Related Guides to the Product](https://learn.adafruit.com/products/2199/guides)
### PrintrBot Metal PLUS 3D Printer - Black Assembled

[PrintrBot Metal PLUS 3D Printer - Black Assembled](https://www.adafruit.com/product/2302)
New from Printrbot, the Metal Plus is a rock solid, all metal, fully-assembled beast of a printer!

The new **Printrbot Metal Plus w/ Heated Bed** is constructed of powder coated metal&nbsp;and machined aluminum with open platform for fabricating parts up to 10 x 10 x 10...

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/2302)
[Related Guides to the Product](https://learn.adafruit.com/products/2302/guides)
### PLA Filament for 3D Printers - 1.75mm Natural Translucent - 1KG

[PLA Filament for 3D Printers - 1.75mm Natural Translucent - 1KG](https://www.adafruit.com/product/2451)
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...

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/2451)
[Related Guides to the Product](https://learn.adafruit.com/products/2451/guides)
### NeoPixel Ring - 16 x 5050 RGB LED with Integrated Drivers

[NeoPixel Ring - 16 x 5050 RGB LED with Integrated Drivers](https://www.adafruit.com/product/1463)
Round and round and round they go! 16 ultra bright smart LED NeoPixels are arranged in a circle with 1.75" (44.5mm) outer diameter. The rings are 'chainable' - connect the output pin of one to the input pin of another. Use only one microcontroller pin to control as many as you can...

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

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

In Stock
[Buy Now](https://www.adafruit.com/product/258)
[Related Guides to the Product](https://learn.adafruit.com/products/258/guides)
### Adafruit Trinket - Mini Microcontroller - 5V Logic

[Adafruit Trinket - Mini Microcontroller - 5V Logic](https://www.adafruit.com/product/1501)
 **Deprecation Warning: The Trinket bit-bang USB technique it uses doesn't work as well as it did in 2014, many modern computers won't work well. So while we still carry the Trinket so that people can maintain some older projects, we no longer recommend it.** <a...></a...>

Out of Stock
[Buy Now](https://www.adafruit.com/product/1501)
[Related Guides to the Product](https://learn.adafruit.com/products/1501/guides)
### PowerBoost 500 Basic - 5V USB Boost @ 500mA from 1.8V+

[PowerBoost 500 Basic - 5V USB Boost @ 500mA from 1.8V+](https://www.adafruit.com/product/1903)
PowerBoost is the perfect power supply for your portable project! This little DC/DC boost converter module can run from 1.8V batteries or higher, and convert that voltage to 5.2V DC for running your 5V projects. Like our popular [5V 1A USB wall...](https://www.adafruit.com/product/501)

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

## Related Guides

- [3D Printed LED Fire Horns](https://learn.adafruit.com/3d-printed-led-fire-horns.md)
- [Trinket Powered Analog Meter Clock](https://learn.adafruit.com/trinket-powered-analog-meter-clock.md)
- [Trinket Fake USB Serial](https://learn.adafruit.com/trinket-fake-usb-serial.md)
- [Energy Budgets](https://learn.adafruit.com/energy-budgets.md)
- [Watchmen's Sister Night NeoPixel Goggles](https://learn.adafruit.com/watchmen-sister-night-circuitpython-neopixel-goggles.md)
- [Twin Peaks Light Reactive Picture Frame](https://learn.adafruit.com/twin-peaks-light-reactive-pyportal-picture-frame.md)
- [3D Printed Daft Punk Helmet with Bluetooth ](https://learn.adafruit.com/3d-printed-daft-punk-helmet-with-bluetooth.md)
- [micro:bit Lesson 3. NeoPixels with micro:bit](https://learn.adafruit.com/micro-bit-lesson-3-neopixels-with-micro-bit.md)
- [3D Printed NeoPixel LED Gas Mask](https://learn.adafruit.com/3d-printed-el-wire-laser-neopixel-led-gas-mask.md)
- [Adafruit QT Py Activity Timer and Hydration Reminder](https://learn.adafruit.com/qt-py-activity-timer-and-hydration-reminder.md)
- [NeoPixel LED Cortana Costume](https://learn.adafruit.com/neopixel-led-cortana-costume.md)
- [Green Goblin Pumpkin CPB Ornament](https://learn.adafruit.com/green-goblin-pumpkin-cpb-ornament.md)
- [Trinket Sound-Reactive LED Color Organ](https://learn.adafruit.com/trinket-sound-reactive-led-color-organ.md)
- [3D Printed NeoPixel Ring Hair Dress](https://learn.adafruit.com/neopixel-ring-hair-dress.md)
- [Trinket Temperature & Humidity LCD Display](https://learn.adafruit.com/trinket-temperature-humidity-lcd-display.md)
