Welcome to the CashLoopholes.
You are Unregistered, please register to gain Full access.    
Header

CashLoopholes » Free Legal Loopholes And Secrets » Games Consoles Hacks, Cheats And Secrets » Wii Hacks Secrets And Loopholes » Wiimote Car Accelerometer And G-Force Reader

Wii Hacks Secrets And Loopholes There are secrets hidden within the Wii. Do you know about them? Find and share all the Will hacks, secrets and cheats here.


Reply
LinkBack Thread Tools vBmenu Seperating Image Display Modes
Wiimote Car Accelerometer And G-Force Reader
Old 12-10-2007, 11:55 AM   #1 (permalink)
 
MarkeG's Avatar
 
Status: Pro Loophole Member
Join Date: Dec 2007
Posts: 61
Thanks: 1
Thanked 1 Time in 1 Post
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
MarkeG Well done! Keep up the good posts
Points: 1,536, Level: 23
Activity: 2%
Lightbulb Wiimote Car Accelerometer And G-Force Reader

Wiimote Car Accelerometer And G-Force Reader

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://www.christiancarlson.com/klee...peed_calcs.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

The Wiimote, nice n snug so it doesn't jostle around:



My 2.Slow's 0-60 time. 13.5s baby!!



My friend's E46 M3 SMG's 0-60 time




General Accelerometer readings:
When the blue line dips down, I'm making a left turn.
When it jumps up, I'm making a right turn.
When the Yellow line goes up, I'm accelerating.
when it dips down, I'm braking.

__________________
Markeg
MarkeG is offline   Reply With Quote
Sponsored links
Old 04-04-2008, 01:05 AM   #2 (permalink)
 
Pardalu2's Avatar
 
Status: Junior Member
Join Date: Apr 2008
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Pardalu2 Well done! Keep up the good posts
Points: 57, Level: 1
Activity: 0%
Default Re: Wiimote Car Accelerometer And G-Force Reader

Hi MakeG,

I just registed only for the see your work, and I just love it!.

I'm doing something liked your's, but using a accelerator from freescale 3axis A7260 connect to computer, and the next step is connect to a microcontroler and show on a lcd... let's see what i can do it...

Regards,
Manuel Silva
ipca.pt/est - Informatica Industrial
Pardalu2 is offline   Reply With Quote
Old 04-04-2008, 01:08 AM   #3 (permalink)
 
MonkeyNuts's Avatar
 
Status: Moderator
Join Date: May 2007
Posts: 84
Thanks: 0
Thanked 4 Times in 2 Posts
MonkeyNuts has a spectacular aura aboutMonkeyNuts has a spectacular aura aboutMonkeyNuts has a spectacular aura about
Points: 2,705, Level: 33
Activity: 0%
Default Re: Wiimote Car Accelerometer And G-Force Reader

Keep us updated on how you get along dude
__________________
MonkeyNuts is offline   Reply With Quote
Reply

Bookmarks


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Wiimote Extra Functionality! CashLoopholes Wii Hacks Secrets And Loopholes 1 07-12-2008 12:45 AM
Wiimote Projector Whiteboard - Wii Hacks Gwerzal Wii Hacks Secrets And Loopholes 0 12-10-2007 11:11 AM

» Sponsors
» Most Recent CashLoopholes Activity
Powered by vBadvanced CMPS v3.0.1

All times are GMT. The time now is 01:21 PM.

The largest message boards on the web !


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174