View unanswered posts | View active topics It is currently Tue Jun 18, 2019 3:36 pm



Reply to topic  [ 4 posts ] 
 Use Your WiiMote with Utilite 
Author Message

Joined: Mon Jan 09, 2012 3:16 am
Posts: 351
Post Use Your WiiMote with Utilite
Overview

Using just a few readily available packages, it is possible to integrate your WiiMote with your Utilite in Linux. The connection between WiMote and Utilite is via Bluetooth.

Attachment:
WiiMote.jpg
WiiMote.jpg [ 160.2 KiB | Viewed 3366 times ]



Required Packages

Install the following packages:

1. libcwiid1
2. lswm
3. wmgui
4. wminput



Testing using WMGUI

Test the installation and WiiMote function using the WiiMote Graphical User Interface.

1. Run: $ wmgui

2. In wmgui, pair the WiiMote with Utilite with the pulldown File - Connect.

(Simultaneously depress and hold the WiiMote's 1 and 2 buttons during pairing.)

3. Once pairing is confirmed, activate the WiiMote accelerometers using the pulldown Settings - ACC Data.

4. Confirm correct WiiMote operation in wmgui by pushing buttons and moving the remote in 3-axes.

Attachment:
wmgui.png
wmgui.png [ 35.32 KiB | Viewed 3364 times ]


Last edited by hassellbear on Sun Nov 30, 2014 4:28 am, edited 5 times in total.



Sun Nov 30, 2014 3:14 am
Profile

Joined: Mon Jan 09, 2012 3:16 am
Posts: 351
Post Re: Use Your WiiMote with Utilite
Use WiiMote as a Mouse

1. Make sure the User Level Input Subsystem is active. Check for /dev/uinput.

If uinput is not present, load it using the command:

$ sudo modprobe uinput

You should now have the new device /dev/uinput

2. Determine your WiiMote's MAC Address using the list WiiMote command:

$ lswm

(Simultaneously depress and hold the WiiMote's 1 and 2 buttons while determining the MAC address.)

Attachment:
lswm.png
lswm.png [ 22.57 KiB | Viewed 3363 times ]


3. Pair the WiiMote with Utilite using the command:

$ sudo wminput "Your WiiMote's MAC address goes here"

(Simultaneously depress and hold the WiiMote's 1 and 2 buttons while pairing.)

Attachment:
wminput.png
wminput.png [ 23.16 KiB | Viewed 3363 times ]


4. Use your WiiMote as a mouse.



Results

1. WiiMote functions all work perfectly with wmgui testing routine.

2. WiiMote functions acceptably as a mouse, although it takes a bit of practice.



Conclusions

1. WiiMote offers interesting possibilities for gaming and other software controls.

2. WiiMote can possibly be used to advantage during slide or video presentations.

3. Utilite again demonstrates its versatility



Further Reading

1. https://wiki.archlinux.org/index.php/Wiimote

2. https://help.ubuntu.com/community/CWiiD


Sun Nov 30, 2014 4:01 am
Profile

Joined: Tue Jan 07, 2014 12:07 am
Posts: 138
Location: Edinburgh, Scotland
Post Re: Use Your WiiMote with Utilite
CWiiD still works the last time I checked but it's kinda obsolete now and hasn't been updated in 4 years. These days you should use the kernel HID driver. This driver is a little restrictive by itself as the button mappings may not be what you want but applications such as QJoyPad can easily work around the restrictions.


Sun Nov 30, 2014 1:17 pm
Profile

Joined: Mon Jan 09, 2012 3:16 am
Posts: 351
Post Re: Use Your WiiMote with Utilite
Yes, CWiidD is a bit old (2010) and is no longer maintained upstream. XWiimote is probably the better way to go.

Unfortunately, I don't think xwiimote is present in the Compulab 3.0.35 kernel which I use. Hopefully, that will be remedied when Compulab releases an OS featuring a newer kernel.

This started as a quest to use a Roku bluetooth gaming remote with Utilite and quickly morphed to the WiiMote as it doesn't seem there has been development for the Roku remote.


Sun Nov 30, 2014 4:39 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.