Free-Wired 3x3x3 NeoPixel Cube

Free-Wired 3x3x3 NeoPixel Cube
Created by Rick Winscot
Last updated on 2016-11-20 06:56:21 AM UTC
Guide Contents
Guide Contents
Overview
Parts!
3D Print the Base
LED Layout
Solder-bling
Brainz
Light-em' Up
© Adafruit Industries
2
3
3
5
7
12
19
25
https://learn.adafruit.com/free-wire-3x3x3-neopixel-cube
Page 2 of 26
Overview
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
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://adafru.it/dpE)
Something to drive them, like a Trinket 5V (http://adafru.it/dsH)
5V 2A power supply is plenty (http://adafru.it/dsI)
© Adafruit Industries
https://learn.adafruit.com/free-wire-3x3x3-neopixel-cube
Page 3 of 26
On/Off Power button (http://adafru.it/dh0)
DC panel-mount jack (http://adafru.it/dsJ)
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
© Adafruit Industries
https://learn.adafruit.com/free-wire-3x3x3-neopixel-cube
Page 4 of 26
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!
3D Models (.stl files)
http://adafru.it/dsK
For the 5X5 cube, you will need one cover, one base, and twenty-five posts.
© Adafruit Industries
https://learn.adafruit.com/free-wire-3x3x3-neopixel-cube
Page 5 of 26
3D Models (.stl files)
http://adafru.it/dsL
© Adafruit Industries
https://learn.adafruit.com/free-wire-3x3x3-neopixel-cube
Page 6 of 26
LED Layout
Here are two options to consider for your cube... Soldering Sunday (http://adafru.it/dsM)
LEDs have stout legs with a distinct pattern that might help prevent wiring errors.
Traces will have to stack vertically to prevent crossing connections... especially the signal.
© Adafruit Industries
https://learn.adafruit.com/free-wire-3x3x3-neopixel-cube
Page 7 of 26
Adafruit has some nice 'leggy' LEDs (http://adafru.it/1734) that can help simplify ground /
power connection hook-up.
© Adafruit Industries
https://learn.adafruit.com/free-wire-3x3x3-neopixel-cube
Page 8 of 26
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.
© Adafruit Industries
https://learn.adafruit.com/free-wire-3x3x3-neopixel-cube
Page 9 of 26
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.
© Adafruit Industries
https://learn.adafruit.com/free-wire-3x3x3-neopixel-cube
Page 10 of 26
© Adafruit Industries
https://learn.adafruit.com/free-wire-3x3x3-neopixel-cube
Page 11 of 26
Solder-bling
Insulation on the wire will compete with the LEDs visually...
You're going to need a mile of this stuff; make your segments as long as possible.
© Adafruit Industries
https://learn.adafruit.com/free-wire-3x3x3-neopixel-cube
Page 12 of 26
Rosin core solder will work a treat... or you can use a flux pen.
© Adafruit Industries
https://learn.adafruit.com/free-wire-3x3x3-neopixel-cube
Page 13 of 26
Follow your template as you solder, making sure that each joint is strong and doesn't bridge
any of the LED legs.
Soldering on the outside gives you a little more space and can help prevent short circuits.
© Adafruit Industries
https://learn.adafruit.com/free-wire-3x3x3-neopixel-cube
Page 14 of 26
Time to solder the lines that drive your cube: power, ground, and signal-in.
© Adafruit Industries
https://learn.adafruit.com/free-wire-3x3x3-neopixel-cube
Page 15 of 26
Pass those connections through one of the posts and into the base.
Add a bit of hot glue to each of the corners / posts.
© Adafruit Industries
https://learn.adafruit.com/free-wire-3x3x3-neopixel-cube
Page 16 of 26
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.
© Adafruit Industries
https://learn.adafruit.com/free-wire-3x3x3-neopixel-cube
Page 17 of 26
© Adafruit Industries
https://learn.adafruit.com/free-wire-3x3x3-neopixel-cube
Page 18 of 26
Brainz
There are so-many awesome choices to drive your cube... Arduino UNO, Micro, Trinket,
and Gemma to name a few.
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.
© Adafruit Industries
https://learn.adafruit.com/free-wire-3x3x3-neopixel-cube
Page 19 of 26
Solder short leads to the barrel connector.
© Adafruit Industries
https://learn.adafruit.com/free-wire-3x3x3-neopixel-cube
Page 20 of 26
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.
A bit of shrink-tube makes things look nice and can help prevent shorting.
© Adafruit Industries
https://learn.adafruit.com/free-wire-3x3x3-neopixel-cube
Page 21 of 26
Install the barrel connector and on/off switch... a little hot glue on both will make things
permanent.
© Adafruit Industries
https://learn.adafruit.com/free-wire-3x3x3-neopixel-cube
Page 22 of 26
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!
© Adafruit Industries
https://learn.adafruit.com/free-wire-3x3x3-neopixel-cube
Page 23 of 26
© Adafruit Industries
https://learn.adafruit.com/free-wire-3x3x3-neopixel-cube
Page 24 of 26
Light-em' Up
No fancy coding needed to make this cube dazzle everyone... the standard Neo Pixel
'strandtest' does the job nicely!
© Adafruit Industries
https://learn.adafruit.com/free-wire-3x3x3-neopixel-cube
Page 25 of 26
© Adafruit Industries
Last Updated: 2016-11-20 06:56:20 AM UTC
Page 26 of 26