Can you do a napkin schematic for us to look at?
Any info on this page to help you out? Arduino Playground - ReadingRPM