This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2013-01-05 22:23:55

al-x
New Scratcher
Registered: 2012-10-03
Posts: 100+

Headtracking: controlling your computer with your head

Hello Everyone,

for the Science Fair and for another competition I have been writing a program in python in which you have a infrared LED and a Wiimote and the program gets messages from the Wiimote that have the location of the infrared LED. The program then moves the mouse on the screen according to the position of the infrared LED. This program was made for paralyzed people that can still twitch their heads but it is also a handy way to control your computer if you are too lazy to move the mouse and type in the keyboard lol!  big_smile 

If you want more info you can read my proposal at: http://tinyurl.com/bevjje7

and

to read my interim report is at: http://tinyurl.com/a87pv8q

you cannot read my final report because I have not wrote it yet.

If you have any questions please ask them below.  smile

Offline

 

#2 2013-01-05 22:32:17

pwiter
Scratcher
Registered: 2010-06-02
Posts: 100+

Re: Headtracking: controlling your computer with your head

Cool! 1 question, do you put the wiimote on your head or something?


http://i.imgur.com/YBeXc.png

Offline

 

#3 2013-01-05 22:41:20

al-x
New Scratcher
Registered: 2012-10-03
Posts: 100+

Re: Headtracking: controlling your computer with your head

pwiter wrote:

Cool! 1 question, do you put the wiimote on your head or something?

no you have to put the Wiimote close to your computer. The infrared LED is what is on your head or in your hand.  smile

Offline

 

#4 2013-01-05 23:53:40

pwiter
Scratcher
Registered: 2010-06-02
Posts: 100+

Re: Headtracking: controlling your computer with your head

al-x wrote:

pwiter wrote:

Cool! 1 question, do you put the wiimote on your head or something?

no you have to put the Wiimote close to your computer. The infrared LED is what is on your head or in your hand.  smile

Oh, that is awesome!


http://i.imgur.com/YBeXc.png

Offline

 

#5 2013-01-06 01:01:50

GP1
Scratcher
Registered: 2009-07-06
Posts: 1000+

Re: Headtracking: controlling your computer with your head

Very innovative!


I am currently http://blocks.scratchr.org/API.php?user=GP1&action=onlineStatus&type=imagehttp://blocks.scratchr.org/API.php?user=GP1&action=onlineStatus&type=text and I finally got over 1000 posts.

Offline

 

#6 2013-01-06 07:07:22

DigiTechs
Scratcher
Registered: 2011-04-30
Posts: 500+

Re: Headtracking: controlling your computer with your head

So, you put the wiimote close to the screen, and use the infrared LED to use the 'mouse'? You could change it for the sensor bar  tongue  I'm joking ofcourse, a computer doesn't have that king of port. But you could use Kinnect if the computer is a Windows - Microsoft made default support for it  smile


I'm back.
Maybe.

Offline

 

#7 2013-01-06 11:32:39

al-x
New Scratcher
Registered: 2012-10-03
Posts: 100+

Re: Headtracking: controlling your computer with your head

DigiTechs wrote:

So, you put the wiimote close to the screen, and use the infrared LED to use the 'mouse'? You could change it for the sensor bar  tongue  I'm joking ofcourse, a computer doesn't have that king of port. But you could use Kinnect if the computer is a Windows - Microsoft made default support for it  smile

well my program only works for linux and distributions of linux

Offline

 

#8 2013-01-06 11:37:34

al-x
New Scratcher
Registered: 2012-10-03
Posts: 100+

Re: Headtracking: controlling your computer with your head

al-x wrote:

DigiTechs wrote:

So, you put the wiimote close to the screen, and use the infrared LED to use the 'mouse'? You could change it for the sensor bar  tongue  I'm joking ofcourse, a computer doesn't have that king of port. But you could use Kinnect if the computer is a Windows - Microsoft made default support for it  smile

well my program only works for linux and distributions of linux

because it uses a linux-only library, Xlib

Offline

 

#9 2013-01-06 19:20:27

al-x
New Scratcher
Registered: 2012-10-03
Posts: 100+

Re: Headtracking: controlling your computer with your head

bump

Offline

 

#10 2013-01-07 10:48:29

al-x
New Scratcher
Registered: 2012-10-03
Posts: 100+

Re: Headtracking: controlling your computer with your head

bumpity

Offline

 

#11 2013-01-08 09:02:07

al-x
New Scratcher
Registered: 2012-10-03
Posts: 100+

Re: Headtracking: controlling your computer with your head

I am going to make a website with my web-based final report soon and I'm going to make a repository in Github most likely  for it.

Offline

 

#12 2013-01-12 12:16:15

al-x
New Scratcher
Registered: 2012-10-03
Posts: 100+

Re: Headtracking: controlling your computer with your head

changed libraries from using Xlib to move the mouse to PyMouse

Offline

 

#13 2013-01-13 10:55:06

boaz4
Scratcher
Registered: 2010-04-07
Posts: 31

Re: Headtracking: controlling your computer with your head

Sounds very interesting!


http://img822.imageshack.us/img822/8274/625265805511fc3m3.png

Offline

 

#14 2013-01-13 12:07:41

al-x
New Scratcher
Registered: 2012-10-03
Posts: 100+

Re: Headtracking: controlling your computer with your head

boaz4 wrote:

Sounds very interesting!

thanks!

Offline

 

#15 2013-01-13 15:27:27

GP1
Scratcher
Registered: 2009-07-06
Posts: 1000+

Re: Headtracking: controlling your computer with your head

DigiTechs wrote:

So, you put the wiimote close to the screen, and use the infrared LED to use the 'mouse'? You could change it for the sensor bar  tongue  I'm joking ofcourse, a computer doesn't have that king of port. But you could use Kinnect if the computer is a Windows - Microsoft made default support for it  smile

It would be great to add Kinect support. Although, you can so far only use the SDK in C# and C++ (I dont know about Visual Basic, I don't really use it that much). I did, at one point, make a program that uses the Kinect to track your hand as a mouse. I got rid of it, though, it was too unstable at that time. I'm thinking of starting it again.


I am currently http://blocks.scratchr.org/API.php?user=GP1&action=onlineStatus&type=imagehttp://blocks.scratchr.org/API.php?user=GP1&action=onlineStatus&type=text and I finally got over 1000 posts.

Offline

 

#16 2013-01-13 15:46:49

al-x
New Scratcher
Registered: 2012-10-03
Posts: 100+

Re: Headtracking: controlling your computer with your head

GP1 wrote:

DigiTechs wrote:

So, you put the wiimote close to the screen, and use the infrared LED to use the 'mouse'? You could change it for the sensor bar  tongue  I'm joking ofcourse, a computer doesn't have that king of port. But you could use Kinnect if the computer is a Windows - Microsoft made default support for it  smile

It would be great to add Kinect support. Although, you can so far only use the SDK in C# and C++ (I dont know about Visual Basic, I don't really use it that much). I did, at one point, make a program that uses the Kinect to track your hand as a mouse. I got rid of it, though, it was too unstable at that time. I'm thinking of starting it again.

Well I personally love the kinect I thinks its really cool the problems are: the cost, and I don't have one to test on  sad  but other than that I would add kinect support

Offline

 

#17 2013-01-14 05:54:54

Gravitation
New Scratcher
Registered: 2012-09-26
Posts: 500+

Re: Headtracking: controlling your computer with your head

You're gonna win the science fair, dude.

al-x wrote:

al-x wrote:

DigiTechs wrote:

So, you put the wiimote close to the screen, and use the infrared LED to use the 'mouse'? You could change it for the sensor bar  tongue  I'm joking ofcourse, a computer doesn't have that king of port. But you could use Kinnect if the computer is a Windows - Microsoft made default support for it  smile

well my program only works for linux and distributions of linux

because it uses a linux-only library, Xlib

That actually comes with Cygwin too, so yeah, it is possible to use it on other systems.  big_smile

Offline

 

#18 2013-01-14 09:01:32

al-x
New Scratcher
Registered: 2012-10-03
Posts: 100+

Re: Headtracking: controlling your computer with your head

Gravitation wrote:

You're gonna win the science fair, dude.

al-x wrote:

al-x wrote:


well my program only works for linux and distributions of linux

because it uses a linux-only library, Xlib

That actually comes with Cygwin too, so yeah, it is possible to use it on other systems.  big_smile

well that and it uses CWiid which is linux-only  sad

Offline

 

#19 2013-01-14 09:06:00

al-x
New Scratcher
Registered: 2012-10-03
Posts: 100+

Re: Headtracking: controlling your computer with your head

added clicking! you can now click by rotating your head  smile

Offline

 

#20 2013-01-17 09:14:00

al-x
New Scratcher
Registered: 2012-10-03
Posts: 100+

Re: Headtracking: controlling your computer with your head

bump

Offline

 

#21 2013-01-21 19:01:59

al-x
New Scratcher
Registered: 2012-10-03
Posts: 100+

Re: Headtracking: controlling your computer with your head

bumpity

Offline

 

#22 2013-01-22 08:59:07

al-x
New Scratcher
Registered: 2012-10-03
Posts: 100+

Re: Headtracking: controlling your computer with your head

The websites' skeleton is up and running at ht.ionkov.net! Some of the links may not work because I have not finished everything.

Offline

 

Board footer