Quantcast

Don't have an account? Register Now! Forgot password?

Maximum IT
Features

Build Your Own Multitouch Surface Computer

comment Commentsprint Printemail EmailDeliciousDiggStumbleUponRedditFacebookSlashdot

Software

So now we’ve completed the hardware section. The process of building a multi-touch computer is far from over, though, we need to get the software installed and configured so that we can actually use the thing.

The central software that powered our rig is Touchlib, an open source library which takes the visual data received by the camera and parses it into touch events, which can be used by other programs to provide multi-touch control. Some programs implement this library directly, allowing for standalone multi-touch apps, while others, such as those written in ActionScript, require an extra software layer to allow the program to receive touch input. In this section, we’ll explain how we got both up and running.

 

But, there’s something else we had to take care of first. The PS3 Eye, as we mentioned earlier, is a fantastic fit for this project because of its high resolution, impressive framerate, and ease of modification. There’s just one problem: it’s meant to be used on a PlayStation 3, not a computer.

Fortunately, PC users are famously unconcerned with what things are “meant to” do, and enterprising multi-toucher Alex Popovich has written a driver that allows the PS3 eye to be used with a computer. To get it working, we followed these steps:

1. Download the PS3EyeSetup file here. The download link is a ways down the page, in red, just above the comments section.

2. Make sure that the modified PS3 Eye isn’t plugged into the computer, and then run the executable. Plug the PS3 Eye back in. If the Windows found new hardware wizard pops up, tell it to search for drivers manually, and point it to the folder we installed the drivers in (C:/Program Files/AlexP/Drivers).

3. Now, we’ll want to test to make sure that the drivers are working and that our computer can see the PS3 Eye. To do this, run the PS3Eye Test App included with the driver. Because we’ve already modified the camera, you probably won’t see anything on the screen unless we point the camera at a source of infrared light, such as a light bulb or a sunny window.

 

4. Now that we know the camera works, we need to check to see that the DirectShow filter works, which will allow other programs to access the PS3 Eye. There’s another program called AmCap installed with the drivers. Run it, and if the preview view shows what the camera is seeing, we’re golden. If it doesn’t, try unplugging the PS3 Eye and plugging it back in, as well as rebooting your computer. For reasons unknown, the first time we tried, we got stuck at this stage. For us, running the uninstall program, then installing the drivers again fixed the problem.

 

Now we'd gotten our PS3Eye up and running. Next, we had to get Touchlib set up to handle our touch detection. Touchlib can be found here, and doesn’t need to be installed. We simply extracted the files to C:/Multitouch.

We had to replace certain Touchlib files with ones specifically designed to work well with the PS3 Eye. We downloaded these files here, then extracted them to C:/Multitouch/touchlib, overwriting when we were prompted to do so.

Now, at long last, we’ll get to see how our surface actually works. We ran ConfigApp.exe from C:/Multitouch/Touchlib. This program launches a total of eight windows, six of which are the video stream from the PS3 Eye, at different stages of processing. It’s a little over whelming the first time, but it’s actually not that hard to use these to get Touchlib properly configured to do touch recognition on our setup.

The most important window is the one in the bottom right, with the slider marked “Rectify” is the one that’s most significant. This window displays the “blobs” that will get passed as touch events. When the touch surface is working properly, this window will be entirely black until we touch the screen, at which point a white blob will appear, hopefully without flickering. Starting with the window in the bottom left, and moving right, we adjusted all the sliders so that we got the clearest blobs when you touch the screen. Generally, we accomplished this by playing with each slider until we started to get background noise on the Rectify window, then scaled it back slightly. Once you’re happy with the sensitivity of your screen, it’s time to calibrate.

Calibration is necessary to sync up the projected image and the touch surface. To calibrate, we first pressed the Enter key. This enables full screen mode, and displays a grid of green crosses. To begin calibration, we pressed the ‘c’ key. One of the crosses on the display turns red. By pressing on the dot, Touchlib is able to map that point in projector space to a point in camera space. The next cross will turn red, and this continues until all crosses have been pressed. We learned the hard way that when you’re done calibrating Touchlib, you must press the escape key. If you close the program any other way, it won’t update the config file with your changes.

 

Now our surface had been be properly configured (at least until we moved the camera or projector, or the lighting conditions changed significantly). To test it out, we ran the smoke.exe app in the Touchlib folder. With everything calibrated properly, colored “smoke” particle effects were displayed on our surface everywhere we touched.

However, we didn’t let ourselves celebrate for too long, because many apps written for the multi-touch surface are coded in the ActionScript language used by Adobe Flash. These programs are not set up to natively use multi-touch data, so we had to use a software layer to allow the flash-based apps to work properly. This is a three step process:

1. Change Flash’s global security settings to allow the flash apps access to the touch data. Go to this page and click the “Edit locations…” dropdown box, then select “Add Location,” then “Browse for folders.” Browse to the folder containing the flash programs you want to run, which by default is C:/Multitouch/Clients. This only has to be done once.

 

2. Run OSC.exe from the touchlib folder. This is an implementation of a protocol called OpenSound Control, which was originally designed to allow musical instruments to interface with computers, but can also be used to (among other things) allow programs to access multi-touch input data. This needs to be run any time you want to use a multi-touch flash app.

 

3. Run FlashOSCv2.jar (requires the Java runtime environment) from C:/Multitouch/Clients/flosc. And press the “start” button on the window that pops up. This program simply allows flash programs to access OSC data. This also has to be run every time you run multi-touch flash apps.

With that done, we were finally ready to try out the whole array of apps that have been written for DIY multi-touch tables. There aren’t a ton of apps available right, but we were able to find enough to have a good time with the table. Some apps come with Touchlib, in the C:/Multitouch/Clients folder, and we also recommend the AudioTouch apps, available at Seth Sandler's blog and the Multitouch Media App, by Laurence Muller.

 

Next Page: Conclusion and Bonus Gallery

COMMENTS
avatarWould it be possible to do

Would it be possible to do this with a projector like this one:

http://www.costco.ca/Browse/Product.aspx?Prodid=10322635&search=Pocket%20projector&topnav=&Mo=0&cm_re=1_en-_-Top_Left_Nav-_-Top_search&lang=en-CA&Nr=P_CatalogName:BCCA&N=0&whse=BCCA&Dx=mode%20matchallpartial&Ntk=Text_Search&Dr=P_CatalogName:BCCA&Ne=4000000&D=Pocket%20projector&Ntt=Pocket%20projector&No=0&Nty=1&Ntx=mode%20matchallpartial

Login or register to post comments
avatarwe know that we'll be forced

we know that we'll be forced to pay feescanlı sohbet to broadcasters for the first timezonguldak sohbet odaları

andistanbul sohbet odalarıunfortunately our customers will have to foot the billchat

As a small cable operator, programming issohbet odalarıour already largest expense by far, and we simply cannot absorb any moreamasya sohbet odalarıincreases in our carriage fees.voip serviceerkeklerle sohbet

This includes the importance of human rationality, individual property rights, free marketsadana sohbet odaları natural rights, the protection of civil liberties, constitutional limitation of government, and individual freedomsohbet siteleri
iskameralı sohbet
fikralarla türkiye

Login or register to post comments
avatarIR LEDS

What was the part number for the LED's you purchased from Digi-Key?

 

Login or register to post comments
avatar"The conduct described in

"The conduct described in the claims that RealNetworks seeks leave to
assert reflects a concerted and unlawful effort on the part of the
Studio Defendants and the DVD CCA to eliminate.

dissertation | dissertations |
dissertation
writing
| buy
dissertation
| custom
dissertation
| dissertation
help
| online
dissertation

 

Login or register to post comments
avatar How all to connect??

Greetings to all))) People, huge requests... Who can help with this question I will is grateful.
Please, who did this project?? Help me!!!
There is any circuit of assemblage of this device? How all to connect?? Many gathered, please help!!!!
Who agrees to me to help, write, here e-mail Vera.krylova@mail.ru
In advance thanks (In advance I apologise - English language I know not so well)

Login or register to post comments
avatarPictures of inside

PLEEASE post some pictures of inside the box, im having real trouble on where to place the webcam, mirror and projector. or if anyone else knows of any good websites that show this please let me know!  Email: AceRiiich@hotmail.com

Login or register to post comments
avatarMS version

Well it looks like microsoft has a version of this as a prize in a mobile app contest.

Check it out here:

http://www.mobilethisdeveloper.com/?CR_CC=100185013&CR_ID=P100023634799621#meteor=1R7qhtiY4W5

 I wonder if someone in Redmond saw this article and copied it for this contest. Looks like a more polished version of the one MPC did.

Login or register to post comments
avatarVellum?

Tell me why you didn't just sand the acrylic?

Login or register to post comments
avatarThanks so much, And Parts List

I'm 15, and after looking for a multi-touch monitor solution and coming up empty, i remembered that I had seen this article's title, and thought I might be able to find a little more info. Now, thanks to you, I have the funding (from my parents) to complete the project. And, I thought I might put up my used parts list, so that other people may get a handle on more compatible divices, and find a solution that works well for them.

Toshiba TDP-ET10U Projector. $375 on Amazon

  • Playstation Eye Camera. $40 at bestbuy
  • Table Material= Dark Stained Plywood, 3/8in thick. Table Height=2.5ft.
  • Acrylic, Laser Cut, Dimensions=33.85in.x19.35in. (16:9 ration matches projector). $62
  • Laminated Vellum, from local Art Supply Store.
  • Caulk Gun, From Ace Hardware≈ $12
  • Narrow Dimmable LED Ribbon Flex by the 5-meter reel (High Density Infared 850nm). $207 from environmentallights.com
  • 60 Watt 12 VDC Power Supply. $49.99 at environmentallights.com
  • A DEEP Alluminum Shower Door Channel from local store, (midered to make a good frame).≤$100
  • A good deal of patience, and roughly $850 available.
  • Over 50 hours of thourough research.

 

Hope this helps some people who weren't sure exactly what to get, or what to do to make it work well. My best advice: Choose the Projector First, and base your table off of it's abilities. 

Login or register to post comments
avatarHi! You can help me?

You couldn't help me? I write from a far city of Almaty, not so well I know English language.
You have written that have collected this device. And how you have arranged chambers? And the Mirror? If not difficultly you can answer here this address vera.krylova@mail.ru

Login or register to post comments
avatarWOW!!!!!!!!!!!!!!!!!!

I have been following the Microsoft Surface computer for a while now. I cant believe you all built this thing in the garage!

Can you please post more specific instructions. I will pay you 100's of dollars if you will do that. And I am sure lots of other people will too.

I want to build one this summer, but I need more detailed, pretty much, step by step instructions.  A detailed parts list, sequence to build it, a video of putting each portion of the system together, and more detailed information about the software loading side of thngs.

I have built pc's for a long time. But nothing like this.

This is THE COOLEST THING I HAVE ever seen. I loved the microsoft surface, but what you have done blows that away because of the cost of how you have gone about it.

Login or register to post comments
avatarWOW awesome! I will make one

WOW awesome! I will make one of those for my school project. But I wounder how it look like inside the box, make possble to show some pic inside?

Login or register to post comments
avatarAwesome future applications

This is definately the way of the future in technology. I have been saying this for years... the prospects are almost limitless... Consider space craft... no keyboards no mice less weight, but with all the familars of a computer at home without the bulk.. A star trek initiative. Give it time and incentives from goverments and businesses to developing this kind technology, we could see plenty of these in homes and cars etc... Couple with voice activation recognition software... whoa the ideas flood... You can have all this already .... for a price.... and thats typical... But building your, gives you satisfaction of accomplishment and pride... and when it works, enthusiam. I am going to build one, using the guide shown here, but with my own mods.... for example.. an old video game table (remember the first space invaders machine, something like that would be good.

 I shall give it a go and see what happens... 

 

cheers guys and thanks for the information

Login or register to post comments
avatarVery Nice

 

It very informative and nice to read

 

Nimesh – Perception
System

 

Login or register to post comments
avatarI need pictures

Hi,

Im going to build one of these this summer and im a little stuck. As other people have said, this article is vague in some parts and detailed in others. What is missing that i desperatly need are pictures. I need pictures that easily show what goes where, the only diagrams I see show pieces of this device and not where they go. Something else that is missing is (like in other How to articles) the materials guide. After reading it a few times I've got an idea of what I need but im pretty sure there is an item or two missing from my list. So if those could be posted or added in that would be awesome =D

 Thanks,

Boyo

 

Otherwise this is an excellent article and I'm trying to get my school to let us (students) build a few of these for ourselves and for the school =D

Login or register to post comments
avatarBuying and Selling

i would so buy one of these please sell them or make kits for us to make them on our own i want one so bad

Login or register to post comments
avatarVery good

Very good and very long article. I like it but unfortunately I don't have time and money to try it. I think if you opt to buy materials online for that project you can find them on Shop Carefully. Good luck in building the table.

Carlos Messi

www.shopcarefully.com baby.

Login or register to post comments
avatarPlease new photos!!!

Hello!

Can you show some photos of inside of this computer?

Yours sincerely

 Patryk

Login or register to post comments
avatarYou morons

You see a little eye candy and you all cream your pants

Login or register to post comments
avatarHey man show some restpect.

Hey man show some respect. These guys spent two weeks on building this machine (probably even more to plan it all out) and they ended up with a kickass machine. Sure you could probably use some of the aplications on a tablet pc but where is all the fun in that? Why go out to buy a small tablet pc for 3000 freakn dollars when you can build a kickass multitouch surface computer for about $350 plus an old computer? I say this is worth the time, worth the effort (especially when you convince someone to give you community service hours for school to build one of these =D), deserves some respect, and a couple thank yous while your at it

 

btw: thanks for makin this kickass article =D 

Login or register to post comments
avatarcabinent

Are there any pictures of inside the cabinent all put together? I would like to see the mounting of the camera along with the projector/mirror.

Login or register to post comments
avatarso i did some (okay maybe a

so i did some (okay maybe a lot) of researching and found most of the parts i needed and a pretty good guide to go along with the project: http://www.instructables.com/id/SCR2H4QF3ER7VQK/ the most valuable part of this guide are the pictures (the catch is a 15 sec registration).

enjoy!!! and good luck too =) 

Login or register to post comments
avatari am very curious how you

i am very curious how you guys managed to get a l * w * 3/8... all i could find was a 24*48*0.220

please help thx! 

website for the one i found: http://www.thegreathardwarestore.com/Plaskolite-24x48x-220-Acrylic-Sheet-1AG2196A-p/196843.htm 

P.S.: when they say u must order in X4 is this 4 for $54.13 total or 4 for $54.13 each? 

P.S.S.: what color led works best? im thinking blue but idk if it matters though... 

Login or register to post comments
avatarBlue Wont Work

You have to use IR LEDs, they are the only ones that will work.

Login or register to post comments
avatarIn Magazine

Hey Alex Castle why not do a full article in Max PC some issue and answer some of the questions we've got about this.

Login or register to post comments
avatarLED's

These LED's may be by far the easiest to install

 http://www.oznium.com/led-flex-strips

 

Login or register to post comments
avatarwoudl the Wii remote work on this?

From what i understand and on TED.com the Wii remote is infrared ready and cost $39 dollars...

 Alex, do you think this would work fine?

Login or register to post comments
avatarMulti-Touch PC

I'm currently studying electronics and think this is a great project. I have read through it 3 times and get most of it apart from one bit in two sections; 1. Where on earth do you get a table of that size made in that same way? Am I meant to build it from scratch? and 2. I don't get where you put the Infra-red leds, do they get soldered and stuck to wood like in p.2 or stuck to a metal strip like on p1 and the bottom of p2? Thanks.

Login or register to post comments
avatarLEDs in series?!

LEDs in series-parallel with no resistor? That's bad juju

Login or register to post comments
avatarWhat do you mean? I'm not

What do you mean? I'm not good at all with resistors and things like that. I really think I'm going to make one of these, what kind of resistor would I need and why?

Login or register to post comments
avatarIR Diodes

I found some simular diodes fo a whole lot cheaper.

here is the link

 

http://www.newark.com/vishay-semiconductor/vsmg3700-gs08/ir-emitter/dp/31M2973?_requestid=250017

 

Login or register to post comments
avatarOh wow, cheep. :)

Good job, I spent so long trying to find good priced IR LEDs, thanks, and I'm pretty sure these will work just fine too. Thanks. Pretty sure at these prices you could have IR LEDs touching each other around the whole edge and not even brake your pocket change.

Login or register to post comments
avatarHAHAHA

....Nerdgasm....

 

by the way, it would be great to have a checklist of parts and components so that we dont have to read the whole article fifteen times before going to home depot. Thanks

Login or register to post comments
avatarI am looking at parts and I

I am looking at parts and I have a question.  Could I use a pico projector?  I notice they have low lumens, is that going to be a big facter if the lights in the room have to be on or off?

Login or register to post comments
avatarI wouldn't.

Go with the TDP ET-10u. Extremely Short Throw Projector

Login or register to post comments
avatarI want to put this to even better use!

This is fantastic! Thanks MaximumPC. I have an 11 year old non-verbal Down's son who is slowly learning to use a touch screen on a conventional PC, but his motor skills are poor and it is still difficult and he gets frustrated. This large format may be just the ticket for him. My three year old Daughter would freak, too! I think I have enough skills to build this if I can manager to scrape up the $ for all the parts.

I also rely on MaxPC for the best of the best freeware - you guys are awesome! Thanks again.

Login or register to post comments
avatarCan you mix/match touch table methods?

After falling in love with this video... i was wondering can i mix/match methos of doing this?

 i want to mix the LLP method with  LLP and RDI (FDI) methods.. (laser lights VS rear or front diffusion)

 but would that even work.. 

Login or register to post comments
avatarmultiple table

I  guys ! I'm trying to build that wonderfull stuff with one of my friend ! it's just awesome!

could it be possible to run 3 or 4 or much tables with only one OS?

 

Login or register to post comments
avatarMaybe, but you would need 4 video outputs

Login or register to post comments
avatarwould you be able to use a

would you be able to use a rear projection screen tv instead of a projector?

Login or register to post comments
avatarApps you demonstrated in the video

Hey ppl. i must thank Maximum PC for their efforts on this remarkable machine. I am planning to make it as my Final year project at School. Can you guys tell me where you got the applications you have shown in the video as well as the bonus section?? thanks a ton. and once again, a great job!!

Login or register to post comments
avatarThe links are included into

The links are included into the article.

 This is a great bit of fun. I wish I had the time to tinker with it.

~No one said it would be easy....they just said it was worth it...~

Login or register to post comments
avatarMissing Information

Love the idea of this project and so do the guys I work with but I've noticed a couple things that are missing that would be nice to see.

First would be how the LEDs are connected to the acrylic. Looking at the steps I see the LEDs being soldered together from in hole in a board but a in later shots of the acrylic it looks like they are embedded or stuck to it.

Second would be the position of the camera. Call me stupid but is it suppose to be set like the leds? underneath looking up at the acrylic?

Third would how the projector is mounted, where the mirror is set. Is it hung dead center looking down at the mirror? A model of the projector would be nice, that way others would know what to look for.

Fourth. More specs on the computer used would be nice, such as OS, videocard used, PSU Wattage

Well thats the end of my rant. My boss has been looking to do something likes this for our store.

Login or register to post comments
avatarwii remote

no that is using it as something else it doesn't link to your computer as a camera it becomes an HID which is Human Interface Device. I did that project too.

Login or register to post comments
avatari think i had an orgasm when

i think i had an orgasm when i first read this lol =) its good to know that DIY touch screen is within my budget hahahaha.

great article ++rep to MPC 

Login or register to post comments
avatarWhat about the Wii Remote?

You guys went through a lot of trouble to build a touch screen when you could have just used the camera on a Wii Remote and an IR light source. You don't even have to actually buy a Wii, you can just connect the Wii Remote to the PC using Bluetooth. More info here:http://www.youtube.com/watch?v=5s5EvhHy7eQ. 

-------------------------------------------------------------------------------------------------- 

The quick brown fox jumps over the lazy dog.

Login or register to post comments
avatarOMG,this is so cooooool

I think I would need one whole year to build one for myself lol.

Hope to see it on market with reasonable price soon. 

Login or register to post comments
avatarFTIR vs. rear illumination

Actually with FTIR it works quite well. There is also a way to do it without using custom IR LED strands. IR lasers are possible one of the neatest ways to do it. My friend made one and with it you don't really have to worry as much about the room being dark and having no lights on. The lasers are so bright that they pretty much block the effects of ambient lighting.

Login or register to post comments
avatarLaser parts link?

That's cool. Do you have a link to the laser parts used?

 Thks!

Paul

wotudo.net

Login or register to post comments
avatarI built my own Multitouch even simpler design

I recently showed my mutli-touch machine at Maker Faire UK.

Rather than using FTIR I used the rear IR diffused method. This required no custom electronics because I used the CCTV IR illuminators as my IR source. I then modified an Xbox Live Camera to have a IR Band filter and then it was just the table I had to build. I did the whole thing for less then £90 (so about $140) because I had the Xbox camera (but almost any web cam will do) and I borrowed a projector from work!

I made a video of it, you can see how I put it all together at http://www.youtube.com/watch?v=izwb_uCitxU 

I also used an multitouch application built by members of the NUIGroup with XNA. This gives a great user experience - very Surface like :-)

Its all in the video so please take a look! My blog has more details - I'd be happy to help others looking  at doing this sort of thing so ping me if you need help!

Paul 

wotudo.net

Login or register to post comments

This Month's Issue
FEATURE How to Get FREE Programs, Services, Software & MoreFEATURE Digital Photo Printer RoundupHOW TOBuild a 3D CameraFEATUREDIY Arcade PCWHITE PAPERHow TRIM Works