> Bullets are typically fast, designing around 1400M/S at the high end
You need to start somewhere so try over the top, using Timer1 of a Mega8 running at 16MHz - before firing, clear Timer1, sit in a tight asm loop looking for your first edge (it's probably best to feed your two optos into an RS latch so you can look for edges rather than fast pulses), start Timer1 with no prescaling then loop waiting for the second edge and stop the timer, TCNT1 will represent the time between detectors. Stumbling blindly into flakey math and ignoring the cycles lost to your asm, Timer1 count will theoretically measure a time period up to 4mS (65536/16MHz) with a resolution of 62.5nS, which would equate to a minimum measureable velocity over your inch of ~6M/S (0.025M / 4mS), maximum velocity would depend upon cycles lost in your edge polling loops (in which there will be few cycles of uncertainty) and timer start/stopping - but at 1400M/S it would take ~18uS to cross the gap giving you a count of ~285.
Possibly ;-)
AndyC
http://pages.zoom.co.uk/andyc forgive the cobwebs!