3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

4x4x4 interactive LED-cube with Arduino

4x4x4 interactive LED-cube with Arduino
To explain my 4x4x4 interactive LED-cube published before, a bit more clear, I will try to make my first step by step instructable.

This 4x4x4 cube is interactive by using the top four corner LEDs both as LEDs and as sensors that will react on light. Depending on what LED gets the least light, the cube will run a different show.

 
Remove these adsRemove these ads by Signing Up
 

Step 1You will need:

you will need:
TOOLS
soldering iron
pliers
small screwdriver
some drillbits
drill
solder
piece of wood
pencil
ruler
computer with Arduino software
USB-cable
snips
sharpie
breadboard (optional)

PARTS
64 led's
4 resistors that go with the LED's (yes just 4)
1 Photocube
1 Arduino
some wire
some small COAX wire (isolated wire)
16 headerpins



« Previous StepDownload PDFView All StepsNext Step »
63 comments
1-40 of 63next »
Apr 14, 2012. 9:06 AMgibsoncrazed14 says:
I'm brand new with arduino and i was curious to how you would upload the code on to it? any help will be appreciated. Also great work.
- Thanks
Apr 18, 2012. 7:21 PMgibsoncrazed14 says:
Thank you so much. i know this was a simple question but like i said i'm brand new with arduino
-Thanks
Apr 10, 2012. 4:42 AMcvenko says:
Question...
If i want to remove "sensors" LEDs and make normal LED cube, what would i have to change? Would it work if i just solder 4 corner LEDs like the others are and then solder them to third layer as the rest are? And then i do little reprograming?
BTW i already build first 3 layers and it works like a charm...:D

Thanks
Apr 10, 2012. 3:22 PMcvenko says:
waw... Thanks for quick reply...

For now only layers 1 and 2 are working correctly... the 3 and 4 are behaving wierd... I will need to check if soldering was done correctly... But tomorrow;)

I will show result when the project is finished...

Thanks again
Feb 28, 2012. 5:51 PMargentinoloco87 says:
hey. i am trying to finish the first layer, but i cant seem to get the wiring right to go to the arduino. is there any way you could post a picture?
thanks
Dec 7, 2011. 3:18 AMch2s says:
Hi Kenyer,
Can you explain why the void setup - PinMode have to set to INPUT?? Thanks :)
Oct 15, 2011. 12:54 PMch2s says:
If the extra LED is a sensor then why can the sensor itself blinking ? is it possible ?
Nov 22, 2011. 12:10 PMch2s says:
I already construct and program the first layer..but..I don know why the led light go vertically down from left to right...where yours is horizontally from left to right....is it I construct wrong?

Nov 24, 2011. 3:20 AMch2s says:
HI, i just want to confirm again ...the anode pin (long) to breadboard , cathode (short ) with resistor ..anode connect to 4 to 7, cathode connect from 0 to 3 right ?:)...but i saw ur picture ur resistor's wire connect to 4 to 7 ?
Nov 23, 2011. 2:04 PMch2s says:
i construct the cathode to 0 till 3 , the anode to 4 till 7 ...i think i construct it wrongly because i make the cathode pin to upper right ..and the anode pin lower left ....is it ok ?
Nov 11, 2011. 2:40 PM10$man says:
Ok, I have done the first two layers succesfully. Now I am trying to get the 3rd and fourth layers...

So far I have put together another layer like the second layer and soldered the Cathodes to the Anodes, and have the Anodes free to be connected to the Arduino.
I don't understand how to connect the 4th layer at all...
Nov 15, 2011. 8:50 PM10$man says:
So, am I charlieplexing the 4th layer to the 3rd?

(Sorry, I am not really good with schematics)
Nov 15, 2011. 1:25 PM10$man says:
Alright, so. charlieplex the 4th layer (minus the corners) to the 3rd.
With the corners, do I connect the Cathode and Anode to Arduino? Will I need more resistors?
Nov 15, 2011. 2:21 PM10$man says:
I'm sorry, I was referring to the fourth layer
Oct 15, 2011. 12:51 PMch2s says:
Hi Kenyer, did you mean the LED itself can also be a Sensor ?? can you explain more about this ..Thanks!
Oct 17, 2011. 2:35 PMch2s says:
THANK YOU! :)
Oct 15, 2011. 6:48 AMch2s says:
sorry Kenyer, i use so long to finally understood the first layer and second layer ...but im still confuse about the third and the fourth layer..can i request that maybe more picture upload for that, and can u show the picture between the cube and ARDUINO connection? ...and actually we need 60 LEDs and 4 LED sensor right ?Besides that , do i need other IC chips ?? capacitor? or anything? im new for that and im quite excited to this project ! Thanks :)
Oct 15, 2011. 9:25 AMch2s says:
THANKS! :)
Oct 12, 2011. 1:15 PMch2s says:
(removed by author or community request)
Oct 1, 2011. 11:59 AMwalnut23 says:
hey Kenyer, Christian here(walnut23) I have checked my wiring many times and cannot seem to get the LED sesors to respond. I have also been playing with the void splash commands and have not been succesful. Your instructions are very helpful but there is a lot of other stuff in the code. With sensor splash 3, can i just delete all that stuff and put in a4(); and get one LED to light up? I would just like to make a different layer light up according to the four sensors.

Thanks,
Christian
Oct 1, 2011. 12:17 PMwalnut23 says:
Hey Kenyer, I have been fooling around with the delays and am wondering how to get the cube to stop lighting up until I put my hand over the sensors


Thanks,
Christian
Sep 25, 2011. 8:11 PMwalnut23 says:
Hey this is really great, I am doing a project for school and I am using your tutorial. Great work!!! I am really new at this and am wondering about the pin headers. There are a bunch on the internet and I am not sure which to het, double, female, male. Do i just break them apart to use them??? Look forward to your reply and thanks for the lessons.

Best,
Christian
Sep 29, 2011. 11:10 AMwalnut23 says:
Thanks so much for the reply- my cube is lighting up which is very exciting- however- sometimes the first cycle of lights is much dimmer than the next run.  Also, when I run the program, I pretty much have to touch the four corner LED's in order to start the cycle (not just run my hand over them). how does this work without photo sensors??  Last request- I am new to all this stuff and am amazed that the cube even lights up (thanks to your great instructions) but I am trying to make it a little more personal so I am not just copying your whole project ( I will definitely be footnoting you for my presentation).  I would like the cube to do some really simple things depending on which light sensor I wave my hand over. For example, just have one light go on for one corner, two lights for the next corner, a level of lights for the next, etc.  I am diving into your code and trying to hack the best I can- but like I said I am a newbie- any suggestions or good sources for alternative codes (simple) that would work with your interactive cube would be a great help.  Regardless, great job and thanks for making this accessible for everyone to enjoy- planning on doing an 8x8 in the future. Best, Christian
1-40 of 63next »

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
23
Followers
8
Author:kenyer(Technisch Speelgoed)
I'm a social-worker, working with 16 - 23 year-olds. I used to be a printer and I worked voluntarily in Romania for a couple of years. One day a week I have a toy-store in technical toys. I have this ...
more »