Sponsors of Wiimoteproject.com
IR Pens for Wiimote Whiteboard
Wiimote Project » Forum » General Wiimote and Technology » Programmers Den » Motion Plus and Wiiuse
Pages: [1]
  Print  
Author Topic: Motion Plus and Wiiuse  (Read 1131 times)
0 Members and 1 Guest are viewing this topic.
*
Karma: +0/-0
Posts: 2
Offline Offline
View Profile
« on: September 08, 2009, 09:22:08 AM »

Hello,

is there someone who has already added motion plus support to the wiiuse library?

I tried myself and now my wiimote does not send any analog (accelerometer) values anymore, after i did some tryouts under linux. The weird thing is that the wiimote sends these values using other libraries and even with wiiuse running in windows, but under linux (ubuntu 9.04) it will not work, even with the original wiiuse...it seems not to be broken but it seems to "remember" what i did to it under linux with wiiuse and resetting it did not help, very weird Sad

So before i waste another wiimote, is there anyone who already added motion plus support to the wiiuse library?
Logged
*
Karma: +1/-0
Posts: 18
Offline Offline
View Profile WWW
« Reply #1 on: September 25, 2009, 07:44:47 PM »

Hi Hiciao,

Finally, done. I used wiiuse with Wii Motion Plus for fWIIne.
The MEX library has just been updated with the latest development from devkitpro inside wiiuse for WIN32.
You can download fWIIne (and so, the updated wiiuse lib for WIN32, of course) :
http://sourceforge.net/projects/fwiine/files/ (bin and sources)

Feel free to try the usual exec. file : wiiuseexample.exe
It will give you an idea of the acquisition from the Wii Motion Plus.

(Data acquisition from accelerometers (Wii Remote) and Gyro sensor (Wii Motion Plus)

Enjoy !

- Wiilliam

http://fwiineur.blogspot.com/2009/09/fwiine-v04-released-english-version.html








Logged
*
Karma: +0/-0
Posts: 15
Offline Offline
View Profile Email
« Reply #2 on: October 17, 2009, 07:03:49 AM »

Apologies if this is obvious, but is this basically the wii motion plus working on the pc? I understand people have been using the wiimote for ages but I wasn't aware that someone has got the motion plus working for the pc. All I'm looking for is the wii motion plus for the pc which I can use as a gyration mouse, ie up/down/left/right, I don't need any other function, no tilt, no buttons etc. Just the up/down/left/right.

Thanks for any help.

Logged
*
Karma: +1/-0
Posts: 18
Offline Offline
View Profile WWW
« Reply #3 on: October 19, 2009, 02:05:06 PM »

Hi,

Yes, it works. Feel free to download and to test it.
In fact some developers (devkitpro's team) updated the wiiuse library.
Now, their changes were implemented in order to build the fwiine lib.
As you will see with the example (wiiuseexample.exe was kept for testing purposes), the current
implementation could be improved for a better use (You will have to connect the wiimote, start exec file,
plug WM+ to the wiimote and then press button "1" to display raw data from wii motion plus.. it could be better...).
To summarize : it works... but some improvements are necessary for an automatic detection of WM+.

Then, about data from wii motion plus : The gyro sensor provides angular velocities.
You will have to compute them from raw data (meaning in theory : angular velocity = ratio * (rawdata - gyro bias sensor). 
Then, the merge of angular velocities and accel. data will allow you to detect some primitives for gyration mouse.
Ok, back to reality : complex filters are needed because bias is function of temperature/voltage and noise are handled by some specific filters, only.

Hope this will help you,
- Wiilliam





 
Logged
Pages: [1]
  Print  
 
Jump to:  

TinyPortal v.1.0.6 beta 2 © Bloc
Clicky Web Analytics