Intrusion Detection, lesson 2 of 12
Door and window contacts
Lesson 1 showed the panel asking one question all day: is anything open or moving that should not be? The magnetic contact answers the first half. It is the cheapest sensor in the building and the one that catches most break-ins, because most intruders come through a door or a window. This lesson shows how it works and how to fit it so that it stays quiet for twenty years.
Move the magnet
Slide the magnet away from the switch and watch the loop. Then change the contact and the door material.
The everyday picture
Open your refrigerator and the light comes on. Close it and the light goes off, or so you assume, since you cannot see it. A small switch at the edge of the door does that job. It knows one thing only: the door is against the cabinet, or it is not.
A door contact is the same idea with one improvement. A refrigerator switch is pressed by the door, so it wears, sticks and can be held in with a finger. An alarm contact has no touching parts. A magnet on the door operates a sealed switch on the frame through thin air.
Inside the contact
The switch half holds a reed switch: two thin springy strips of metal sealed in a glass tube about the size of a grain of rice, with their tips overlapping and a hair's width apart. Bring a magnet close and the strips become magnetized, attract each other and touch. Take the magnet away and they spring apart. The tube is sealed, so dust, damp and paint never reach the contacts.
The switch goes on the fixed part of the opening, because that is where the cable is. The magnet goes on the part that moves and needs no wire at all.
With the door shut, the magnet holds the switch closed and current flows around the zone's loop: out from the panel on one wire, through the switch, and back on the other. Open the door and the loop breaks. This arrangement is called a closed loop, and it has a useful side effect. A cut wire also breaks the loop, so the panel notices damage as well as doors.
A naming trap catches every newcomer. Contact packaging describes the switch with the magnet in place, so a "closed loop" or "normally closed" alarm contact is closed when the door is shut. Elsewhere in electronics, "normally" means with nothing acting on the switch. If in doubt, put a meter across the two wires and move the magnet.
Kinds of contact
| Kind | How it mounts | Typical rated gap | Good for |
|---|---|---|---|
| Surface | Two small blocks screwed or taped to the faces of frame and door | Around 3/4 to 1 inch | Retrofits, metal frames, anywhere you cannot drill |
| Recessed | Two plugs, 3/8 or 3/4 inch across, pressed into holes drilled in the frame and the door edge | Around 1/2 to 1 inch | New work and wood doors. Invisible when the door is shut. |
| Wide-gap | Surface or recessed, with a stronger magnet | 2 inches or more | Loose doors, steel, gates |
| Overhead door | Heavy metal housing bolted to the floor or track, with armored cable | 2 to 3 inches | Roll-up and sectional doors that rattle and get driven past |
| High-security | Larger surface housing with several reeds and a matched magnet assembly | Small and precise | Vaults, pharmacies, sites where someone may try to fool the contact |
The figures are typical. Every contact's data sheet states its gap, and that number is the one to design with.
The high-security kind is often called a balanced magnetic switch. A plain reed cannot tell its own magnet from any other magnet nearby. A balanced switch alarms when the field becomes stronger as well as weaker, so a second magnet brought near it causes an alarm. As a designer you only need to know when to ask for one: on openings where the contact itself could be the target.
Where on the door
Fit the contact on the edge that moves first and farthest: the latch side of a swinging door, at the top where feet, carts and mops do not reach. The top of the frame near the latch corner is the usual spot.
The hinge side is the wrong place, and simple geometry shows why. The door pivots on its hinges, so a point near the hinges barely moves. Take a 36-inch door with the latch edge pulled 6 inches open.
| Contact position, measured from the hinges | Movement at the contact | Would a 3/4-inch contact notice? |
|---|---|---|
| 4 inches | 6 × 4 ÷ 36 = about 0.7 inch | Probably not |
| 18 inches (middle of the door) | 6 × 18 ÷ 36 = 3 inches | Yes |
| 34 inches (near the latch) | 6 × 34 ÷ 36 = about 5.7 inches | Yes, and it noticed long before |
A door open 6 inches is open enough to reach through. The contact near the hinges would still report "closed".
Check yourself
Why does the switch half go on the frame and the magnet half on the door?
Gap, steel and loose doors
The rated gap is the greatest distance at which the magnet reliably closes the switch. Three things eat into it.
- Steel. A steel door or frame soaks up part of the magnet's field. On steel the working gap can fall to about half the rated figure. Use contacts made for steel, or fit the non-magnetic spacers that many surface contacts come with. The data sheet normally gives a separate gap for steel.
- Misalignment. The rated gap assumes the two halves line up. If the magnet sits half an inch to one side, less reaches the reed.
- Movement. Doors sag, wood shrinks in winter, and a loose door rattles in its frame when the wind blows or the air conditioning starts. Each rattle changes the gap.
A good rule of thumb is to use no more than about half the working gap when the door is closed. A contact fitted right at its limit will test perfectly on the day and false alarm on the first windy night. Try it in the tool at the top: set the standard contact on steel and see how little room is left.
A reed also lets go a little farther out than the point where it first closes. That small difference stops it chattering, but it does not rescue a contact fitted at its limit.
Choose a contact for an opening
Pick an opening to see what usually suits it and what to check before drilling.
What are you protecting?
Windows deserve one more thought. A contact reports that a sash has moved. It says nothing about the glass. A window that can be broken and climbed through without opening needs a glass-break detector or a motion detector behind it, which the next two lessons cover.
Cable and connections
- Cable. Contacts carry almost no current, so thin cable is fine. Two-conductor or four-conductor 22 AWG is the usual choice. Four conductors leave a spare pair and allow the supervised wiring taught in lesson 7.
- Splices. The contact's own leads are short and fine. Join them to the cable with crimp connectors made for the purpose, filled with sealant in damp places. Twisted and taped joints corrode and become the intermittent fault nobody can find.
- One opening per zone where you can. Several contacts can be wired in a chain, one after another, on a single zone. The panel then reports "windows" and somebody has to walk around to find which. Separate zones cost a little more cable and save hours later.
- No cable? A wireless contact has the reed inside a small battery transmitter. The fitting rules for gap and position are identical. Lesson 8 covers the radio side.
Three examples
Simple: a wooden front door
A house has a solid wood front door in a wood frame. The installer drills a 3/4-inch hole up into the top of the frame, about 6 inches from the latch corner, and a matching hole in the top edge of the door directly below. The switch presses into the frame with its cable running up into the wall, and the magnet presses into the door. With the door shut the two faces are about 1/8 inch apart. Nothing shows, and the door can be repainted without touching it.
Medium: the door that alarmed in January
A steel rear door on a restaurant gave false alarms on cold, windy nights and tested fine every time a technician visited. The surface contact was a standard one rated for 3/4 inch, screwed directly to the steel frame, and the gap was just over 1/4 inch. On steel that contact had roughly 3/8 inch to work with, so most of it was already used. When the wind pushed the door against its worn weatherstrip, the gap opened a little more and the reed let go.
The fix was a wide-gap contact made for steel, and a new strike plate adjustment so the door stopped rattling. The alarm stopped, and so did the draft.
Advanced: a pharmacy's dock door
A pharmacy receives deliveries through a sectional overhead door. The original contact was a small surface type on the door track at shoulder height. Delivery carts knocked it twice, and the door's side-to-side play caused alarms.
The redesign used a floor-mounted overhead-door contact with a 2-inch gap and armored cable, set beside the track on the side away from the cart path, with the magnet bracket on the bottom panel. Because the room behind holds controlled drugs, the insurer asked for more than a plain reed on the personnel door beside it, so that door received a high-security balanced contact. A motion detector inside the dock area backs both up. Each device covers what the others cannot.
From the field
- Test with the door, not your hand. Pull the closed door gently against its latch and watch the keypad. If the zone flickers, the gap is too close to the limit.
- Drill the frame hole at a slight angle toward the wall cavity if needed, and measure twice. The two halves of a recessed contact must end up facing each other.
- Leave a few inches of slack pushed back into the hole so the switch can be pulled out and replaced.
- On hollow metal frames, ask whether the frame is filled with grout before promising a recessed contact. If it is, you will be fitting a surface one.
- Seal recessed contacts on outside doors with a dab of silicone. Water running down a frame finds every hole.
Common mistakes
- Fitting the contact on the hinge side because the cable was easier to reach there.
- Using the rated gap on a steel door without checking the figure for steel.
- Mounting an overhead-door contact where vehicles and carts pass.
- Putting every window in a room on one zone, so no one can tell which is open.
- Contacting only the lower sash of a window whose upper sash also opens.
- Assuming a contact protects the glass. It only knows about the frame.
Summary
- A contact is a sealed reed switch held closed by a magnet. Door shut means loop closed.
- Switch on the frame, magnet on the moving part, on the opening edge and up high.
- Steel roughly halves the working gap unless the contact is made for it.
- Use about half the working gap, so a rattling door stays inside it.
- A contact detects opening, not breaking. Pair it with other sensors where glass is large.
Exercises
Answer each one yourself first, then open the answer.
Exercise 1. With the door closed, is the reed switch in a standard alarm contact open or closed?
Show answer
Exercise 2. A contact has a rated gap of 1 inch on wood. You are fitting it to a steel frame with no spacers. Roughly what working gap should you expect, and what closed-door gap should you aim for?
Show answer
Exercise 3. A 30-inch door has its contact 5 inches from the hinges. How far does the contact's magnet move when the latch edge is opened 3 inches?
Show answer
Exercise 4 (think, don't memorize). A shop owner wants contacts on four fixed display windows that do not open. What do you tell her?