> Regarding the bounce, i origianally had problems witht he hall switch >> bouncing. but i now used a relay for the switch to contact, and have yet no >> bounce problems when flashing a led with this setup. However this was >> before >> i put a PIc in the picture. Note that a Hall switch tends to provide a degree of inbuilt debouncing due to hysteresis in its response to a magnetic field. This is often quite a significant amount compared to what may be needed. For bounce to occur the field must rise to the trigger point and then drop by the hysteresis amount and then rise to the trigger point again. Also, in a rotating system where a Hall switch detects a magnet, "bounce" tends to suggest axial vibration (to and fro around the axis of rotation. In a rotating system the mechanical slop tends (only TENDS) to be preloaded by windage and other forces and so reduce such contributors to bounce. However, Murphy can make anything bounce if the situation demands it. R -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist