Hi everyone, Ive been a member here for a while and though Ive gotten a lot out of following along with all the great projects here, I havent really had much to contribute back (aside from referring friends). Well now I do! I posted this over at the arduino forums but I figured it would have a lot of impact here too: I have successfully read the gyro data from the Wii Motion Plus peripheral. I posted code and some additional info on my shiny new blog: here and if someone can tell me how to post code on diydrones, I'll gladly post code here too.


Views: 771

3D Robotics
Comment by Chris Anderson on June 23, 2009 at 12:23pm
Just click on the icon on the right of the edit row, and you can upload any file.
Comment by PeteD on June 24, 2009 at 10:09pm
Hi Knuckles

I've had a look at your code and have a query. According to wiibrew website, the WM+ provides angular rates which would require integration. However your code does not seem to integrate the sensor data.
Can you clarify? I may be missing something.
Comment by Knuckles904 on June 27, 2009 at 6:11pm
@dydx, all my code does is initialize and decode the gyro data that comes from the motion plus sensor. the data you are seeing is the actual angular rate. if you integrate that once, youd get position(or angle). Im assuming that is what you are looking for. It is the same with an accelerometer, to get positional data you'd have to integrate twice to get angle. Luckily, earth's gravity is constant and so as long as you assume the sensor is not accelerating(big if), the two integrations yield nothing but the constant from gravity from which you can get position(or angle)


You need to be a member of DIY Drones to add comments!

Join DIY Drones


Season Two of the Trust Time Trial (T3) Contest 
A list of all T3 contests is here. The current round, the Vertical Horizontal one, is here

© 2019   Created by Chris Anderson.   Powered by

Badges  |  Report an Issue  |  Terms of Service