hi, currently i m doing a home security project..i have a magnetic contact switch..but i dont know how to connect it to PIC..
Magnetic contact is usually Normally Close(NC) and used on door and window. They consists of
two parts, namely a magnet and a reed switch. When the reed switch is in close
proximity to the magnet, the switch will close and vice versa. Usually the magnet is
fitted to the door and the reed switch is fitted to the door frame in close proximity to
one another such that when the door is closed, the two parts are in close contact and
hence the switch is closed.
so there are wires at the reed switch..how should i connect it to PIC port to make it as a magnetic door sensor? when door open then alarm will be triggered.
thanks
Magnetic contact is usually Normally Close(NC) and used on door and window. They consists of
two parts, namely a magnet and a reed switch. When the reed switch is in close
proximity to the magnet, the switch will close and vice versa. Usually the magnet is
fitted to the door and the reed switch is fitted to the door frame in close proximity to
one another such that when the door is closed, the two parts are in close contact and
hence the switch is closed.
so there are wires at the reed switch..how should i connect it to PIC port to make it as a magnetic door sensor? when door open then alarm will be triggered.
thanks