DIY 3D Controller

DIY 3D Controller
Make a 3D interface using an six resistors, aluminum foil, and an Arduino. Take that, Wii.

The basic goal here was to make a 3D hand-position sensing system that most people can build, while still preserving some semblance of functionality. To get an idea of possible applications, check out the demo video. If you think you can build one that is simpler and equally accurate, or slightly more complex and more accurate, share in the comments!


DIY 3D Interface: Tic Tac Toe from Kyle McDonald on Vimeo.
 
Remove these adsRemove these ads by Signing Up
 

Step 1Materials

Materials

Tools

Materials

  • (3) 270k resistors
  • (3) 10k resistors
  • Solder
  • Wire
  • Aluminum foil
  • Cardboard

Optional:

  • Tape (e.g.: scotch)
  • Shielded wire (e.g.: coaxial cable, ~3')
  • (3) alligator clips
  • 3-pin header
  • Zip-tie
  • Shrink wrap tubing or hot glue
« Previous StepDownload PDFView All StepsNext Step »
170 comments
1-40 of 170next »
Feb 5, 2012. 1:13 AMjonRomero says:
i just finished building the circuit and made sure nothing short circuited, but nothing is changing even when i press the Space button. The arduino code is fine and the Processing code too is good to go. However The only warning message i get is


WARNING: RXTX Version mismatch
Jar version = RXTX-2.2pre1
native lib Version = RXTX-2.2pre2
[0] "COM3"

Does anyone know how to fix the RXTX Version mismatch ???
Feb 4, 2012. 3:30 PMpierceRom says:
To anyone who actually got this to work ,

Does changing the aluminum foil to actual Aluminum plates work ?? I know they both conduct electricity but crinkled foil break easily unfortunately =/

Jan 31, 2012. 10:29 PMpierceRom says:
Hi there !!! im totally new at this whole electronics thing and I wanna try this project but i ran into a bit of problem.

I have built the board and everything but my problem is with the code. Where exactly is the code for the arduino ?? Or is the program " Processing" code suppose to upload the code into the arduino ?? Sorry if this question seems noob but im really new at this =(

Thank you soo much for any help !!
Feb 1, 2012. 7:48 AMpierceRom says:
Thank you sooo much for the quicky reply !! So the interface code goes into the Arduino and the TicTacToe code goes into Processing ??

But shouldnt there be a camera in the code somewhere so i can interact with the TicTacToe game in 3d ??? Where would that code be ??

Sorry once again if my questions seems completely retarded , im really new at all this unfortunately =
Feb 2, 2012. 5:46 PMpierceRom says:
Last question i promise !!

It seem that there were two files " Interface" and "Tic Tac Toe " in the download section .

So the interface code goes into the Arduino board and the TicTacToe code goes into Processing ??

Sorry but could you clarify that a little bit ??? Many many thanks for your help !!

Cheers

Pierce
Dec 26, 2011. 6:25 PMNannerman says:
I wonna play tick tack toe on a 3x3x3 led matrix made up of 2 colored leds :D. I just got an arduino uno so lets see if I can make something half as cool as this.


Now looking at the materials, I think I need to build this.
Nov 17, 2011. 5:50 PMshaemmerling says:
could this be used as a 3d mouse for spinning 3d models with hand motion. like grabbing an pbject and spinning it. i know its been a while since this has been commented on but thought id try.
Oct 21, 2011. 9:03 PMaefields says:
How does one convert the input from the sensors to a scale from 0-255 for PWM output?
Aug 30, 2011. 10:13 AMmrmerino says:
left hand green.
May 20, 2011. 5:10 PMavillanueva1 says:
I had problems with the code, the processing tell me that i have an error ArrayIndexOutOfBoundsException 2, am i doing something wrong?
Jun 11, 2011. 8:47 AMjimmy dean says:
I am also getting the same error. It is pointing to this line in setup:

serial = new Serial(this, Serial.list()[serialPort], 115200);

Has anyone solved this yet?
Jun 11, 2011. 9:11 AMjimmy dean says:
Ok, I figured it out.

If you were getting that error from the serial line, you have to make sure that the serial variable at the top is the correct serial port. If you look above the error, it should show the serial port that you are using. Mine was com4 so it showed:
[0] "COM4"
Therefore in my situation I had to change the serial variable to 0.

I also got that error randomly sometimes when I would run the program. I think that came from the board sending data before the program starts receiving it and then the program starting halfway through a line. To fix this I just made sure to hit the reset button at the same time I hit run on the processing code and it solved my problem.

Hope that helped :)
Jan 26, 2011. 3:42 PMwillrandship says:
Hey, remember me? :P

I'm doing it ruch better now. last time I made many mistakes, like the foil touching, the circuitry on the wrong side of the cable...
Sep 28, 2010. 9:23 AMDemonSpawn says:
Im going to try combine this and a 3x3x3 bicolor led cube to make a interactive 3d tic tac toe! im so excited!
Nov 9, 2010. 10:58 AMim3733 says:
If you do that, consider having the cube be clear so that you can see the center cell. otherwise, you will only be able to see 11 of the 12 cells.
Jan 26, 2011. 3:40 PMwillrandship says:
I think he meant where the leds just hang in midair, by their wires, which will be clear.
Dec 29, 2010. 7:25 PMpp21 says:
i have read all the comments and tried EVERYTHING! i can not get anything to show up, on the computer screen or in the box thing! what am i doing wrong. please hep me.
Nov 3, 2010. 4:23 PMpp21 says:
what kind of resistor
1/8-Watt 10K Ohm Carbon Film Resistors
10K Ohm 1/4-Watt Carbon Film Resistor
or
10K ohm 1/2W 5% Carbon Film Resistor
Apr 23, 2010. 2:55 PMSubFusion says:
would it be possible to have a double sheet and connect resistors to the mcu
in every corner of a sheet and then get 2D resolution X , Y of the capitance of the sheet. etc like comparators are used to deside the direction of light by have four photoresistors and making a wall between everyone of them in a cross.

I think I'll try
Mar 22, 2010. 4:05 AMsebasto-oo says:
Dear Kyle, Bravo for that great idea, it opens a wide new world of  cheap DIY potentialities leading to high end original control interfaces.

The problem is that, even though i scrupulously followed your building instructions, i can't seem to have the device interact in any way with my hand.

I just finished building it, and i seem to have a problem. The code seems to be working fine, the TTT demo at least : the code compiles just fine on processing, i just had to change the value of the serial port. Processing lists and finds the serial ports, compiles OK, the Java windows opens on the TTT, but no matter how hard i wave my hand around, there seems to be no interaction at all.

I must confess that i suffer a double handicap : i'm french, and i don't know much either about electronics or about Processing ;-)

But i'm very eager to learn, believe me.

I have a intuition, though : i could not find a single hint about where to connect the shielding wire onto the plate's side (the alligator clip's side). I tried different combinations, like soldering the core wire and the shield wire together, leaving the shield wire unconnected, etc. But none of them work until now.

Since i obviously forgot something, somewhere, would you have a hint for me ?

Thanks a lot for your help, and again, Bravo !

Seb

Feb 7, 2010. 11:13 AMdagenius says:
Is there any way to have this act as an alternative mouse?
Feb 7, 2010. 5:42 PMdagenius says:
But could you use the z dimension as a click function? that way you have a complete mouse...
Nov 7, 2009. 8:31 PMnrdesign says:
Would this actually work through some kind of plastic or plexiglass? I mean, just to protect the aluminium foil.
Dec 14, 2009. 5:43 PMwillrandship says:
Plus with wood you get a much more aesthetic feel than crinkled foil. The plexiglass wouldn't hide it. Would varnish have a high or low constant?
Dec 15, 2009. 12:45 PMwillrandship says:
Yay! I was hoping it would be, as wood looks much more professional when varnished. I was thinking about selling some if I can get a process down. Arduino mini + USB FTDI + This = ultra 3d pointing device! You could even have separate settings for up down for movement or left-right for movement!

Naturally, I would want your permission before selling any.
Dec 16, 2009. 1:33 PMwillrandship says:
Good! I'll be sure to do that. I wouldn't want to steal credit. For selling, though, I would probably use a boarduino as they are only $15 and small enough to be built into something. They also have the necessary I/O pins. All in all, I could probably build one for $30 overall. An added feature could be that if you take it apart, you have an arduino! :P
Dec 10, 2009. 7:42 PMwillrandship says:
Hasn't this instructinle been going for a couple years? I'm suprised people are still leaving comments on it. It is a featured article though. :-P

BTW I actually built one of these a while age, but never got around to finishing it due to the fact that tv-style coax cable has a tendency to let solder just slide off...:-( I'll probably finish it soon, though, seeing as I finally found a way to realize my mouse Idea! I might post an instructible about it sometime...I wanted to do it for the arduino contest, but I was a little late. Luckily, the contest rules will let me enter next year, so there's no reason to delay!
Dec 14, 2009. 1:26 PMwillrandship says:
Oh goodie! I hope it has a suggestion on how to attach the cables better. I had problems with coated coax cable. It doesn't help that I'm a clumsy solderer, either....

So, more components means better, right? I am expecting something mind-boggling!

The main reason I want this as a mouse is for black & white. God game + motion hand = real experience. Now I need johnny chung lee's 3d implemented!
Dec 14, 2009. 5:42 PMwillrandship says:
I hadn't though of rca...does it allow for easier soldering? or, better yet, I could take apart an old vcr, desolder the jacks, and make a connector for the arduino!
1-40 of 170next »

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!
103
Followers
6
Author:kylemcdonald