Mike Montalvo wrote: > > There is a lot of ringing on the line. There are also a lot of transients. > I strongly suggest you use an opto-isolator. I have used them in the past > for the same purpose with great success. Get one with a Schmidt trigger > output. It sounds like the first ringing pulse that doubles the frequency. He could use a debounce time slightly shorter than the minimum firing time (highest revs) to take it out. Some real protection on that pin will also be useful... -- Friendly Regards /"\ \ / Tjaart van der Walt X ASCII RIBBON CAMPAIGN mailto:tjaart@wasp.co.za / \ AGAINST HTML MAIL |--------------------------------------------------| | Cellpoint Systems SA http://www.cellpt.com | |--------------------------------------------------| | http://www.wasp.co.za/~tjaart/index.html | | WGS84 : -26.0124 +28.1129 | | Voice : +27 (0)11 2545100 | |--------------------------------------------------|