I admit it: I'm a total geek. I love electronics, programming, 3D printing, 3D art, and vintage Apple hardware. I'm always juggling half a dozen projects. I also enjoy documenting it all: my successes, my failures, my experiences... and everything geeky along the way.

Portal Weighted Storage Cube - Part III | Kevin Rye.net - Main

Kevin Rye

Geek Extraordinaire. Yeh, I said it.

Portal Weighted Storage Cube - Part III

It's time for the electronics!

I got in the six Neopixel rings that I ordered.

6_neopixel_rings_001

I took a few measurements and made some adjustments to my LED holder.

Screen Shot 2017-08-10 at 2.11.55 PM

Everything fits like a glove.

LED_holder_with_neopixel_001

The odd shape is so that I can still solder wires to the back without the holder getting in the way of the four holes.

LED_holder_with_neopixel_002

Five out of the six holders will be secured with 4-40 screws and threaded inserts. Once the five LED holders have been secured in place, there will be no way to reach in with a screwdriver to secure the last. I had to come up with something a little more elaborate for that one.

Screen Shot 2017-08-10 at 2.09.30 PM

The sixth LED holder will be held in place with magnets.

removable_LED_holder_with_neopixel_001

With magnets in both sides, it just snaps together.

removable_LED_complete_asssembly_001

These magnets are awesome. They're so strong that you just have to get close and it self-aligns itself.

LED Holder with Magnets

All six holders printed and ready to go.

all_6_LED_holders_001

I then modeled something to hold the PCB and batteries. It just needs to be something that I can fit through one of the holes. I decided to just print a few standoffs that I can screw to a platform with some 4-40 screws and some threaded inserts. It'll hold a small PCB and a battery pack. I'll just glue the standoffs to the inside of the main enclosure with some epoxy.

Screen Shot 2017-08-13 at 4.04.46 PM

I then printed the platform, the standoffs, and inserted some threaded inserts.

PCB_mount_001

Boom. Quick and easy.

PCB_mount_002

The PCB is secured to the bottom with some screws and the battery pack will go on the top with some velcro strips.

PCB_mount_003

I'll be able to easily remove the battery pack to replace the batteries. I was going to use LiPo batteries and incorporate a charger, but that seems a little over the top. (And expensive.)

PCB_mount_004

I soldered some header pins to the power and data points on the Neopixels and secured them to the holders with a few small blobs of hot glue.

LED_holders_with_pins_001

The whole thing is going to run off an Arduino micro with an accelerometer. I first prototyped my design on a small breadboard to figure out how to work the accelerometer.

poratl_cube_micro_prototype_001

Once I figured it out, I soldered them to the final breadboard along with some headers for the LEDs and power.

poratl_cube_micro_001

I then wired up the Neopixels and connected them to the board along with the battery pack.

poratl_cube_micro_002

Everything works perfectly.

poratl_cube_micro_003

poratl_cube_micro_004

I had a few side pieces in the scrap pile left over from when I tried to print the sides face down on a raft. I pulled them out of the heap and glued them together to use as a jig to wire up the electronics. I don't want to spend too much time messing around in the painted model with tools just in case I mess it up. I don't want to wait to assemble it to start figuring out how I'm going to wire it up. So this is a good practice run.

portal_cube_test_rig_001

That's looking pretty awesome.

portal_cube_test_rig_004

With a flip, it turns yellow.

portal_cube_test_rig_005

I'm not sure if I'm going to keep the code the way it is now or mess around with it a little more. Right now, holding the PCB in portrait mode makes the LEDs blue. Holding it in landscape mode makes it yellow. However, once everything's in the box, it's hard to tell which way the PCB is oriented. Needless to say, you kind of have to flip it around a few times to figure out which end is up. I might improve the code so that any 180 degree flip in any direction changes the color from blue to yellow and vice-versa. I also want to maybe include some kind of Easter egg. Maybe have the lights go crazy with a bunch of random colors.

Here it is in action:

Portal Cube Light Test

Just for fun, I inserted one of the bezels just to see how well the white acrylic will diffuse the LEDs.

That. Looks. Awesome.

poratl_cube_led_diffuse_001

See this project from start to finish:
Portal Weighted Storage Cube - Part I
Portal Weighted Storage Cube - Part II
Portal Weighted Storage Cube - Part III
Portal Weighted Storage Cube - Part IV