Topic: Car Program?
Last question of the day how hard would it to make a program that samples G force at say 10 times a second to begin with and takes that to give you a quarter mile time and 0-60? There is a product called G-Tech that does the same thing for more than what the chumby costs. I know that there is math involved since 1G is 32 Feet / Seconds squared and there are 5280 feet in a mile so 1320 in a 1/4 mile. So at 1G you would accelerate from 0 to 32 fps in one second so the equation (G (Interval Time)^2)*32 = traveled feet in that Interval it would be best to sample this every .1 second or less on specified increments and add the vales together and when that number is > 1320 spit it out also possibly to improve accuracy take the time that is lower's distance to 1320 and the time thats over 1320 and with that percentage you could subtract some off of the time for better accuracy. And possibly a speed? I have no idea on flash so could somebody make this for me? Put in a 3...2...1 GO! when you push the start button on it or use when the sensor detects a change in motion to start the countdown. Drag strip lights would be a plus. This program would take the initial accelerometer reading and take readings off of that by keeping the sensor on a 90 degree angle to the direction you are traveling. For trap speed you could take the last 2 feet readings and put them over the elapsed time in between them to get a decent MPH value. I am putting this here because I'm sure there are car people in here and their chumby could be something that could help them in their hobby. I basically laid out the design now could somebody make this widget for me and put it public because I have no idea how to run flash? For 0-60 you can take the distance between values in the chart and when its > 60 do an error correction because it will probably be say 60.7 at that time because of the resolution take the distance between in our case was 59.6 then 60.2 so on the first reading you are .4 too slow and on the second one you are .2 too fast so take the difference and multiply it by the interval Here is a picture of a good set of lights to bring in or you could animate them. http://www.sportys.com/shopmc/images/21619m.jpg Do not ever race on the street there are innocent people that you could hurt and furry creatures that you might not be able to stop for and you would be responsible for their injury/loss of life. So only use this on a private airplane taking off the runway or a speedboat thats 5 miles offshore in the great lakes where it is legal to do a full power 1/4 mile run. I don't know the power of the chumby but anything better than .1 of a second would work but .01 or even .001 would lower the error. I might be able to compile this in C++ but flash is a good starting point as you might have warranty troubles by putting foreign code on your chumby. I don't want trouble on this widget as it has its legal uses. Also inspiration struck on this I saw somewhere where a guy excel datalogged the g values and put them on his computer I say just do it all on the chumby. One last thing I am not an English major and I know that my grammar and spelling are horrible so please don't tell me that I am trying to make this a constructive thread also I worked all day and its after midnight.