Discuss [Req] This is for all of us who likes cars! at the Free Toolchain Software - Hackint0sh.org; i dont know much about math but here i take quotes from other webpages from ...
-
Senior Professional
Array
i dont know much about math but here i take quotes from other webpages from experiments.......
No need for expensive acceleration monitoring hardware when you can simply strap a Wiimote in for the ride.
“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).”



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.
another quote for the glovepie driver and script for wiimote readings...if help someone...
this is all you need to add to the glovepie script.
it'll append the info to output.txt in the glovepie install directory.
//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
Please we need help in developing an application to measure (HP, Lateral G's, Braking distance) in our cars...
http://www.hackint0sh.org/forum/show...ght=likes+cars PLEASE CODERS AND DEVELOPERS....HELP NEEDED READ POST #80 FOR MORE INFO!
THIS IS NOT AN OVERSIZED LETTER SIZE!
REP UP IF MY POST HELPED YOU IN ANY WAY!

-
-
Professional
Array
That's what we need. If we can get the acceleration like he did, then we can find the speed and even length. But only when the car is driving horizontal.
JuiCe, can you make the app to show these values?
The speed: v=a*t (a=acceleration, t=time)
The length: s=0,5*a*tē (a=acceleration, t=time)
The app can also display when you turn right or left.
-
-
Senior Professional
Array
sorry forgot to drop the link to the project....(i don't know if i can post direct links but if not mods can you modify it to not going against forum rules?), http://forums.vwvortex.com/zerothread?id=3362586
and the link to the real igtech pro product! if you want more info http://www.gtechpro.com/
some screenshots of the windows program for the real gtech


found another thing might help.... its a mac app to measure a wii remote but i think it may be useful to pick the code from this app and use it for the iphone check the link! http://blog.hiroaki.jp/2006/12/000433.html
Last edited by saxosuper1600; 04-20-2008 at 10:02 PM.
Please we need help in developing an application to measure (HP, Lateral G's, Braking distance) in our cars...
http://www.hackint0sh.org/forum/show...ght=likes+cars PLEASE CODERS AND DEVELOPERS....HELP NEEDED READ POST #80 FOR MORE INFO!
THIS IS NOT AN OVERSIZED LETTER SIZE!
REP UP IF MY POST HELPED YOU IN ANY WAY!

-
Professional
Array
Great! I'm not good with coding, but I will look through the application.
I can answer the physic/math questions:p
-
-
Senior Professional
Array
with this info JuiCe can you do this?
Please we need help in developing an application to measure (HP, Lateral G's, Braking distance) in our cars...
http://www.hackint0sh.org/forum/show...ght=likes+cars PLEASE CODERS AND DEVELOPERS....HELP NEEDED READ POST #80 FOR MORE INFO!
THIS IS NOT AN OVERSIZED LETTER SIZE!
REP UP IF MY POST HELPED YOU IN ANY WAY!

-
Working on it now. I'll let you know as soon as I make some decent progress. I have nothing to do for the rest of the night, so I'll probably spend a fair amount of time with this.
-
-
I set it up to average out 5 seconds of accelerometer data, then go into a "staging" mode until you're ready to start testing. Once in staging, a small change in acceleration will trigger the app to begin logging the acceleration and time stamp. Given Jim Danner's help, I know the way I'm getting acceleration is correct, but I'm not clear on velocity.
irafaS said: v = a*t
Is t measured in seconds? Is it the difference between now and the last reading?
From the article posted above by saxosuper1600, the time is multiplied by 86400. Why is he multiplying the time by 24 hours (60*60*24)?
I'm a bit confused by all the different posts giving different information.
Where's Jim :|
Last edited by JuiCe; 04-21-2008 at 02:18 AM.
Reason: Typo
-
Senior Professional
Array
time should be in seconds....to get the acceleration....i think...but best if we wait till jim danner sees this post again...i've also send him a PM
another thing you should tell the app when it sees negative G should start some chrono to get braking time which can be also braking distance....and how much G are in that braking......another thing i can imagine is to have a live measurement like a "practice run" just for seein real values while you are driving in a track for instance seein G's (like the g-circle posted in the pic above) and another things without logging that info just for seeing
thanks juice for helping us!
EDIT: found something look this link! http://blogs.msdn.com/coding4fun/arc...8/1709215.aspx direct link for download software here i think you can find the codes alreadymade with the windows software! http://channel9.msdn.com/Photos/ZippedFiles/283953_iAccelerate.zip
EDIT2: more things found!
How does the Performance Timer Accelerometer know the speed and distance?
The Performance Timer Accelerometer tracks acceleration forces over time, and from this continuously calculates speed and distance. For accuracy, it tracks all these items approximately 200 times per second.
Here's a simplified explanation of how the system works:
For this simplified example, we'll assume a Performance Timer Accelerometer that performs calculations only once per second. We'll also assume that our car can accelerate with a force of 0.45G.
An acceleration of 1 G means that car would accelerate at 32.2 feet per second per second, which is about 22 mph per second. (That means, from a standing start, after one second, the car would be going 22 mph. After two seconds it would be going 44 mph, etc.)
In our example the car accelerates at 0.45G, which is about 10 mph per second.
So, let's look at the 1st second of our timed run: We were going 0 mph at the beginning of that second, and we were going 10 mph at the end of that second. So our average speed during that second was 5 mph. We can then calculate how far the car went: 5 miles per hour = 26,400 feet per hour = about 7 feet per second.
So after the 1st second, we've traveled 7 feet, and we're going 10 mph.
Now let's look at the 2nd second of our timed run (remember, we're still accelerating at 10 mph per second): We were going 10 mph at the beginning of that second, and we were going 20 mph at the end of that second. So our average speed during that second was 15 mph. We can then calculate how far the car went, which turns out to be about 22 feet.
So after 2 seconds, we've traveled 7 + 22 = 29 feet, and we're going 20 mph.
Now let's look at the 3rd second of our timed run: We were going 20 mph at the beginning of that second, and we were going 30 mph at the end of that second. So our average speed during that second was 25 mph. We can then calculate how far the car went, which turns out to be about 37 feet.
So after 3 seconds, we've traveled 7+22+37 = 66 feet, and we're going 30 mph.
This is a simplified way to see how the Performance Timer Accelerometer tracks speed and distance during a timed run. Remember, in actuality, the Performance Timer Accelerometer continuously measures G-forces, and makes these calculations hundreds of times each second.
Last edited by saxosuper1600; 04-21-2008 at 04:25 AM.
Please we need help in developing an application to measure (HP, Lateral G's, Braking distance) in our cars...
http://www.hackint0sh.org/forum/show...ght=likes+cars PLEASE CODERS AND DEVELOPERS....HELP NEEDED READ POST #80 FOR MORE INFO!
THIS IS NOT AN OVERSIZED LETTER SIZE!
REP UP IF MY POST HELPED YOU IN ANY WAY!

-
-
Good info saxosuper1600. JuiCe to answer your question directly.
Vn = Vi + A*t .... Vn=Velocity now, Vi=Velocity initial(you could say previous Vn), A=acceleration, t=time elapsed.
So the important thing is that the units all match. If Velocity is feet per second(ft/s) then acceleration would need to be feet per second per second(ft/s^2) and time would then be in seconds. In that equation the time interval would be the amount of time since the last reading.
Example. If a car is going 100ft/s while accelerating at 10ft/s^2 for 10 seconds, then the new speed is 100ft/s + 10ft/s^2 * 10s = 200ft/s .... from there you can convert back to mph or km/h.
Make sense? I would really love this app as well so I will try and help best I can.
-
Senior Professional
Array

Originally Posted by
Cassius2117
Good info saxosuper1600.
i don't know how to code and i didn't get A+ in math but i have google and ideas hahaha and if i can help to get this done i will do it! only thing i ask if it can be named "igtech pro" and if in the credits somewhere mi nick is displayed hahaa see ya!
Please we need help in developing an application to measure (HP, Lateral G's, Braking distance) in our cars...
http://www.hackint0sh.org/forum/show...ght=likes+cars PLEASE CODERS AND DEVELOPERS....HELP NEEDED READ POST #80 FOR MORE INFO!
THIS IS NOT AN OVERSIZED LETTER SIZE!
REP UP IF MY POST HELPED YOU IN ANY WAY!

-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks