> can even disconnect the sensor, or add as many filters as i > want, but the pic still counts pulses from nowhere. Hi Rafael, have you tried putting the PIC in a grounded metal box and using grounded shielded wire to the sensor and PSU ? I have a product that counts pulses from a sensor and sits next to a 5W radio and petrol engine. Without proper shielding it goes crazy. Can you also decrease the impedance of the sensor signal so it's not so prone to interference ? Perhaps drive the line with an opamp or transistor, add a couple of ferrite beads and bypass caps (eg small ceramics) -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist