# 3D Printed Camera LED Ring

## Overview

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

![](https://cdn-learn.adafruit.com/assets/assets/000/013/807/medium800/3d_printing_neopixel-ring-case.jpg?1390786881)

## DIY LED Ring Light
Trying to get those pixel perfect macro shots on a budget? Build your own DIY low cost ring of light with a NeoPixel Ring and Trinket, Adafruit tiny arduino micro controller. The color and brightness of the LEDs can be programmed to color or pattern! ![](https://cdn-learn.adafruit.com/assets/assets/000/013/802/medium800/3d_printing_parts.jpg?1390774499)

## Prerequisite Guide:

- [NeoPixel UberGuide](https://learn.adafruit.com/adafruit-neopixel-uberguide "Link: https://learn.adafruit.com/adafruit-neopixel-uberguide")  
- [Introducing Trinket](https://learn.adafruit.com/introducing-trinket "Link: https://learn.adafruit.com/introducing-trinket")

## Parts List:

- [24 NeoPixel Ring](http://www.adafruit.com/products/1586 "Link: http://www.adafruit.com/products/1586")
- [Lithium ion Polymer Battery 500](http://www.adafruit.com/products/1578 "Link: http://www.adafruit.com/products/1578")
- [JST Battery Extension](http://www.adafruit.com/products/1131 "Link: http://www.adafruit.com/products/1131")
- [Adafruit 5V Trinket](http://www.adafruit.com/products/1501)
- [Slide Switch](http://www.adafruit.com/products/805)

## Tools & Supplies

- [Soldering Iron](http://www.adafruit.com/category/8_84)
- [60/40 rosin-core solder](http://www.adafruit.com/products/145)
- [30 gauge wire wrap](http://www.adafruit.com/products/1446 "Link: http://www.adafruit.com/products/1446")
- [Wire Cutter/Strippers](http://www.adafruit.com/products/527 "Link: http://www.adafruit.com/products/527")

  
![](https://cdn-learn.adafruit.com/assets/assets/000/013/806/medium800/3d_printing_eye.jpg?1390786854)

## Photography Lighting
Using the 24x NeoPixel ring as a light ring is a great way to enhance macro-photography. A ring of light provides a spot-light effect, removing shadows caused by the camera getting in front of the subject. In our test shots above the NeoPixel ring projects a ring of light inside the eye. # 3D Printed Camera LED Ring

## 3D Printing

![](https://cdn-learn.adafruit.com/assets/assets/000/013/803/medium800/3d_printing_3d-parts.jpg?1390776241)

[Download STLs](http://www.thingiverse.com/thing:235242)
## Transparent PLA
Print the LED cover to soften and diffuse the NeoPixel ring. For most FDM 3D printers, PLA material works with out a heated bed. The extruder should be set to 230c. The model was design to print with out a raft or supports. Below is a small list of places to get PLA. Make sure your filaments diameter size matches your 3d printer. Most common size is 1.75mm and 3mm.  
  

- [Inventibles](https://www.inventables.com/categories/materials/3d-printer-filament)
- [Makerbot](http://store.makerbot.com/pla-filament)
- [Ultimachine](https://ultimachine.com/catalog/print-materials/pla/pla-175mm)
- [Amazon](http://www.amazon.com/s/ref=sr_nr_n_1?rh=n%3A6066128011%2Ck%3Apla+filament+1.75&keywords=pla+filament+1.75&ie=UTF8&qid=1389803195&rnid=2941120011)  
- [3D Printer Ninja](http://3dprinterninja.com/3d-printer-filament/)

# 3D Printed Camera LED Ring

## Circuit Diagram

![](https://cdn-learn.adafruit.com/assets/assets/000/021/687/medium800/3d_printing_cam-light-rig-Curcuit-Layout.jpg?1418346829)

![](https://cdn-learn.adafruit.com/assets/assets/000/015/848/medium800/3d_printing_60camRing-Diagram.jpg?1397743219)

## Prototyping Circuit
Please be sure to check out [NeoPixel Guide](http://learn.adafruit.com/adafruit-neopixel-uberguide "Link: http://learn.adafruit.com/adafruit-neopixel-uberguide") to get a better understanding of how to power and work with NeoPixels.  
  
Use a bread board and alligator clips to connect the components together. You will want to solder header pins onto the 5V Trinket for a secure connection when prototyping on a breadboard. - **GND** NeoPixel Ring connects to **GND** on 5V Trinket
- **IN** &nbsp;NeoPixel Ring connects to **GIO#0**
- **PWR** NeoPixel connects to **5V**

- **Pin 1** Slide Switch connects to **BAT** on 5V Trinket
- **Pin 2** Slide Switch connects to **Positive** wire of JST Extender
- **Negative** wire of JST Extender connects to **GND** on 5V Trinket

## Programming Trinket
Please check out the [NeoPixel Arduino Library guide](http://learn.adafruit.com/adafruit-neopixel-uberguide/arduino-library) to get a better understanding on how to program your own colors and animations. ```auto
#include <Adafruit_NeoPixel.h>

#define N_PIXELS  24  // Number of pixels you are using
#define LED_PIN    0  // NeoPixel LED strand is connected to GPIO #0 / D0

Adafruit_NeoPixel  strip = Adafruit_NeoPixel(N_PIXELS, LED_PIN, NEO_GRB + NEO_KHZ800);

void setup() {
  strip.begin();

  //  you can change the brightness to lower if its too bright!
  strip.setBrightness(255);                // Set LED brightness 0-255
  colorWipe(strip.Color(255, 255, 255),0); // fill the strip with all white
  strip.show();                            // Update strip
}

void loop() {
}

// Fill the dots one after the other with a color
void colorWipe(uint32_t c, uint8_t wait) {
  for(uint16_t i=0; i<strip.numPixels(); i++) {
      strip.setPixelColor(i, c);
      strip.show();
  }
}
```

## Setting RGB color values
You can quickly set the color of the LEDs by changing the three values that make up a color. See the "255,255,255" values in the colorWipe line of code, you can change these three values to create a custom color of your choice! The brightness can be adjusted by changing the '255' value in the 'setBrightness' line of code. # 3D Printed Camera LED Ring

## 24 NeoPixel Ring

![](https://cdn-learn.adafruit.com/assets/assets/000/013/815/medium800/3d_printing_switch-circuit.jpg?1390789516)

## Power Circuit
Use the JST extender to create a removable battery circuit. Cut and stripe the JST extender to about 30mm in length. Solder a pin on the slide switch to the positive wire of the JST extender. Use small pieces of shrink tubing to secure and protect the soldered connections. ![](https://cdn-learn.adafruit.com/assets/assets/000/013/809/medium800/3d_printing_wire-base.jpg?1390789225)

## Wiring
Measure, cut and strip 3 strips of 30 gauge wire wrap to about 160mm in length. Group together the 3 wires and thread them through the middle hole in the 3d printed base that will hold the NeoPixel Ring.  
  
![](https://cdn-learn.adafruit.com/assets/assets/000/013/810/medium800/3d_printing_solder.jpg?1390789290)

## Connecting NeoPixel Ring
Pull the wires through the base enough to mount the ring with a third helping hand Label each wire and solder them to the appropriate pins of the NeoPixel Ring. ![](https://cdn-learn.adafruit.com/assets/assets/000/013/808/medium800/3d_printing_attach-ring-to-base.jpg?1390789189)

## Mounting NeoPixel Ring
Carefully bend the "IN" cable underneath the ring and pull each cable until it's taut. Align the NeoPixel ring into position and use double sided tape to secure the ring to the base. ![](https://cdn-learn.adafruit.com/assets/assets/000/013/811/medium800/3d_printing_attach-hinge.jpg?1390789338)

## Connecting Base to Hinge
Snap the hinge on to the base and nest the wires inside the cavity of the connector. Cut a small piece of a paper clip and slide it into the hole of the hinge securing the two pieces together. ![](https://cdn-learn.adafruit.com/assets/assets/000/013/812/medium800/3d_printing_wire-to-clip-box.jpg?1390789389)

## Connecting Clip
Attach the clip to the other side of the connector and apply another piece of paper clip joining the three pieces together. Pull the wiring through the clip and leave a little bit of slack so the wires can curve around the inside the cavity of the clip. ![](https://cdn-learn.adafruit.com/assets/assets/000/013/813/medium800/3d_printing_wire-channle.jpg?1390789420)

## Connecting Enclosure
Pull the wiring through the hole on the side of the enclosure and connect it to the clip by sliding it into place. Use electrical tape to secure the wires inside the clip cavity.   
![](https://cdn-learn.adafruit.com/assets/assets/000/013/818/medium800/3d_printing_solder-trinket.jpg?1390795157)

## Connecting Trinket
Solder the wires to the appropriate pins on the 5V Trinket. **GND** wire connects to the **GND** pin while the positive wire connects to the **5V** pin. You can choose which GIO pin will connect to the digital out signal of the NeoPixel ring, we used **GIO#0**. Connect the power circuit to the trinket by soldering one pin of the slide switch to **GND** and the other pin to the **BAT** positive pin. The **GND** pin should be shared to the NeoPixel and the power circuit. ![](https://cdn-learn.adafruit.com/assets/assets/000/013/817/medium800/3d_printing_add-trinket.jpg?1390791978)

## Mounting Trinket + Battery
Carefully position the wired 5V Trinket into the enclosure. Align the USB port to the opening hole at the bottom of the enclosure. Position the 500mAh Lithium battery onto of the trinket wit the power circuit on top. ![](https://cdn-learn.adafruit.com/assets/assets/000/013/816/medium800/3d_printing_battery.jpg?1390789683)

Plug the battery into the JST extender and insert the slide switch through the top opening by pressing it through the top hole of the enclosure.

![](https://cdn-learn.adafruit.com/assets/assets/000/013/814/medium800/3d_printing_neopixel-ring-case.jpg?1390789476)

Close up the enclosure by snapping the lid on and slide the switch on to power up the ring! The clip snaps onto most DLSR camera lenses such as the 100mm or 24-70mm prime lenses.

Since all-LEDs-on can be really power-consuming, we suggest adjusting the brightness with the NeoPixel **setBrightness()** command to 100 or less

# 3D Printed Camera LED Ring

## 60 NeoPixel Ring

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

Bigger and better!  
This upgrade turns a 60x NeoPixel Ring into our biggest camera light yet. Featuring a universal hot shoe, the light can mount on ANY camera and ANY lens. This update uses the same micro-controller and battery.

![](https://cdn-learn.adafruit.com/assets/assets/000/015/865/medium800thumb/3d_printing_60ring.jpg?1448311613)

[Download STLs](http://www.thingiverse.com/thing:289846)
![](https://cdn-learn.adafruit.com/assets/assets/000/015/845/medium800/3d_printing_half.jpg?1397743007)

You need 4 pieces of the [60x NeoPixel ring](https://www.adafruit.com/products/1768) to make a full working LED ring! The pieces themselves do not come soldered together, so you will have to sold them! You can use two third-helping hands to assist in soldering the pieces together. A piece of shrink tubing added to the little grabbers ensure you don't mark up the PCBs.

![](https://cdn-learn.adafruit.com/assets/assets/000/015/846/medium800/3d_printing_solder.jpg?1397743133)

Start by soldering just two pieces together. Once you've aligned them up, apply a line of solder from one connection to there other. Make two sets of halves and solder those together.

![](https://cdn-learn.adafruit.com/assets/assets/000/015/847/medium800/3d_printing_whole.jpg?1397743144)

With two halves soldered together, you can orient the ring and the third-helping hands to a comfortable position. Align them up as best as you can and solder these together.

![](https://cdn-learn.adafruit.com/assets/assets/000/015/849/medium800/3d_printing_btm_con.jpg?1397744089)

The **neoring-60-top.stl** and **neoring-60-bottom.stl** parts are the two pieces that snap together to make the large ring. The **neoring-60-cap-top.stl** and **neoring-60-cap-bottom.stl** parts are also two parts that snap together, these are to be printed in transparent PLA to diffuse the LEDs.

![](https://cdn-learn.adafruit.com/assets/assets/000/015/850/medium800/3d_printing_top_con.jpg?1397744219)

Join the two holder parts together by snapping the tabs on the ends together. Carefully insert the 60 NeoPixel ring into the assembled holder. Thread the wires through the hole of the **neoring-60-bottom.stl** and out the hinge connector.

![](https://cdn-learn.adafruit.com/assets/assets/000/015/854/medium800/3d_printing_box-tabs.jpg?1397746803)

The **box.stl** part houses the 500mAh lipo battery and Trinket. At the bottom of the enclosure, the opening with tabs allows the **connector.stl** part to mount to the **hotshot.stl** part to the enclosure.

![](https://cdn-learn.adafruit.com/assets/assets/000/015/856/medium800/3d_printing_connector-snap.jpg?1397746881)

Insert the **connector.stl** part inside the enclosure, through the bottom opening with the flat end facing up. Apply pressure to the corners of the connector to snap them into place.

![](https://cdn-learn.adafruit.com/assets/assets/000/015/855/medium800/3d_printing_dslr-pieces.jpg?1397746826)

Firmly slide the **hotshoe.stl** part through the **connector.stl** part were the two sides interlock. The small "T" shape on the side of the **hotshoe.stl** part meets with the "C" shape of the **connector.stl** part.

![](https://cdn-learn.adafruit.com/assets/assets/000/015/843/medium800/3d_printing_heroFront.jpg?1397742684)

 **Powering**  
The [500mAh Lithium Ion Polymer battery](http://www.adafruit.com/product/1578) is small enough to fit inside the **box.stl** enclosure but only provides about 30 minutes of use when powering 60 NeoPixels at a low brightness (we recommend a brightness setting of 20-ish). For full brightness, you'll need a bigger battery, 2200mAh or higher, or using a [USB battery bank](http://www.adafruit.com/product/1565).


## Related Guides

- [Circuit Playground Bluefruit Pumpkin with Lights and Sounds ](https://learn.adafruit.com/pumpkin-with-circuit-playground-bluefruit.md)
- [Circuit Playground Express Automatic Sunglasses](https://learn.adafruit.com/circuit-playground-express-auto-sunglasses.md)
- [Green Goblin Pumpkin CPB Ornament](https://learn.adafruit.com/green-goblin-pumpkin-cpb-ornament.md)
- [MicroBlocks Circuit Playground Express Ornament](https://learn.adafruit.com/microblocks-circuitplayground-express-ornament.md)
- [DIY Darksaber Build - 3D Print with PropMaker FeatherWing and BLE](https://learn.adafruit.com/ble-darksaber-propmaker.md)
- [NES Emulator for RP2040 & RP2350 DVI Boards](https://learn.adafruit.com/nes-emulator-for-rp2040-dvi-boards.md)
- [HalloWing M4 Animated Eye Candy Bowl](https://learn.adafruit.com/hallowing-m4-candy-bowl.md)
- [Eye of Newt](https://learn.adafruit.com/eye-of-newt.md)
- [Gravity Falls Memory Gun](https://learn.adafruit.com/gravity-falls-memory-gun.md)
- [Chinese Dragon Puppet with Motion-Reactive Flame Effect](https://learn.adafruit.com/chinese-dragon-puppet-with-motion-reactive-flame-effect.md)
- [No-Solder PaperCraft Crystal Light Strand](https://learn.adafruit.com/no-solder-papercraft-crystal-light-strand.md)
- [MIT Green Building NeoPixel Tetris](https://learn.adafruit.com/tetris-building.md)
- [Steven Universe Cosplay Shirt & Gem](https://learn.adafruit.com/steven-universe-cosplay-shirt-gem.md)
- [IoT Battery Monitor](https://learn.adafruit.com/iot-battery-monitor.md)
- [Low-Tech Buzzing Operation Game](https://learn.adafruit.com/low-tech-operation-game.md)
