This is a multi-part message in MIME format. ------=_NextPart_000_0044_01C88831.E7C4AB60 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit > I assumed analog detection is the right way to go.....or is it ? Alan, I use a similar arrangement to measure propellor speed on light aircraft, with a couple of differences Inside the propellor head, approx 200mm diameter, are 6 strips of adhesive aluminium foil on a painted black background. At 3000rpm this means 300 pulses/sec into b0 of a 16F628. INT is the detection flag, and it works very well. The sensor collector is pulled up to 12V (plane battery). Output from the resistor - collector junction is normally high, and low over the foil. Pulses go through a minimal filter and clamp, as shown If you want to use an analogue input (ADC or comparator) I'd suggest a low-high window to eliminate the false positive from the transition. The difference between light and dark should be distinct enough to do that successfully ------=_NextPart_000_0044_01C88831.E7C4AB60 Content-Type: image/gif; name="sensor-ip.gif" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="sensor-ip.gif" R0lGODlhIwGFAIAAAAAAAP///ywAAAAAIwGFAEAC/oyPqcvtD6OctNqLs968+w+G4kiW5kkBh7qi 7gvH8hwBNo3n+s6n/Q8MCk+sofGIrBRzS8PSxmomp9SZ1FrNarG3QDHKu27HZJg4di6r16A0+gd2 yuftlpuNd0Jv0r191dUQmMeg0mSodgiI8OX1J9c4SNgScleYYTmp2ZOJ6DgXR2cmCRjYSLmZKpKJ wargmgCrOusiq9SKSUQFRdvr+wscLDycG4tKjJysvMy82vwMbRw93WxLfb1hXSf96UiKDS6h/TEe Ht7l+VnO8W3u3rHO/j7/GxV/q3faTU55T3+x54kpSV/a5ZMHsFg1grwOdrNXMBShhiRsaXvyL5qr /lBgrli0EPAbRVEkM7LxdykhLmaKTLp8CTOmzJk0a9qE6aflzZ21HvH8CTSo0KEvURI9egyp0mxL mzJ1ChVk1Kn4qE4zWtVnpJJWNWFdSWfr165wdIwle6SPqTBog20FxbYttLPi6MrNYrfG3Wd5IfSt GxbF2r04/jrgGLiST8LHEO/Tk3jBSMYPRmI8yeixsYAPD5ebXMOgZ1npIG3RmVnn5be97CGUCpZy EomKYauUPduHQ828R4f0m1lQ8H6G725M3M4w58OLe+OGZ+KiwudG7FqTzlc0OOuxs44obpvrOV23 w3+njj69+vXs27t/Dz++/PlDLyel/85PZPwu/lnz/zcZeP8NSGCBTYWEoH4G5rdgTAI2mMeDEGI2 oUkSVljGhRiOoeGGWnToYRUghjjFiCTmdmIJCa643A4mpjhcYa/oUxqMKrooGSqIvDjgiKr9weN/ PnLjBTri2QidWUgK0WGQSILopIE/OmfGki8YeQqUVvZkGlw4bqnLQBGxSGaZZkaZopZgfqnkmm2+ 6SYNapa1G3ldDcmWYwp6kA5tSL2IZ5b3vabdhgVh0Vmi23hDXYtFjjkcaHagKdOeiaT2SqaOFUIp P5muQaNk6FBEKpZyYipcHPqIemarrr4KK6k6lhJrrbYSFAtEfBA364WraRXcqjO+5p1u5h2JtESo wLLWJ5WTGLLOddPFWVWhwJVXLLXX1nbsBJ0+J+mi3k737V6WetqtICzmumukJ7JipJcx2hluH/04 K6Vugto7Sri9EmmovveK0UmCdTm6H78hHrcbbdJ2p21K501rbMTCRQfxuBYzhzG2FSsjLIMdp6tX dLeefCbA7nDnscY3oogvNSyTvG1FQq7LDs6crliZzhqQSR+ClfwWGsK++dsK0fwhnY217ALkNNTl bkx11RkUAAA7 ------=_NextPart_000_0044_01C88831.E7C4AB60 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist ------=_NextPart_000_0044_01C88831.E7C4AB60--