Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
Safety is the first rule in these things. You should use a Hall Effect Sensor type of noncontact sensing device. This will give you an AC output voltage. Transform this into DC with a full wave op amp rectifier circuit. Then follow this by a low pass filter which can be just an RC network. Then put this signal to the input of a comparator.