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

13 comments | showing # 1 to 13
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 ? ).
bobafettm's Avatar - Comment posted on 07/31/2007 07:30
bobafettm
I'd be digging this shit HUGE! if my car still wasn't blown up.

:(
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!

 

   Got news?   tips@destructoid.com   |   Dtoid Twitter

New Videos

more videos


Reviews & Previews
BioShock 2 review
Dante's Inferno review
Chime review
Hustle Kings review
iPhone Review Round-up: January review
more reviews
Dawn of War II Chaos Rising
Metro 2033
A trip to the racetracks Days of Thunder Arcade
Double the pleasure, double the fun with Darwinia+
Wizarding world in plastic Lego Harry Potter Years 1-4
more previews


- The Dtoid Army is 56755 strong -

Showing Cblogs with 3+ faps   show all

Call for entries: the Areas of my Expertise

New to Dtoid? Read the survival guide


 Originals
Jim Sterling: How Aliens are blatantly better than Predators





















More Destructoid Originals




We are Destructoid   tips@destructoid.com
Nick Chester
Editor-in-Chief
Niero
Founder, Big Boss
Jim Sterling
Reviews Editor
Hamza Aziz
Community Manager
Dale North
News Editor
Rey Gutierrez
Destructoid Video EIC
Anthony Burch
Features Editor
Brad Nicholson
Managing Editor
Tom Fronczak Colette Bennett
Ashley Davis Ben Perlee
Conrad
Zimmerman
Chad Concelmo
Jonathan Holmes Jonathan Ross
Brad Rice Jordan Devore
Will Maddock Matthew Razak
Josh Tolentino
Joseph Leray
Topher Cantler Samit Sarkar
     
  Adam Dork
Daniel Lingen
Hollie Bennett
Joe Burling
Mikey Turvey






 
 
  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