JoePage2008x2
New Member
Basically what i am doing is making a chronograph for an air rifle, it needs to measure time between a distance to work out the velocity of a projectile. I want the chronograph being able to measure speeds up to 300m/s or 900f/s or more.
The distance between the gates is 20cm, i need to be able to measure the time between the gates and then convert it to speed. say 0.001 seconds = 200m/s. Im having trouble with the timing, any ideas how to accurately measure timing from 1 to 10 micro seconds, i know you can do 1us with the pauseus command running at 40mhz but i cannot do this accurately.
Is there a chance anyone could give me a program that can can do this, im doing this on a picaxe 28x1. pin0 is first light gate, pin1 is second light gate, i need the speed to be saved as a variable. I can do the maths bit, just need a very accurate timer.
Help would be appreciated, thanks
The distance between the gates is 20cm, i need to be able to measure the time between the gates and then convert it to speed. say 0.001 seconds = 200m/s. Im having trouble with the timing, any ideas how to accurately measure timing from 1 to 10 micro seconds, i know you can do 1us with the pauseus command running at 40mhz but i cannot do this accurately.
Is there a chance anyone could give me a program that can can do this, im doing this on a picaxe 28x1. pin0 is first light gate, pin1 is second light gate, i need the speed to be saved as a variable. I can do the maths bit, just need a very accurate timer.
Help would be appreciated, thanks