Control your computer using a laser or IR pen.

 by TheInventor
This is a different way to control your computer using a laser. Unlike [http://www.instructables.com/id/Control-your-Computer...-with-a-LASER!/ icinnamon's] way, this uses a webcam and a laser to control the cursor on your computer. You can even click by simply turning the laser off for a split second.

~Robert Collier
 
Remove these adsRemove these ads by Signing Up

Step 1: Download the software and get a laser or IR pen.

IR Pen.bmp
Radioshack Laser.jpg
First you must download Microsoft Visual C#. After you have Microsoft Visual C# downloaded, download Laser Interaction. The file name will probably be really weird, so rename it Laser Interaction. Now you will need a laser or IR pen to use it. The first picture is a schematic I made of a simple IR pen you can make. I am using a 100 ohm resistor because I am using 5 volts from a USB cable. You need to have a momentary pushbutton switch on it. I used a normally opened switch so when I press the button, it will click. I also bought a cheap $5 dollar laser from radioshack. I'm sure you can find one cheaper, but I love radioshack stuff.
knexpert1700 says: Aug 8, 2012. 3:19 PM
WON'T WOKR ON VISTA ,

I've tried to open motion on my other computer and it keeps on openingMicrosoft Visual 2005, how can I fix this? (I have completely deleted and uninstalled Visual 2005) HELP!
knexpert1700 says: Aug 6, 2012. 8:33 AM
It worked!
knexpert1700 says: Aug 6, 2012. 8:14 AM
Doesn't work for me. Could you please update this to Microsoft Visual C# Express 2010 please. Help! :)
knexpert1700 in reply to knexpert1700Aug 6, 2012. 8:18 AM
Also, the error is that when I click on the motion file it opens Visual C# and says that there is a conversion error. It comes with a solution and fixes it but I now cannot click run to open the next window as said in step 3.
Chu Guk says: Nov 10, 2010. 9:07 AM
Hmm, I got really exited about this project, it's really cool, but the motion gave an error when I tried to install it. Any idea?
aeewhite says: Aug 3, 2010. 9:58 PM
I downloaded the file but could not get it to work. Could you upload a standalone application. eg an .exe
lordjn says: Jun 18, 2010. 3:15 AM
cant you just upload the compiled application?
lordjn says: Jun 18, 2010. 3:08 AM
cant you just upload the binnary file?
lj123456 says: Mar 27, 2010. 12:54 PM
how do you make the program more effecint
lj123456 says: Mar 27, 2010. 9:12 AM
this is a amazing project but i wanted to know if you can rewrite the program to track the ir led / laser faster
Se1f_Destruct says: Jul 7, 2009. 10:03 AM
Cool, but hard to control.
cheat says: Mar 4, 2009. 8:45 PM
will this mess up my laptop screen?
illdoyourdrugs says: Feb 23, 2009. 2:37 PM
This is interesting. So how good would you say it works on a scale of 1-20?
ReCreate says: Feb 9, 2009. 12:03 PM
after a long hour or so of downloading in the last minute it just says that the program needs to close and then it undoes EVERYTHING I tried it 5 times and it just does that as if it is supposed to do it! what gives!?
alsyan says: Jan 14, 2009. 7:40 PM
Could your project work on full screen games?
cormac3050 says: Nov 15, 2008. 12:48 PM
Are you using win95/98/2000? or just using the "windows classic theme?
TheInventor (author) in reply to cormac3050Nov 18, 2008. 9:31 PM
I was just using the classic theme. It's XP
Boon Pek says: Sep 12, 2008. 6:24 AM
You're the best... Really
Kiteman says: Aug 1, 2008. 7:55 AM
Fascinating! I have a question, though. I teach with an interactive whiteboard. Normal interface is by touch or with a wireless mouse. The wireless mouse only lets me work 4 or 5 metres from the board (because of where the PC is fixed). Could your project work on the whiteboard? That is, would the programme be able to tell laser-dot from the generally bright background? If so, you would have a lot of interested users in schools, as well as speakers doing talks with slides and presentations.
PKM in reply to KitemanAug 9, 2008. 6:03 PM
I believe the way simple laser tracking works is finding the brightest pixel in the camera's field of vision. If the projection is relatively uniform with a light-coloured background, then the laser should stand out as the brightest point, but if much of the projection is dark with a small bright blob the software may get confused. One of my computer science contemporaries did a dissertation on exactly what you intend to do (controlling a computer via a laser pointer on the projection screen) and I think his verdict was "buy a bright laser pointer" :) although his program did calibrate to the projection so may have done some clever trickery with subtracting the projected image from what the camera can see, or something like that. Perhaps I should email and ask for a copy of his dissertation? :P
threecheersfornick in reply to KitemanAug 1, 2008. 5:38 PM
TheInventor (author) in reply to threecheersfornickAug 1, 2008. 7:39 PM
Like I said.............please read the instructable if you haven't. Don't just read the comments. I have stated it wouldn't be as accurate, but thanks for shooting me down anyways.
threecheersfornick in reply to TheInventorAug 2, 2008. 10:43 AM
I'm sorry... I didn't mean to shoot you down, but in hindsight, I suppose it did sound a bit like that. My main point was that other people have gotten it to work with the wiimote, and until you figure it out, I thought those would help. Sorry. P.S. -- I do like the instructable a lot...
TheInventor (author) in reply to threecheersfornickAug 2, 2008. 5:00 PM
It's ok, and thank you. Even though this isn't as accurate, it still works, and thats the main point.
TheInventor (author) in reply to KitemanAug 1, 2008. 1:26 PM
Well, as I had said in the instructable, it really isn't as accurate as others, but I'm sure if you set it up right, you could use it for the whiteboard. I've even tried tweaking the program a bit, but when the threshold is at 255, it pretty much blocks all light. And the other half of the time, it will sense the light from the computer or, in your case, whiteboard. I'll add an update for this instructable soon, so it could possibly work with a certain color of your choice. Hope that answered your question, and thanks.
mycroftxxx says: Aug 1, 2008. 4:57 PM
Do you know of any way to do this under linux? A similar project or anything? We have an ubuntu-based media box in our living room with a projector, and being able to control the system with a laser pointer would make for a nice hack
TheInventor (author) in reply to mycroftxxxAug 1, 2008. 7:45 PM
Hmmm. That's a tough one. The only reason I wouldn't think it would work is because it's a linux. Even so, just try it and see. I would still recommend an infrared pen instead of a laser. Well, actually, thats just me. Anyways, yeah. Just try it and see. If it doesn't work then I'm very sorry. I'm in the process right now making a program thats compatible for other systems.
DJ Smoothie says: Aug 1, 2008. 7:36 AM
pretty cool....
TheInventor (author) in reply to DJ SmoothieAug 1, 2008. 1:28 PM
Thanks. It really is cheaper than buying a wiimote.
poolshark162006 says: Jul 31, 2008. 6:54 PM
sweet!, i have to download like everything... more then just visual C+ it is 57MB total so pretty small but there is the network framework and every thing... hope it works!!!
TheInventor (author) in reply to poolshark162006Jul 31, 2008. 9:05 PM
It will. Don' t worry. If you need help setting it up, just message me.
rtyrtyrtyrty says: Jul 31, 2008. 6:31 PM
Oh my gosh! it actually works!
TheInventor (author) in reply to rtyrtyrtyrtyJul 31, 2008. 9:04 PM
Well it should.
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!