using a WII remote with eeePC
#1
Posted 25 December 2007 - 04:42 PM
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....: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
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 :)
#2
Posted 25 December 2007 - 04:57 PM
#3
Posted 26 December 2007 - 09:49 AM
#4
Posted 27 December 2007 - 04:19 PM
@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.
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 :)
#5
Posted 27 December 2007 - 04:34 PM
#6
Posted 27 December 2007 - 06:06 PM
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.
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 :)
#7
Posted 29 December 2007 - 06:42 PM
#8
Posted 30 December 2007 - 09:48 AM
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.
Edited by eFfeM, 30 December 2007 - 09:48 AM.
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 :)
#9
Posted 30 December 2007 - 07:43 PM
*edit* the WiiLi.org wiki has instructions on binding buttons to events at http://www.wiili.org/index.php/Wminput.
Edited by ichbinbored, 30 December 2007 - 07:48 PM.
#10
Posted 03 January 2008 - 10:02 PM
#11
Posted 04 January 2008 - 07:35 AM
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 :) ). 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.
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 :)
#12
Posted 04 January 2008 - 05:57 PM
#13
Posted 06 January 2008 - 05:21 PM
It is at http://wiki.eeeuser.com/howto:wiimote
Feel free to improve :)
I decided not to go for a deb. If someone feels challenged, be my guest.
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 :)
#14
Posted 06 January 2008 - 09:29 PM
#15
Posted 11 January 2008 - 05:39 PM
#16
Posted 11 January 2008 - 08:11 PM
*edit*
There are loads of scripts available at http://www.wiili.org...ripts-t360.html so you can get it working emulating the mouse etc.
Edited by ichbinbored, 11 January 2008 - 08:19 PM.
#17
Posted 14 January 2008 - 10:12 AM
I used bluesoleil
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 :)
#18
Posted 14 January 2008 - 04:19 PM
#19
Posted 15 January 2008 - 10:49 AM
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.ed...y/projects/wii/
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 :)
#20
Posted 15 January 2008 - 11:06 AM
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











