microsecond timer between two events
hello
i looking way of timing air rifle bullet on distance of 0.1 m. velocity in neighbourhood of 200 m/s, time 1/2000 sec.
if resolution going 4 m/s @ speed, time 1/100 000 of sec.
it possible?
i going pin4 , 5 go high low , meassure time between that.
output lcd. have working millis() http://www.arduino.cc/en/tutorial/stopwatch , need better timer.
any help?
i looking way of timing air rifle bullet on distance of 0.1 m. velocity in neighbourhood of 200 m/s, time 1/2000 sec.
if resolution going 4 m/s @ speed, time 1/100 000 of sec.
it possible?
i going pin4 , 5 go high low , meassure time between that.
output lcd. have working millis() http://www.arduino.cc/en/tutorial/stopwatch , need better timer.
any help?
to 10 resolution you're going need efficient programming. i'd suggest write timing routine in assembly make optimally tight, , i'd suggest disable timer0 overflow interrupt drives millis() , delay() avoid having mess timing. if did around 1 or 2 resolution, depending on response time of sensors.
at rate, want using hardware timers on mega168 (see mega168 datasheet more information).
- ben
at rate, want using hardware timers on mega168 (see mega168 datasheet more information).
- ben
Arduino Forum > Forum 2005-2010 (read only) > Software > Syntax & Programs > microsecond timer between two events
arduino
Comments
Post a Comment