|
Re: Measuring Muzzle Velocity
Quote:
|
Originally Posted by eugenebrooks
Use one of the timers on the RC set up in 16 bit mode and your optical sensors set up to interrupt the RC on digital inputs 1 and 2. Assuming that digital input 1 is the start for the timer, when this interrupt comes through zero the timer. When the second interrupt on digital input 2 comes through read the timer into a variable available to code running in the packet loop. Have a look at Kevin's interrupt template code, and pay careful attention to his comments on how to read and write the timer correctly in 16 bit mode.
By suitably adjusting the pre-scaler for the timer your granularity can be 100ns, 200ns, 400ns or 800ns. Assuming a 16 bit timer and the 800ns clock tick you can measure up to 52.4 milliseconds with very high precision.
Have fun,
Eugene
|
I posted a message in a thread discussing measurement of the speed of the ball shooter that describes how the "muzzle velocity" measurement would work as well as the sources of error in the measurement:
http://www.chiefdelphi.com/forums/sh...6&postcount=16
The precision of the timer eugenebrooks is describing is more than adequate for this measurement.
__________________
"There's never enough time to do it right, but always time to do it over."
2003 AZ: Semifinals, Motorola Quality; SoCal: Q-finals, Xerox Creativity; IRI: Q-finals
2004 AZ: Semifinals, GM Industrial Design; SoCal: Winners, Leadership in Controls; Championship: Galileo #2 seed, Q-finals; IRI: Champions
2005 AZ: #1 Seed, Xerox Creativity; SoCal: Finalist, RadioShack Controls; SVR: Winners, Delphi "Driving Tomorrow's Technologies"; Championship: Archimedes Semifinals; IRI: Finalist
2007 LA: Finalist; San Diego: Q-finals; CalGames: Finalist || 2008 San Diego: Q-finals; LA: Winners; CalGames: Finalist || 2009 LA: Semifinals; Las Vegas: Q-finals; IRI: #1 Seed, Finalist
2010 AZ: Motorola Quality; LA: Finalist || 2011 SD: Q-finals; LA: Q-finals || 2013 LA: Xerox Creativity, WFFA, Dean's List Finalist || 2014 IE: Q-finals, LA: Finalist, Dean's List Finalist
2016 Ventura: Q-finals, WFFA, Engineering Inspiration
|