4x4x4 interactive LED-cube with Arduino

 by kenyer
Featured
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 1: You will need:

P1020518.JPG
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



1-40 of 85Next »
Userr12345 says: Jan 14, 2013. 7:29 AM
No it's not , want me to post a picture?
Ps: sorry but for some reason it won't let me reply
kenyer (author) in reply to Userr12345Jan 14, 2013. 12:39 PM
Yes, a picture might be helpful.
Userr12345 says: Jan 10, 2013. 7:30 AM
also i have another question, i dont know if you are going to know this but with my arduino uno came a nother board that mounts on top of the arduino with the arduino ports. do you know what that board is for or if i should even use it? i tried serching for it on the internet but couldnt find anything
kenyer (author) in reply to Userr12345Jan 10, 2013. 8:46 AM
Could it be a protoshield? http://arduino.cc/en/Main/ArduinoProtoShield
Userr12345 says: Jan 8, 2013. 8:04 AM
i did the first two layers succesfull, but im having trouble with the 3rd and 4th.
i dont quite understand what you mean by the corner LED's.
on mine i didnt finish reading the instructions so i did the 4th layer like i did the first one. How can i fix this and how to i hook it up properly
kenyer (author) in reply to Userr12345Jan 9, 2013. 1:06 AM
When you didn't leave out the top corner led's, you will end up with a normal 4x4x4 LED-cube without the interactivity aspect of it. If you do want the interactivity, you will need to desolder the corner led's and resume as instructed. The four top corner led's need to be totally separate from the rest of the cube.
stringstretcher says: Nov 15, 2012. 6:09 AM
Hmmm... I have a 3x3x3, but this looks so good I may have to make one! Great instructions. Thanks!
fallenheart says: Nov 3, 2012. 11:46 PM
is there something besides COAX wire you can use? something like maybe speaker/lead wire?
kenyer (author) in reply to fallenheartNov 4, 2012. 7:23 AM
The wire needs to be shielded in some way to work. The signal from the LED is very weak and easily disturbed.
jimdsouza says: Oct 26, 2012. 6:07 AM
Could you tell me the music you used in your final video?
kenyer (author) in reply to jimdsouzaOct 26, 2012. 7:33 AM
I just used one of the tunes Youtube provides.
fallenheart says: Oct 15, 2012. 7:06 PM
What are the dimensions of just the led cube part?
kenyer (author) in reply to fallenheartOct 16, 2012. 8:52 AM
The distance between the LED's is 12,5 mm, so the cube is approximately 40 x 40 x 60 mm.
fallenheart in reply to kenyerOct 16, 2012. 9:06 AM
oh that's perfect thanks!
zealroy says: Aug 6, 2012. 2:14 PM
thanks a lot kenyer. I am now half-way on finishing the project. your work really appreciated specially the codes.

Questions: If i want to replace the 4 LED sensor and replace it by a switch, how would i write the code. I mean where would i start?...
kenyer (author) in reply to zealroyAug 9, 2012. 9:31 AM
Hi Zealroy,

If you leave out the sensors, it will make your code much easier. You can delete everything in the void loop() and replace it by code that will test your button(s) and then calls one of the four splash voids.

I hope this was helpful for you
mrwicked says: Jun 27, 2012. 7:31 PM
Alright here is the finished product, as promised.
2012-06-27 20.21.jpg2012-06-27 22.21.jpg
kenyer (author) in reply to mrwickedJun 27, 2012. 11:07 PM
WOW really nice! I like the nice box for the electronics.
mrwicked in reply to kenyerJun 28, 2012. 7:01 AM
Thank you, I bought the wood at micheals and built, sanded and stained it.
I am impressed with the finished product, now I need to attempt a larger cube!
mrwicked says: Jun 23, 2012. 2:48 PM
So I just completed this cube and I did it without the sensors,
I did layer one as described, layer two charlieplexed with layer 1, layer 3 i have the anodes of layer 3 bent down and soldered with the cathodes of layer 2, and i have the cathodes of layer 3 soldered to the anodes of layer 4.


I have the code uploaded to the arduino, and it seems to be working, well the bottom two layers work fine, the top 2 layers, are half working? the leds are very dim and dont seem to follow the pattern expected. I may have mis soldered layer 2-3 im not sure any idea?
mrwicked in reply to mrwickedJun 23, 2012. 4:11 PM
Turns out the pin zero on my arduino is shorted, i moved them all over one pin and made the adjustments and it works great!
kenyer (author) in reply to mrwickedJun 24, 2012. 12:11 AM
Cool to hear that it works. I'm curious how it turned out. Can you post a picture?
gibsoncrazed14 says: Apr 14, 2012. 9:06 AM
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
kenyer (author) in reply to gibsoncrazed14Apr 14, 2012. 1:21 PM
Hi,
That is really easy. You just need to download the free software from www.arduino.cc (for windows, mac or linux) and you can write your code in this program and push "play" to send it trough a USB-cable to your Arduino.
gibsoncrazed14 in reply to kenyerApr 18, 2012. 7:21 PM
Thank you so much. i know this was a simple question but like i said i'm brand new with arduino
-Thanks
cvenko says: Apr 10, 2012. 4:42 AM
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
kenyer (author) in reply to cvenkoApr 10, 2012. 5:38 AM
Hi Cvenko,

Yes if you just solder the corners in like the rest, you will have a "normal" 4x4x4 LED-cube.
Will you show the result?

Peter
cvenko in reply to kenyerApr 10, 2012. 3:22 PM
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
argentinoloco87 says: Feb 28, 2012. 5:51 PM
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
ch2s says: Dec 7, 2011. 3:18 AM
Hi Kenyer,
Can you explain why the void setup - PinMode have to set to INPUT?? Thanks :)
kenyer (author) in reply to ch2sDec 7, 2011. 5:44 AM
That is a need trick. Normally the pin is HIGH or LOW, but when it is set on INPUT it is neither. It just goes along with whatever it gets.
ch2s says: Oct 15, 2011. 12:54 PM
If the extra LED is a sensor then why can the sensor itself blinking ? is it possible ?
kenyer (author) in reply to ch2sDec 7, 2011. 5:42 AM
When the LED is blinking it is temporarily not a sensor. The pin switches between input and output. At the same time sensor and LED is not possible. (as far as I know)
ch2s says: Nov 22, 2011. 12:10 PM
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?

kenyer (author) in reply to ch2sNov 22, 2011. 1:31 PM
Aren't your wires just the other way around in your Arduino?
ch2s in reply to kenyerNov 24, 2011. 3:20 AM
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 ?
ch2s in reply to kenyerNov 23, 2011. 2:04 PM
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 ?
10$man says: Nov 11, 2011. 2:40 PM
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...
kenyer (author) in reply to 10$manNov 12, 2011. 11:50 AM
I added some instructions to the Instructable. I hope it is more clear now. I also added the Fritzing-file of the schematic, so you can actually reed it. I hope this helped.
10$man in reply to kenyerNov 15, 2011. 8:50 PM
So, am I charlieplexing the 4th layer to the 3rd?

(Sorry, I am not really good with schematics)
1-40 of 85Next »
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!