# Free-Wired 3x3x3 NeoPixel Cube

## Overview

https://vine.co/v/MHbiHETBYwu

NeoPixels are amazing... they simplify lighting projects and can be driven by a wide variety of microcontrollers.  
  
That's right, no shift registers, charlieplexing, or fancy setups. Just one pin! This makes them great for something complex-shaped like a 3D cube

![](https://cdn-learn.adafruit.com/assets/assets/000/016/699/medium800/led_pixels_IMG_1992.jpg?1400468455)

The 3x3x3 cube is crazy bright... and wicked awesome!

# Parts!
For this project you'll need  

- [27 x Thru-hole NeoPixels (if you get 30 you'll have spares in case you need them)](http://www.adafruit.com/product/1734)
- [Something to drive them, like a Trinket 5V](http://www.adafruit.com/product/1501)
- [5V 2A power supply is plenty](http://www.adafruit.com/product/276)
- [On/Off Power button](http://www.adafruit.com/product/1683)
- [DC panel-mount jack](http://www.adafruit.com/product/610)
- Wire, solder, soldering iron, hand tools...  

A 3D printer can print out the custom base, or you can craft something custom with wood or cardboard  
# Free-Wired 3x3x3 NeoPixel Cube

## 3D Print the Base

These bases were designed to serve as a soldering template as well as a case for your electronics. You will need one cover, one base, and nine posts.  
  
Print em' up and let's get started!

![](https://cdn-learn.adafruit.com/assets/assets/000/016/615/medium800/led_pixels_3x3x3_cube.png?1400140310)

[3D Models (.stl files)](https://learn.adafruit.com/system/assets/assets/000/016/617/original/3x3x3_Cube_Base.zip?1400186741)
For the 5X5 cube, you will need one cover, one base, and twenty-five posts.

![](https://cdn-learn.adafruit.com/assets/assets/000/016/614/medium800/led_pixels_5x5x5_cube.png?1400140281)

[3D Models (.stl files)](https://learn.adafruit.com/system/assets/assets/000/016/618/original/5x5x5_Cube_Base.zip?1400186891)
# Free-Wired 3x3x3 NeoPixel Cube

## LED Layout

Here are two options to consider for your cube... [Soldering Sunday](http://solderingsunday.com/shop/components/pixelbits-bakers-dozen/ "Link: http://solderingsunday.com/shop/components/pixelbits-bakers-dozen/") LEDs have stout legs with a distinct pattern that might help prevent wiring errors.

![](https://cdn-learn.adafruit.com/assets/assets/000/016/607/medium800/led_pixels_IMG_2036.jpg?1400138962)

Traces will have to stack vertically to prevent crossing connections... especially the signal.

![](https://cdn-learn.adafruit.com/assets/assets/000/016/620/medium800/led_pixels_ssunday_diagram.png?1400223454)

Adafruit [has some nice 'leggy' LEDs](https://www.adafruit.com/products/1734) that can help simplify ground / power connection hook-up.

![](https://cdn-learn.adafruit.com/assets/assets/000/016/609/medium800/led_pixels_IMG_2035.jpg?1400139073)

If the distance between LEDs is roughly the length of one of the legs, hook-up of power and ground is going to be easy peasey.

![](https://cdn-learn.adafruit.com/assets/assets/000/016/619/medium800/led_pixels_adafruit_diagram.png?1400223434)

Stack each new level by matching the signal out of the lower level to the signal in of the level above. Add vertical connections for power and ground... completing the structure of the cube.  
  
Be creative... and sketch out a couple wiring diagrams before you start soldering.

![](https://cdn-learn.adafruit.com/assets/assets/000/016/621/medium800/led_pixels_IMG_2046.jpg?1400224939)

# Free-Wired 3x3x3 NeoPixel Cube

## Solder-bling

Insulation on the wire will compete with the LEDs visually...

![](https://cdn-learn.adafruit.com/assets/assets/000/016/604/medium800/led_pixels_IMG_2019.jpg?1400138857)

You're going to need a mile of this stuff; make your segments as long as possible.

![](https://cdn-learn.adafruit.com/assets/assets/000/016/605/medium800/led_pixels_IMG_2021.jpg?1400138877)

Rosin core solder will work a treat... or you can use a flux pen.

![](https://cdn-learn.adafruit.com/assets/assets/000/016/602/medium800/led_pixels_IMG_2022.jpg?1400138805)

Follow your template as you solder, making sure that each joint is strong and doesn't bridge any of the LED legs.

![](https://cdn-learn.adafruit.com/assets/assets/000/016/603/medium800/led_pixels_IMG_2025.jpg?1400138827)

Soldering on the outside gives you a little more space and can help prevent short circuits.

![](https://cdn-learn.adafruit.com/assets/assets/000/016/606/medium800/led_pixels_IMG_2031.jpg?1400138907)

Time to solder the lines that drive your cube: power, ground, and signal-in.

![](https://cdn-learn.adafruit.com/assets/assets/000/016/610/medium800/led_pixels_IMG_1953.jpg?1400139259)

Pass those connections through one of the posts and into the base.

![](https://cdn-learn.adafruit.com/assets/assets/000/016/611/medium800/led_pixels_IMG_1955.jpg?1400139269)

Add a bit of hot glue to each of the corners / posts.

![](https://cdn-learn.adafruit.com/assets/assets/000/016/612/medium800/led_pixels_IMG_1956.jpg?1400139313)

At this point you may want to solder a temporary connection to the cube, and run a 'strandtest' to make sure that everything is hooked-up correctly.

![](https://cdn-learn.adafruit.com/assets/assets/000/016/613/medium800/led_pixels_IMG_2015.jpg?1400139429)

# Free-Wired 3x3x3 NeoPixel Cube

## Brainz

There are so-many awesome choices to drive your cube... Arduino UNO, Micro, Trinket, and Gemma to name a few.

![](https://cdn-learn.adafruit.com/assets/assets/000/016/616/medium800/led_pixels_IMG_2045.jpg?1400142667)

The smaller microcontrollers will fit in either base, whereas the UNO will only fit in the larger of the two.  
  
Let's give Trinket a try!   
  
Grab a barrel socket and your on/off switch.

![](https://cdn-learn.adafruit.com/assets/assets/000/016/688/medium800/led_pixels_IMG_2048.jpg?1400467317)

Solder short leads to the barrel connector.

![](https://cdn-learn.adafruit.com/assets/assets/000/016/693/medium800/led_pixels_IMG_2050.jpg?1400467458)

Solder one short ground connector to the on/off switch. The other lead on the switch will combine the ground from the NeoPixels and barrel connector.   
  
We will solder those after these two components are installed in the base.

![](https://cdn-learn.adafruit.com/assets/assets/000/016/694/medium800/led_pixels_IMG_2051.jpg?1400467466)

A bit of shrink-tube makes things look nice and can help prevent shorting.

![](https://cdn-learn.adafruit.com/assets/assets/000/016/695/medium800/led_pixels_IMG_2055.jpg?1400467814)

Install the barrel connector and on/off switch... a little hot glue on both will make things permanent.

![](https://cdn-learn.adafruit.com/assets/assets/000/016/696/medium800/led_pixels_IMG_2064.jpg?1400467892)

After installing the two components you can finish soldering power and ground through the on/off switch.   
  
The end-product would look something like this... I made the mistake of cutting some of my wires a little short.  
  
I decided to combine the ground connections on the on/off switch and power on the barrel connector.

- bare wire = pin #0 (NeoPixel signal in)
- yellow = power (BAT pin)
- black = ground

If everything checks-out, glue the base cover in place and lets pump some electrons through this thing!  
![](https://cdn-learn.adafruit.com/assets/assets/000/016/697/medium800/led_pixels_IMG_2103.jpg?1400467979)

# Free-Wired 3x3x3 NeoPixel Cube

## Light-em' Up

No fancy coding needed to make this cube dazzle everyone... the standard Neo Pixel 'strandtest' does the job nicely!

![](https://cdn-learn.adafruit.com/assets/assets/000/016/698/medium800/led_pixels_IMG_2090.jpg?1400468398)


## Related Guides

- [DIY Adaptive Game Controllers](https://learn.adafruit.com/diy-adaptive-game-controllers.md)
- [Bluefruit Luminary Lanterns with Capacitive Touch](https://learn.adafruit.com/bluefruit-luminary-lanterns-with-capacitive-touch.md)
- [CLUE Vertical Garden Weather Visualizer](https://learn.adafruit.com/clue-vertical-garden-weather-visualizer.md)
- [Gmailbox](https://learn.adafruit.com/gmailbox.md)
- [BLE Light Switch with Feather nRF52840 and Crickit](https://learn.adafruit.com/bluetooth-light-switch-with-crickit-and-nrf52840.md)
- [Adafruit IO Home: Lights and Temperature ](https://learn.adafruit.com/adafruit-io-house-lights-and-temperature.md)
- [Cranky Adabot Solder Dispenser](https://learn.adafruit.com/cranky-adabot-solder-dispenser.md)
- [Stepper Motor Turntable](https://learn.adafruit.com/stepper-motor-turntable.md)
- [NeoPIO: Drive lots of LEDs with Raspberry Pi Pico](https://learn.adafruit.com/neopio-drive-lots-of-leds-with-raspberry-pi-pico.md)
- [QT Py Heart Shaped NeoPixel PCB](https://learn.adafruit.com/qtpy-heart-pcb.md)
- [Network Connected RGB Matrix Clock](https://learn.adafruit.com/network-connected-metro-rgb-matrix-clock.md)
- [Adafruit TPS65131 Split Power Supply Boost Converter](https://learn.adafruit.com/adafruit-tps65131-split-power-supply-boost-converter.md)
- [Crickit Harmonic Drawing Machine](https://learn.adafruit.com/crickit-harmonic-drawing-machine.md)
- [Simple Vertical Wordclock](https://learn.adafruit.com/vertical-wordclock.md)
- [CircuitPython Painter](https://learn.adafruit.com/circuitpython-painter.md)
