games  anime  |  toys
Destructoid is gaming news, community, videos, and sometimes love. Take the tour or jump in with Facebook:

 


Wiimote hack measures vehicle acceleration photo

There is a lot of technology in the Wii Remotes that we regularly wiggle around. While we were busy aiming for headshots and curveballs, one clever auto enthusiast figured out a way to use the Wii Remote to calculate G-forces and acceleration times. I've never felt so stupid!

VW Vortex is a web site for Volkswagon enthusiasts, and member klee did the fancy math and hacks to use the Wii Remote's accelerometers to measure his car's performance. He combined the Bluetooth accessibility used in other Wii hacks with some software, drivers, and clever scripting to create the system that could gauge his car's 0-60mph times. All of this data was processed in Microsoft Excel, and now you can see graphs and charts of his Jetta's performance.

In his post, klee admits that the results are not super-accurate, as the Wiimote gives G readings rounded to two decimal places, but it's pretty amazing that a gaming controller could be used for this kind of purpose.

If you're one of those big-brained people, hit the jump to see technobabble.

 

I got this idea after seeing some physics class use the wiimote in some kinda pendulum experiment.

Why not use the wiimote's built in 3-axis accelerometers to measue g-forces, acceleration and even calculate my own 0-60mph times!

So I did. I wrote a script to dump all the g-force readings from the wiimote to a comma separated value file, then did some post processing in MS Excel, and voila, I can see every bump, every curve, my acceleration and braking, and even calculated my current speed using high school physics (v=a*t)

I even convinced my coworker to take me out in his E46 M3 to measure his SMG's performance

I admit, it's not super accurate since the wiimote spits out G readings rounded to two decimal places. It also provides other acceleration readings in finer granularity, but I couldn't figure out what metric it was recording in. I used Gs since I knew it was just the acceleration of gravity (9.8 m/s/s).

Here's a copy of the script that dumps everything out to output.txt
All you need is Glovepie v0.29, a Bluetooth dongle with BlueSoleil, the Human Interface Device drivers, and a standalone wii remote!
All the basic instructions on how to get your wii remote connected to your PC can be found here:
http://www.wiili.org/GlovePIE


If anybody wants my excel spreadsheet with the formulas and graphs, you can find it here:
http://people.ucsc.edu/~klee/t...s.xls

//Glovepie v0.29 script

var.t=time*86400

//Writes motion data to file
OutputToFile(RemoveUnits(var.t)+","+Wiimote.gx + ", " + Wiimote.gy + ", " + Wiimote.gz)

debug = var.t+', '+wiimote.gx+', '+wiimote.gy+', '+wiimote.gz

 


Continue: More Wiimote stories





prev next

12 comments | showing # 1 to 12
Dale North's Avatar - Comment posted on 07/30/2007 11:30
Dale North
exactly!
Edarios's Avatar - Comment posted on 07/30/2007 11:37
Edarios
goombas?
Snaileb 's Avatar - Comment posted on 07/30/2007 11:58
Snaileb
*scratches head*
Professor Pew's Avatar - Comment posted on 07/30/2007 12:24
Professor Pew
And now to wait for the first Wiimote fap-charts...
SniperFodder's Avatar - Comment posted on 07/30/2007 12:29
SniperFodder
I think my IQ just dropped even further. It's at like six now.
Mxyzptlk's Avatar - Comment posted on 07/30/2007 18:03
Mxyzptlk
Finally, a practical application for the Wiimote!
Reeper's Avatar - Comment posted on 07/30/2007 20:40
Reeper
That's easy, I use the Wiimote to calculate the centripetal velocity of the disk reader on the Wii using the IR readeraoiwetna;oubya;orynae;orynaeo;rinhaeoiyjhware9uae0


Sorry, my brain just got the BSOD. Had to reboot.
tehdopefish's Avatar - Comment posted on 07/30/2007 21:41
tehdopefish
whats not to get? it's simple physics.

its like tying a weight on a string to a protractor to measure accelleration... didn't you do that in high school?
Acefowl's Avatar - Comment posted on 07/31/2007 00:41
Acefowl
Wow, that is awesome. Props to that guy, seriously.

Now all we gotta do is make the tech available to regular Wii owners so they know exactly how fast the remote was going before it smashed their screen. :)
wardrox's Avatar - Comment posted on 07/31/2007 03:23
wardrox
@tehdopefish, exactly. I think it's just that it's not written for non techies which causes issue.
hjd uk's Avatar - Comment posted on 07/31/2007 04:32
hjd uk
Sweet!. Nice litte wiimote project, now if he can get the pointer-sensor to detect sped cameras .....
Im not sure how well a PC would have taken a nice bumpy ride in a car. And how the hell did he calibrate the accellerometers ( do they have factory set standards on the chips ? ).
prev next

Comment with Facebook





Click connect and comment instantly!

Comment with Dtoid





New? SIGN UP - it takes 5 seconds

Comments policy

Destructoid is an open discussion community. You don't need to "audition" to post a comment - just speak your mind. We respect differing opinions on the site, so have at it. Be smart, funny, insightful, clueless, or cute -- but back it up with substance. Keep your cool, keep it fun. We only ask that you act respectfully and above all: don't be a troll and ruin it for everyone else. Don't bring down gamers or we'll, you know, gently shoot you in the face and stuff you into a flaming mailbox. Each comment is your opportuntity to make this community awesomer. Is that even a word?

Avoiding the banhammer only requires common sense: spamming, trolling, racism, NSFW stuff, and other forms of sucking will not be tolerated. If anyone is griefing please report abuse. Be good. Don't suck!

 
New on Destructoid.TV play all videos

Loading
Loading Destructoid Videos


    Win this!
    Dive in! meetup+play for a chance to win a PC

    Dtoid Twitter    Got news?   tips@destructoid.com

    Reviews & Previews
    Serious Sam HD: The First Encounter review
    Echoes review
    Assassin's Creed 2 review
    Crossfire Remote Pistol review
    Resident Evil: The Darkside Chronicles review
    more reviews
    Driver
    Avatar
    GT Racing Motor Academy
    Bad Company 2 beta dishes out meaningful experiences
    Legend of Zelda Spirit Tracks
    more previews


    - The Dtoid Army is 51239 strong -

    Showing Cblogs with 3+ faps   show all

    Call for entries: do the wrong thing

    New to Dtoid? Read the survival guide




     Originals
    Joseph Leray: Revisited: Gears of War 2, Pinocchio, and masculinity





















    More Destructoid Originals




     Popular now more
    Assassins CreedReview: Assassin's Creed 2
    591 comments + 41542 views
    Destructoid OriginalWhy No More Heroes HD could mean a Wii total victory
    152 comments + 30508 views
    FAILGirl smashes boyfriend's Xbox 360, films it
    160 comments + 16924 views
    BattlefieldBad Company 2 beta dishes out meaningful experiences
    43 comments + 16114 views
    Black FridayBlack Friday: Walmart going nuts with game sales
    31 comments + 16048 views
    Amazon.comBlack Friday: Amazon dropping deals all week long
    16 comments + 15004 views
    Amazon.comAmazon teases its Black Friday sales line-up
    18 comments + 14836 views
    Destructoid OriginalThe tragic history of the videogame turkey
    51 comments + 13276 views
    CapcomHot new SSFIV trailer shows Guy, Cody and Adon in action
    54 comments + 13222 views
    Call of DutyModern Warfare 2 DLC still planned for spring 2010
    27 comments + 12568 views


    Team Destructoid   tips@destructoid.com
    Nick Chester
    Editor-in-Chief
    Niero
    Founder, publisher
    Jim Sterling
    Reviews Editor
    Hamza Aziz
    Community Manager
    Dale North
    News Editor
    Rey Gutierrez
    Video editor & director
    Anthony Burch
    Features Editor
    Colette Bennett
    Tom Fronczak Brad Nicholson
    Ashley Davis Ben Perlee
    Conrad
    Zimmerman
    Chad Concelmo
    Jonathan Holmes Jonathan Ross
    Brad Rice Jordan Devore
    Will Maddock Matthew Razak
    Dyson Joseph Leray
    Topher Cantler Samit Sarkar
         
      Dexter
    Adam Dork
    Daniel Lingen
    Hollie Bennett
    Joe Burling
    Mikey
    Stella Wong

    Josh Tolentino




     

     
      get involved

    register or login
    post a blog
    post a forum
    enter a contest
    contribute a news tip
    suggest a feature
    be a guest editor
    support

    new member's guide
    login assistance
    tech support
    report abuse
    email our editors
    read our dev blog
    nuclear crisis?
    keep in touch

    RSS feed
    Twitter
    Facebook
    Myspace
    Flickr
    Game nights
    Meetup+play online
    seriously

    about Destructoid
    advertising
    terms of use
    privacy policy
    jobs at MM
    buy our crap
    our network

    Tomopop
    Japanator
    Despingation?




    Destructoid is an independently-run publication forged by our love of video games and the gaming community's need of accountable enthusiast press
    living the dream since March 16, 2006