qDot ([info]qdot) wrote,
@ 2008-01-14 01:07:00
Previous Entry  Add to memories!  Tell a Friend!  Next Entry
WiiYo: IR LED + Yoyo + WiiMote

Taking some inspiration from Johnny Chung Lee's WiiMote Projects, I decided I'd like to figure out something neat to do with the WiiMote's IR Camera. I didn't realize that it's 1024x768 @ 100hz for up to 4 IR points (with 4 bits of depth, even), which gives you enough resolution to do some interesting stuff.



yoyoproject



For those of you that haven't known me a while, you might not be aware that I used to yoyo quite a bit. I still play every so often, but not nearly as much as I used to. I ended up building up quite the collection, though. Something I always wanted to be able to do was yoyo tracking. I played a little bit with blob tracking and LEDs, but didn't have the hardware or experience back then (2000-2001ish) to really do what I wanted.



yoyoproject 005



After seeing the head tracking and finger tracking videos, the first thing I thought of was trying the yoyo project again. Without taking the time to actually look at my collection, I decided to drill up an old freehand pog and electric tape it to my Pyro with a CR2032 pack attached to the back of the pog for power.



yoyoproject 006



This ended up being such a colossally bad idea that I'm not gonna spend much time talking about it. The yoyo was unusably unbalanced. So, digging through my yoyo box somemore, I realized I still had some Torch LED pogs.



yoyoproject 009



I removed the Red LED off of these and replaced it with an IR LED and a smaller resistor. Since I didn't really have any Spintastics yoyos I wanted to throw the pog in, I ended up dismantling my already sort of broken Night Moves 2 (the plastic on the axle end had cracked on it a while ago for some reason), and hot gluing the pog in to hold it. Sure enough, the yoyo was slightly unbalanced, but completely usable for most any trick. After ninja starring the pog due to not having hot glued it well enough the first time, I made sure to do a better job, and now I have an IR yoyo!



yoyoproject 010



So, with yoyo+wiimote setup finished, I fired up Max/MSP and used the aka.objects wiiremote and appleremote externals along with the LCD object to make a little drawing program. The Apple Remote works as a pen start/stop and clearing device, so I can clear the screen and start/stop drawing while standing far back from the computer. The Wiimote external is wired to draw lines depending on the first IR readout from the camera.



gerbil



The above picture is a drawing from that program, of an almost-but-not-really version of the "skin the gerbil" trick by Doctor Popular.



The picture also shows a couple of the current problems with the system. First off, I've completely trashed my office getting this done, so I can't back up very far and don't have a good idea of what the Wiimote is seeing. This could be fixed by calibration, which is something I plan on figuring out. Secondly, there's some sampling issue with large swings. Either my swings are causing tilt, the LED doesn't have a wide enough angle, or some combination of the two. I've ordered 5 more kinds of LEDs to test this.



patchpic



Finally, I hooked up a little sample looper in Max/MSP to the setup so that it would spit out some noise, too.







This video is a combination of the drawing and the video, processed through Jitter. Warning, the sound is VERY desynchronized from the video. 100% of my experience with Jitter has happened in the last 24 hours, and apparently I missed something about getting the video to synchronize (realtime setting, maybe?), which is why the sound doesn't match the video.



So, that was my weekend. The project still has a long way to go. I've got 2 more Torch boards to mod once the LEDs come in, and it'll be interesting to see which LEDs work best. I should have those later this week. I also plan on modding a spintastics top I have that has a torch board in it, so I can do Augmented Reality Battle Tops.



Have any interesting ideas for this project? Please leave comments! Seems like there's a million places this could go.




(Post a new comment)


[info]rainbow_roo
2008-01-14 07:24 am UTC (link)
I got lost at about the second or third picture. This is normal, however - as it's common knowledge that a roo's head (or at least mine) is known to not do well with math or physics or anything remotely similiar to the above. Smoke started wisping out of my ears at the pictures with all the little tracking lines.

You tend to come up with some pretty sweet technological toys however. It's a pleasure to have my mind blown away by you!

(Reply to this) (Thread)


[info]qdot
2008-01-14 07:36 am UTC (link)
Well, easy version: I've made a simple way to track the movement of a yoyo on a computer. :)

(Reply to this) (Parent)(Thread)


[info]rainbow_roo
2008-01-14 07:51 am UTC (link)
Haha, wow...that can be done? Crazy!

(Reply to this) (Parent)(Thread)


[info]qdot
2008-01-14 07:52 am UTC (link)
Click on the Johnny Chung Lee link in the post. He does a MUCH better job of explaining this stuff than I do.

(Reply to this) (Parent)


[info]neutronjockey
2008-01-14 01:51 pm UTC (link)
yo-yo poincaire diagrams! Brilliant!

(Reply to this)


[info]meekay
2008-01-14 02:40 pm UTC (link)
Do the LEDs flash, or are they constantly on? That could be causing your sampling.

Video might work better if you fade out older points, and just show the last second of trail.

(Reply to this) (Thread)


[info]qdot
2008-01-17 05:20 am UTC (link)
Constant on. There's a spin switch system that usually makes sure they're only on while the yoyo is spinning, but I just soldered around that to avoid potential problems.

I figure I'll do signal cleanup work /after/ I try the new LEDs, otherwse I'm just preoptimizing.

(Reply to this) (Parent)


[info]markpasc
2008-01-14 04:16 pm UTC (link)
More a general wiimote project: I thought a while ago it would be neat to control a computer game character with a real marionette. One could use a wiimote to set up a cute widdle mo-cap rig at that scale. With four points you could only track the extremities, though, I guess.

(Reply to this) (Thread)


[info]qdot
2008-01-17 05:17 am UTC (link)
There were quite a few projects like that at SIGGRAPH this year, though with crazy LED setups (or even RFID, done through clothing. Completely insane). Still, with 4 points and a decent IK system, you could get /soemthing/ interesting going. I was planning on doing with that with puppeteering in SL before it went byebye. :/

(Reply to this) (Parent)


[info]djmermaid
2008-01-14 07:10 pm UTC (link)
wow, what an awesome idea! I am one of the peeps who had no idea you were a yoyo whiz (though I am actually not surprised to find it out, given what I do know of you.)

how about somehow getting a sound or light controller into the act, so the yoyo moves affect sound samples or turn lights on and off?

also, *love* "ninja star* used as a verb!

see you weekend after next!

(Reply to this) (Thread)


[info]qdot
2008-01-14 07:13 pm UTC (link)
Heh, you read my mind! Next task is hooking this up to my desk lighting system, since that will look neat without requiring video/tracking synchronization.

The desk system demo is at http://www.vimeo.com/296403

(Reply to this) (Parent)


Create an Account
Forgot your login or password?
Login w/ OpenID
English • Español • Deutsch • Русский…