Id love to post the code but its at home, and im at school. Later this evening when i get home.
But suffice to say it goes something like this.
int count=0
Setup{
Attach interrupt 0 [falling].
//Turn on SD read/writer and LCD screen
}
Loop
LCD.clear;
LCD.print(count);
VoidInterrupt 0
{
count++;
file.print(count)
}
not too much happening, just printing the count of pulses so far into an LCD screen, serial, and to an SD card (with an arbitrary filename, BBcount)
With regards to "its probably the code since its reading on the slower guns" In thinking about it, its probably more of cross section, and mounting problems on the guns. Why do I say this. Well pistols usually just have a little tip that sticks out, no fancy geometry or anything other then maybe a peep sight. When mounting the sensors to the 2 pistols I've tried, I get a small diameter plastic tube that fits over the end of the barrel. Mount the sensor and LED to that, and run. Its a lot more stable (and cuts across the BBs crossection better) then when I do it on rifles that all have some muzzle break that I have to try and mount the LED and sensor to.
Perhaps I can get the CNC teacher @ my school let me borrow a machine for a little while and cut something out of a piece of nylon stock or something. With nice low tolerance drilled holes to mount everything in that slides onto the equipment rails of one of the guns, to do the sensing. That'll account for any improper mounting.