Blog Forum Wiki Links Contact Us NetbookUser
RunCore Pro IV SSD Transforms your ASUS EEE PC by increasing 
performance 5-40X. Your satistfaction guaranteed RunCore Pro 70mm SATA Mini PCI-e SSD
RunCore Pro IV 70mm SATA II Mini PCI-e SSD
RunCore Pro IV 2.5 Inch SATA II SSD

You are not logged in.

#1 2007-12-25 11:42:02 am

eFfeM
Senior Member
Registered: 2007-10-21
Posts: 861
Website

using a WII remote with eeePC

Triggered by this post: http://forum.eeeuser.com/viewtopic.php?id=5058 I decided to give it a try to use a wii remote with the eeePC.

It was a little bit messy so I do not feel too happy yet to add it to the wiki, but let me tell you what I did.

What you need:
- a wii remote
- a light source
- a usb bluetooth dongle.

I decided to go for the CWiid driver. For that I needed the debian packages lswm and wminput. However these are not in etch yet, so I started off changing /etc/apt/sources.list and add a line
deb ftp:/ftp.nl.debian.org/debian testing main contrib non-free
Of course you should use a debian mirror near you.See http://wiki.eeeuser.com/howto:adddebianfeeds for details.
Using testing gives me lenny which does contain these modules.

Next step was as superuser execute:
apt-get install lswm wminput mouseemu
This however dragged in a LOT of other modules (and make sure you did not apt-pin the eeePC feeds), so this is the messy part of it.

Now in order to run it the module uinput.ko is needed. I've build that one as well. It can be found on http://www.eeepc.speedlinq.nl/
Just download, unzip and untar, then put the module somewhere below /lib/modules/2.6.21.4-eeepc
Next:
insmod uinput.ko
to load the module.

You also need to have bluetooth on your system. I seem to recall the modules are already there initially, but unfortunately I have no good way to check that.

Next insert the usb bluetooth dongle.
type the command:
hciconfig hci0 up

Then start wminput; press 1-2 on the remote and wave your wii remote up and down. If you are lucky you now see the cursor move.
With this I managed to get some up/down movement. Left/right could only be done by rotating the remote. Generally the result was not that good.

However the wii remote can use an IR source to improve the movement.
The trick to achieve this is:
put a light source near your eeePC. (I used a portable flashlight pointing towards me).
Then type:
wminput -c ir_ptr

When I did that the tracking was a lot better. My accuracy with the pointer is not as good as with a mouse, but it is quite OK.
Next week I'll probably try to obtain some IR leds and solder them to a USB cable. Any advice on this is appreciated (would it be ok to put 3 IR leds in serial and put 5V over them, or should I add a resistor or something like that)?

If you manage to get this working or if there are questions, please report back.

FM


All opinions, information etc in this forum post is copyrighted by me (eFfeM) unless indicated otherwise.
You are free to reuse whatever you want to, provided that:
1) you give credit to me and eeeuser.com whenever you reuse anything for all things you reused.
2) you do not pretend or create the illusion that your modifications are mine. I'll be responsible for my junk, you for yours smile

Offline

 

#2 2007-12-25 11:57:26 am

Ian_D
Member
Registered: 2007-12-09
Posts: 28

Re: using a WII remote with eeePC

Have you got any video of this?

Offline

 

#3 2007-12-26 4:49:36 am

ichbinbored
Senior Member
Registered: 2007-12-05
Posts: 171

Re: using a WII remote with eeePC

Try the LED resistor calculator to see if you'll need to use a resistor.

Offline

 

#4 2007-12-27 11:19:31 am

eFfeM
Senior Member
Registered: 2007-10-21
Posts: 861
Website

Re: using a WII remote with eeePC

Sorry no video. I don't think my cam wil give me a good enough quality, let alone that I probably won't manage to operate both the eeepc+wii and the cam at the same time.

@ichbinbored: thanks for the calculator. I'll definitely use it.

One question on this: I found an IR led that is available in a local store. It is 1.3 V. For a 5V power source the calculator proposes 3 in series and a resistor of 22 ohm. Would it be ok to put 4 in series? I 'm planning to get the power from usb.
I have no idea how well those leds work if they only get 1.25V instead of 1.3.


All opinions, information etc in this forum post is copyrighted by me (eFfeM) unless indicated otherwise.
You are free to reuse whatever you want to, provided that:
1) you give credit to me and eeeuser.com whenever you reuse anything for all things you reused.
2) you do not pretend or create the illusion that your modifications are mine. I'll be responsible for my junk, you for yours smile

Offline

 

#5 2007-12-27 11:34:44 am

ichbinbored
Senior Member
Registered: 2007-12-05
Posts: 171

Re: using a WII remote with eeePC

They should be fine if it's just under the correct voltage. It's overvoltage you've got to look out for.

Offline

 

#6 2007-12-27 1:06:06 pm

eFfeM
Senior Member
Registered: 2007-10-21
Posts: 861
Website

Re: using a WII remote with eeePC

Ok, thanks.
Actually meanwhile I dug further into this and I guess I will  just buy one of those wireless sensor bars from ebay as they are less than $ 10 including shipping (the wireless actually just means it is battery operated, not cable operated).
Saves the hassle making one and making a nice box to put them into.


All opinions, information etc in this forum post is copyrighted by me (eFfeM) unless indicated otherwise.
You are free to reuse whatever you want to, provided that:
1) you give credit to me and eeeuser.com whenever you reuse anything for all things you reused.
2) you do not pretend or create the illusion that your modifications are mine. I'll be responsible for my junk, you for yours smile

Offline

 

#7 2007-12-29 1:42:43 pm

ichbinbored
Senior Member
Registered: 2007-12-05
Posts: 171

Re: using a WII remote with eeePC

By the way, I'm guessing that pressing 1+2 on the wiimote syncs it to the eee. Is it possible to sync more than one at a time? And does one of the buttons click the mouse?

Offline

 

#8 2007-12-30 4:48:13 am

eFfeM
Senior Member
Registered: 2007-10-21
Posts: 861
Website

Re: using a WII remote with eeePC

I guess you can connect more wiimotes to one eeePC. Might require some work though.. One wiimote to more eeePC's at the same time is probably not possible.

Pressing 1+2 brings the wiimote in discovery mode which eventually leads to pairing the wiimote with the eeePC. The wiimote uses bluetooth to connect to the wii (or eeePC).
With the wminput program you can load your own config file and define the keybindings. I have not really played much with this.

Last edited by eFfeM (2007-12-30 4:48:29 am)


All opinions, information etc in this forum post is copyrighted by me (eFfeM) unless indicated otherwise.
You are free to reuse whatever you want to, provided that:
1) you give credit to me and eeeuser.com whenever you reuse anything for all things you reused.
2) you do not pretend or create the illusion that your modifications are mine. I'll be responsible for my junk, you for yours smile

Offline

 

#9 2007-12-30 2:43:29 pm

ichbinbored
Senior Member
Registered: 2007-12-05
Posts: 171

Re: using a WII remote with eeePC

I seem to remember that it's possible to have more than one mouse on Linux at the same time. If the wiimote is just coming up as a human interface device then it should work. I've only got one wiimote at the moment (and no eee at all) so I probably won't be able to try it for a while though. I'll take a look at wminput to see what other stuff it'll do while I'm waiting.

*edit* the WiiLi.org wiki has instructions on binding buttons to events at http://www.wiili.org/index.php/Wminput.

Last edited by ichbinbored (2007-12-30 2:48:17 pm)

Offline

 

#10 2008-01-03 5:02:56 pm

ichbinbored
Senior Member
Registered: 2007-12-05
Posts: 171

Re: using a WII remote with eeePC

By the way, I tried this method out on another PC using Ubuntu 7.04 live cd (7.10 wouldn't boot for some reason) and when I added the Debian repository it said it couldn't find the packages lswm, wminput and mouseemu. I ended up using this method which worked, although I needed to install autoconf, flex and some other stuff which I can't remember, and I had to compile a few of the packages myself. This method seems a lot easier, hope it works!

Offline

 

#11 2008-01-04 2:35:34 am

eFfeM
Senior Member
Registered: 2007-10-21
Posts: 861
Website

Re: using a WII remote with eeePC

No, the needed modules are not in 7.04, but they are in 7.10 They are also not in etch, that's why I moved to lenny.
Actually I went back to my etch version yesterday, after a brief experiment with another os, not to be named here (let's call it os x smile ). I was planning to rebuild for eeePC on my own and one way or another make the resulting stuff available. If anyone has a good reference to how to make a .deb file I'll use that, otherwise it probably will be a tar file with the resulting output.


All opinions, information etc in this forum post is copyrighted by me (eFfeM) unless indicated otherwise.
You are free to reuse whatever you want to, provided that:
1) you give credit to me and eeeuser.com whenever you reuse anything for all things you reused.
2) you do not pretend or create the illusion that your modifications are mine. I'll be responsible for my junk, you for yours smile

Offline

 

#12 2008-01-04 12:57:10 pm

ichbinbored
Senior Member
Registered: 2007-12-05
Posts: 171

Re: using a WII remote with eeePC

http://ubuntuforums.org/showthread.php?t=51003 is a good guide on how to make a deb, and you can skip writing most of the changelogs, copyright notices etc. because this probably won't be going into an official repository. I don't mind compiling from a tar though.

Offline

 

#13 2008-01-06 12:21:04 pm

eFfeM
Senior Member
Registered: 2007-10-21
Posts: 861
Website

Re: using a WII remote with eeePC

I have added a wiki page on how to install the wii driver software.
It is at http://wiki.eeeuser.com/howto:wiimote
Feel free to improve smile

I decided not to go for a deb. If someone feels challenged, be my guest.


All opinions, information etc in this forum post is copyrighted by me (eFfeM) unless indicated otherwise.
You are free to reuse whatever you want to, provided that:
1) you give credit to me and eeeuser.com whenever you reuse anything for all things you reused.
2) you do not pretend or create the illusion that your modifications are mine. I'll be responsible for my junk, you for yours smile

Offline

 

#14 2008-01-06 4:29:31 pm

ichbinbored
Senior Member
Registered: 2007-12-05
Posts: 171

Re: using a WII remote with eeePC

Thanks for making the tar file, I've updated the wiki entry with some info about wminput etc.

Offline

 

#15 2008-01-11 12:39:32 pm

silurius
Senior Member
Registered: 2007-10-18
Posts: 350

Re: using a WII remote with eeePC

Any tips on how to get this working under Windows, assuming that is even possible?

Offline

 

#16 2008-01-11 3:11:58 pm

ichbinbored
Senior Member
Registered: 2007-12-05
Posts: 171

Re: using a WII remote with eeePC

You can use GlovePIE to use the Wiimote under Windows, as long as you have the right Bluetooth drivers (eg. bluesoleil) installed. There's a good tutorial at http://www.wiili.org/GlovePIE. That said, I couldn't get bluesoleil installed at all with Vista and my £2 bluetooth adapter wouldn't work properly under XP. Worked perfectly on Ubuntu though.

*edit*

There are loads of scripts available at http://www.wiili.org/forum/glovepie-wii … -t360.html so you can get it working emulating the mouse etc.

Last edited by ichbinbored (2008-01-11 3:19:22 pm)

Offline

 

#17 2008-01-14 5:12:26 am

eFfeM
Senior Member
Registered: 2007-10-21
Posts: 861
Website

Re: using a WII remote with eeePC

i have had it running under xp as well, but did not record my steps. Basically I followed one of Johnny Lee's instructions.
I used bluesoleil


All opinions, information etc in this forum post is copyrighted by me (eFfeM) unless indicated otherwise.
You are free to reuse whatever you want to, provided that:
1) you give credit to me and eeeuser.com whenever you reuse anything for all things you reused.
2) you do not pretend or create the illusion that your modifications are mine. I'll be responsible for my junk, you for yours smile

Offline

 

#18 2008-01-14 11:19:58 am

ichbinbored
Senior Member
Registered: 2007-12-05
Posts: 171

Re: using a WII remote with eeePC

I followed Johnny's instructions, but it just kept randomly disconnecting before I could even get it set up as a human interface device.

Offline

 

#19 2008-01-15 5:49:44 am

eFfeM
Senior Member
Registered: 2007-10-21
Posts: 861
Website

Re: using a WII remote with eeePC

Ah, maybe I should have worded things better.
I did this on XP, but not on my eeePC, but on a Dell laptop.
It was indeed somewhat tricky to connect. I think I used pair device in bluesoleil. pin is 0000
But I recall I needed some tries as well.

Btw: for those who do not know it: Johnny's website is at http://www.cs.cmu.edu/~johnny/projects/wii/


All opinions, information etc in this forum post is copyrighted by me (eFfeM) unless indicated otherwise.
You are free to reuse whatever you want to, provided that:
1) you give credit to me and eeeuser.com whenever you reuse anything for all things you reused.
2) you do not pretend or create the illusion that your modifications are mine. I'll be responsible for my junk, you for yours smile

Offline

 

#20 2008-01-15 6:06:51 am

ichbinbored
Senior Member
Registered: 2007-12-05
Posts: 171

Re: using a WII remote with eeePC

Yeah this was on XP, Bluesoleil just kept coming up with a message saying the "hardware was disconnected" (as in the actual dongle), while XP randomly made those irritating bell noises that you get when you plug in + unplug stuff. I think the dongle itself is ok because it worked perfectly on ubuntu, but it could mean that there was something wrong with my computer. It doesn't matter anyway because I should (hopefully) have an eee in the next few days big_smile

Offline

 

#21 2008-09-16 1:31:45 pm

Syscrush
New member
Registered: 2008-09-15
Posts: 1

Re: using a WII remote with eeePC

Has anyone managed to get this really working properly?  I've heard good things about the WMD driver set used with other Linux distros, but not Xandros on the EEE.

I'm not a Linux/Unix expert by any means, but I'm interested in trying this out if it has a shot at working.  I'd like to be able to do a bit of basic browsing from my couch with the EEE hooked up to my TV.

Offline

 

#22 2009-01-06 8:18:01 pm

Jeon
Member
Registered: 2009-01-03
Posts: 80

Re: using a WII remote with eeePC

Would it be possible oh say to use
http://cgi.ebay.com/USB-Powered-Flash-L … 7C294%3A50
only solder a IR led in place of the other one. I have these at work for like 1$ and would make for a quick fix for a source


~ EEE 900ha w/ 2gb ram Windows 7~

Offline

 

Board footer

Powered by PunBB 1.2.15
© Copyright 2002–2005 Rickard Andersson