Wii MotionPlus protocol. . . Let us hack . . .

General project help for Adafruit customers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
User avatar
sorceress sarah
 
Posts: 100
Joined: Sat Jun 20, 2009 2:07 pm

Re: Wii MotionPlus protocol. . . Let us hack . . .

Post by sorceress sarah »

I got it working for real now. . . It's valid. I didn't make any changes to the code. I just swapped out the 5.1k pull-ups for 1k resistors.

User avatar
fat16lib
 
Posts: 595
Joined: Wed Dec 24, 2008 1:54 pm

Re: Wii MotionPlus protocol. . . Let us hack . . .

Post by fat16lib »

I don't think the pull-ups fixed your itoa problem. Here is the Cypress article.

http://www.cypress.com/?rID=34783

Note the seven byte string buffer.

Each call to itoa writes up to seven bytes when called with radix ten. One byte for a sign if negative, up to five digits and the zero byte. your code might work if you don't trash anything important but that's not good practice.

priya90
 
Posts: 2
Joined: Mon Nov 15, 2010 4:57 am

Re: Wii MotionPlus protocol. . . Let us hack . . .

Post by priya90 »

Hello ,

I am trying to synchronize the Wiimote and an electronic compass to start sensing values at the same time. I was wondering, is there a way to get the internal clock values of the Motionplus? Can I control when it starts to sense and when it stops?

Thanks!

User avatar
trandi
 
Posts: 3
Joined: Sun Aug 07, 2011 2:27 pm

Re: Wii MotionPlus protocol. . . Let us hack . . .

Post by trandi »

I know, slightly off topic, but I thought some people might be interested that you can even connect the Wii Motion Plus to an Android Phone (using the IOIO board in this case...).

http://trandi.BANNED.com/2011/08/07/ ... lus-gyros/

The basic idea is that I would like to transform my phone into an IMU (for this autonomous tank: http://trandi.BANNED.com/2011/05/14/ ... %80%93-v3/).
It (or at least mine, a cheap Orange San Francisco) already has accelerometers and compases, but lacks the most important part, the gyroscopes.

I've already used and really like the simplicity and hackability of the Wii Motion Plus gyroscopes, so I want to add them to the phone, through the IOIO board.

Locked
Please be positive and constructive with your questions and comments.

Return to “General Project help”