Instructables
This is my first Instructable so please be nice. This is how to make a multi-touch interface out of you desk for very little money. Finally got a video uploaded,sorry about the bad frame-rate my laptop isnt all that good.

 
Remove these adsRemove these ads by Signing Up

Step 2: The Software and Setup

C:\Documents and Settings\David\Desktop\New Folder\IMG_0534.jpg
C:\Documents and Settings\David\Desktop\New Folder\RR.bmp
For this step we will be setting up the software to read and interpret the image. You can download this software from there website www.roborealm.com. iI have not perfected the software for using fingers,kinda hard to seperate them,but..., I do have a pen like thing that I built from random things lying around my room that powers up an LED. The file Pen.robo is for using the LED pen thingy,u can use anything that powers up an LED and for added precision you can put an IR filter over the camera that is made from either a floppy disk drive or a completely dark spot from a negative on camera filem strip, And the file Touch.robo is for using hands but is not perfected.

Step 3: The LED Pen device

The following pictures(sorry about the quality) are my newest version of the LED pen device, in the picture i have about 6-7 LED's attached but you only need 1 or 2 for extra precision

Materials needed are
3 volt small clock/watch battery x 1
Zip tie x 2
Electrical Tape
Switch with 2 wires coming out of it
LED's x 1/2 (your choice)
Penny x1

Steps for it are:
1) take the + side and face it down
2) put a wire to the switch on the - side
3) wrap zip tie tightly around battery so wire is held firmly, cut off excess zip tie
4) put tape on battery and zip tie
5) place penney on tape making shure it does NOT touch the battery
6 place second wire to switch on penny
7) tightly tie second zip tie in opposite direction than first one and cut off excess
8) place squares of tape on top/bottom
9) insert LED(s) by taking the long end and bending it up a little and then further down bending it down so the two wires a further apart but still even and parallel with each other


and make shure the - side touches the penny and the + touches the + side of the battery and when you flip the switch it should turn on, this is a very easy/compact way of doing an LED pointer for this project
1-40 of 73Next »
Jahfer6 years ago
How exactly do you download the files? all i do is click them and it takes me to a blank site thingy and it shows "http://www.instructables.com/files/orig/F2M/35LI/F5HVTEJN/F2M35LIF5HVTEJN.tmp"
hey whats up? hear you can try my link to the download its downloading for me right now

http://www.roborealm.com/d.php?e=carrock19@yahoo.com&k=1934276738
please dont use my e-mail for anything bad think you and this link works
Jahfer Jahfer6 years ago
also teh text in it is 1.7.21.1 205 0 320 0 TRUE 4 100 1 2 Current Source TRUE -90 0.00 -60 2 TRUE 2 TRUE -1 FALSE TRUE 9 TRUE -1 gui newX 1400 1050 newY...what do i do with this?
mobilegamer999 (author)  Jahfer6 years ago
Just save that file as a .txt and then after it is done downlaoding hange the extension to .robo
dunnos6 years ago
very very nice project 4 stars because i had to figure it out a lil by myself idea for a sweet add on: 4 point calibration :)
Trevmister86 years ago
The touch one won't register my hand at all. Instead the thing locks onto the backround AND spazzes out I tried putting the thing so it is facing away from the light and my hands would be reflecting the light (night) and it still spazzes out, locked onto a black backround. What is the cause of this? BTW no laser pointer or LED or anything that I could rly use >_>
The camera with IR filter seems to work better because it only picks up light that is escaping from the IR lens.
i dont get how to use the script
gomalopa6 years ago
the software doesn´t show me anything. only a grey screen. Why is that? and also I can get any signal or movement. please help!!!
Trevmister86 years ago
OMG I want to do this so badly! Sadly, though, I don't have a glass surface I could use, or even clear plastic... or do I.... Well... I have clear plastic that WOULD be usable.. if it weren't for the dips in it. It is from the Serpent's Spiral coaster set thing and it has some things dipped in to separate the areas. Would this work? I would have to use legos or K'nex to hold it up, but that isn't what I'm asking. Would it work? Also, I don't have a usable red/blue/anything LED. Unless I were to use something rly bulky lol.
mobilegamer999 (author)  Trevmister86 years ago
send me a picture of what it is your are planning on using and ill tell you how well it can work, and for a LED thing, for a low-cost solution if you want I can tell you how to make a LED light thing with only (2 zip ties, electrical tape, a 3 volt watch battery, a penny and a switch)
I can't do that and here is why. Well I am using my only camera (a PS2 accessory hooked up to my PC) so if I set it up for the pic I can't take it.
DBeta7 years ago
That's pretty cool. I was playing around with it and found that my 15FPS webcam just isn't fast enough to be translated over a whole screen. So my idea would be to change it to work like the pad on a laptop. Would that be possible? As it stands I have a 1280x1024 screen, and moving the cursor at a decent rate across the screen takes just a few frames, meaning very rough mouse movement. I actually sped it up a lot by disabling "low light boost" in the advanced tab of the video capture area, but I'd still like more tracking like systems.
luke7 years ago
i am very impressed with your project, and so i decided to do my version, i have used part of your software in my project a 3d mouse using a web cam. thank-you again for releasing your code as i used it for school :) .
i have posted it here laserlife.googlepages.com/project
best regards
luke
Hey, I had a great idea for clicking, I am not sure if it would work yet. The Basic Concept: To move the mouse you hold the pen at a certain height. To click you just move the mouse closer to the glass. I think this would be possible. Just thought I would add a little something.
mobilegamer999 (author)  karatedude927 years ago
I thought of that when I made this but you have to lift it far up from the glass for there to be a noticeable difference in the size of the blob.
O yeah it would be awkward to have to stand up just to move the mouse Oh well.
could you use a rubber sheet with a grid on it stretched out over the area and have it detect deformations in the grid?
Gnome finfan77 years ago
Wow man, that's good thinking. Unfortunately, I don't know how to this. Anyone?
hi when i run the program it only works in the top bit of the screen it wont work the full screen thanks
mobilegamer999 (author)  cheesemaker1017 years ago
whadda u mean by,it only wokrs on the top bit,as in it doesnt recognize it if its lower? And are you using an LED to control it?
when i have my screen on 800by600 pixels it moves the mouse on the whole screen but i use mine on 1280 by 1024 pixels it only moves the mouse on the top corner of the screen
mobilegamer999 (author)  cheesemaker1017 years ago
in RoboRealm are you using the pen.robo file that i have,or did you make your own file,if you made your own you need to include the VBScript part of the pen.robo file because that stretches the coordinates to fit the screen.
i made my own because i used a blue led insted and i dint no how to change it i had the vbscrip running and it still dint work
mobilegamer999 (author)  cheesemaker1017 years ago
Take the one that i have and where it says RGB filter double-click it,a winow will pop up and it will have some check boxes,un-check red and check blue and you will be set,also,you might want to edit the cropping because your camera is most likely set up different.
hey mobilegamer999 i've been reading and i like your idea, i think i've got my head around it. You have problems with your mouse system and i think i might have a way to fix it. If your camera picked up two colours you could put a tri-colour LED in your pen. You could then add an SMD switch into your pen and when you clicked the SMD you would change the colour. The problem is you would have to change your software so you could pick up two colours at once. In the end you would have software and a camera which could pick up two colours at once and a pen (which would still be slim)and would have a tri-colour LED in it and an SMD switch. Hope i can help you P.S. you would have to change your software a bit.
thanks it works fine now great instructable
steve blair7 years ago
For the clicking, I'm imagining taking apart a wireless mouse and mounting the electronics and smaller buttons onto this LED-pen. I guess this depends on whether the roborealm software actually replaces the default mouse or whether it works along side it. I'll have to look into this once I move into my new place if nobody else does it first.
mobilegamer999 (author)  steve blair7 years ago
That would work well and RR doesnt over-ride the mouse so clicking using that would work, heres some pros/cons

Pros:
Clicking(Obvious)
Simple,and intuitive
Could easily be placed for comfortability

Cons:
Probably hard to take apart the mose so that all you have left is the buttons and no movement part without causing some kinda internal error

I wanted to make the thing as smal as possible and putting the mouse on would make large and bulkey,and if you can get it working id love to see pics of it and possibly a vid of it
fosho47 years ago
Cool idea.
I am definitely going to try this.
I had been looking at something like this for a while but needed software for it and this seems to be the perfect match.
I'm goin to combine this idea with another one I saw on youtube: [url]http://youtube.com/watch?v=yzNh31q61gc[/url]
This will hopefully filter out any confusing colors for the camera.
I think the software will have to be changed slightly though.

Thanks for the great instructable!!!!!
I need help. I can get the program to work, and I can move the mouse, but I can't get it to click anything! Other than that, this is one of the best multi-touch projects I've seen (for the cost: FREE!). Keep up the good work.
mobilegamer999 (author)  ferrariman6107 years ago
Yea,i dont have the clicking part working, once i can get around to finding some tracing paper or actually buying it (im broke)>_<. But once i can get around to getting some i will update the instructable and the files.
ll0ll7 years ago
this looks cool, i will tr yit. Couple of questions : How did you work out the drawing area size on the glass? Is you "LED pen thingy" just a pen converted to shine light? Is it an infrared LED, or what colour is it? Sorry, I'm a noob at all stuff like this. thanks in advance
mobilegamer999 (author)  ll0ll7 years ago
The LED pen thing was just made from completely random parts i found lying around my room,The battery holder is made from a tube that held those things u crack and they glow,and it was perfect for AA batteries and i just coiled wire at each end to conect to the terminals of the batteries and i hooked that up to a switch to the LED. and its a red LED but i do have a partial IR filter over the camera lens which relieves all ambient light differences.
ok, thanks so 'll muck around with making a light pen.

So how does it actually control the mouse?
How do I configure the program to do that?
mobilegamer999 (author)  ll0ll7 years ago
The program looks for a big red dot and gets the center of it and stretches that coordinate to fit the screen and then sets the stretched co-ordinate and sets it as the mouse position.
What's the program/instruction you're using? I kinda have a semi-working thing, but I was wondering what you'd done. Does the IR filter help a lot, cause I've been using the center of gravity piece/module/thing in the program to move the mouse. ie the mouse modules x and y settings are set to cog_x and cog_y respectively. What does the glass do, other than provide the max possible area and convience for the pen? Lastly, what resolution webcam are you using? ~Istarian P.S. below you said "in RoboRealm are you using the pen.robo file that i have,or did you make your own file,if you made your own you need to include the VBScript part of the pen.robo file because that stretches the coordinates to fit the screen." What VBscript part is that?
mobilegamer999 (author)  Istarian7 years ago
A:) Thaks for the intrest B:) The IR Filter makes it more precise,and without the filter if i touch my hand down to the desk my had gets red from the light and that messes it up C:) The glass,on my desk at least, scatteres the light so objects about 4-6 inches above it dont show up(you can simulate this better by using tracing paper which i cant find any even thou i just saw some the other day >_< ) D:)I believe my resolution is 240*360 E:)The VBScriptProgram is found under the extentions categoryr on the left side of RR
Just for kicks, any chance you could like list the parts/modules that make up your pen.robo file and any specific settings they need. I particularly want to know what your doing for making the mouse move, ie what you have to accomplish what you said above, "The program looks for a big red dot and gets the center of it and stretches that coordinate to fit the screen and then sets the stretched co-ordinate and sets it as the mouse position." ~Istarian
1-40 of 73Next »