How to Connect Alarm Wires for IP Cameras
In this article
Connecting alarm wires on an IP camera lets the camera trigger an external siren, strobe light, or alert you when motion is detected — and it also lets a doorbell or PIR sensor trigger the camera to record. The short answer: most IP cameras have a small terminal block or bare wire pigtails labeled ALARM IN, ALARM OUT, and GND. You connect a normally open (NO) or normally closed (NC) device to the input, and the camera's output switches a relay to power an external alarm. Before you start, check your camera's manual for the exact pinout, because labels vary by brand.
What You'll Need
- IP camera with alarm input/output terminals (check the spec sheet)
- Small flathead screwdriver (for terminal blocks)
- Wire strippers or a knife
- 22–18 AWG stranded wire (solid works too, but stranded bends better)
- Heat shrink tubing or electrical tape
- Multimeter (optional, for testing continuity)
- External alarm device: siren, strobe, or relay module (must match the camera's output rating)
- For a PIR or door sensor: a normally open or normally closed switch (check your camera's spec)
Step-by-Step
- Power off the camera completely. Unplug the PoE or DC power cable. Never work on live terminals.
- Locate the alarm terminals. On most IP cameras, they are either:
- A 4-pin terminal block on the back or bottom, labeled ALARM IN, ALARM OUT, GND, and sometimes AUX.
- Bare wire pigtails (usually red, black, yellow, white) coming out of the camera's pigtail cable.
- Identify the input type. Check your camera's spec: does the alarm input accept a normally open (NO) or normally closed (NC) circuit? Most cameras let you configure this in software, but some are fixed. If you're connecting a PIR or door sensor, match the type.
- Wire the alarm input (for a sensor).
- Take the two wires from your sensor (e.g., a PIR motion detector).
- Connect one wire to the ALARM IN terminal.
- Connect the other wire to the GND terminal.
- Tighten the screws firmly.
- Wire the alarm output (for a siren/strobe).
- The ALARM OUT is usually a relay output — it acts like a switch. It does not supply power itself.
- You need a separate power source for the siren (e.g., a 12V DC adapter).
- Connect the siren's positive wire to the power supply's positive terminal.
- Connect the siren's negative wire to one side of the camera's ALARM OUT terminal.
- Connect the other side of the ALARM OUT terminal back to the power supply's negative terminal.
- This completes the circuit only when the camera triggers the relay.
- Double-check polarity and connections. Use a multimeter in continuity mode to verify that the relay contacts are open when the camera is idle and close when you trigger a test alarm (you'll need to power the camera back on for this).
- Power on the camera and go to its web interface or app.
- Configure the alarm settings. Look for a section called "Alarm," "Event," or "I/O." You'll typically find:
- Input type: NO or NC — set this to match your sensor.
- Output action: choose what triggers the output (e.g., motion detection, video loss, or manual trigger).
- Output duration: how long the siren stays on (e.g., 5 seconds, 30 seconds).
- Test the system. Trigger the sensor (walk in front of the PIR) or use the manual trigger button in the app. The siren should activate. If not, check wiring and settings.
Common Mistakes
- Assuming ALARM OUT provides power. It's a dry relay contact — it only switches a circuit. You must supply power separately.
- Wiring a sensor to ALARM OUT instead of ALARM IN. Inputs read a switch state; outputs control a load. Mixing them up will do nothing.
- Ignoring NO vs. NC. If your camera expects NC and you wire a NO sensor, the alarm may trigger constantly or never. Check both the sensor and camera specs.
- Overloading the relay. Most camera alarm outputs handle only 12V DC at 100mA or so. A big siren will burn out the relay. Use an external relay if your siren draws more.
- Leaving bare wires exposed. Short circuits can damage the camera. Always insulate with heat shrink or electrical tape.
- Not checking the manual. Some cameras use a shared ground, others have isolated inputs. The pinout is not universal.
Tips
- Use stranded wire for flexibility, especially if the camera is on a PTZ mount.
- Label each wire at both ends — it saves time later.
- If your camera is outdoors, use weatherproof connectors and seal the terminal block with silicone grease.
- For long runs (over 10m), use thicker wire (18 AWG) to avoid voltage drop.
- Test with a simple LED and resistor before connecting a real siren — it's safer and easier to debug.
- If your camera's alarm input is 3.3V logic (not a dry contact), you may need a transistor circuit. Check the spec sheet.
- Always check local laws about audio recording and alarms — some areas restrict siren loudness or require permits.
Troubleshooting
If the alarm doesn't work after wiring, follow these steps in order:
- Check the obvious: Is the camera powered on? Are the terminal screws tight? Is the sensor battery dead (if wireless)?
- Test the sensor separately: Use a multimeter to see if the sensor's contacts close/open when triggered. If not, the sensor is faulty.
- Test the output relay: With the camera on, use a multimeter to check continuity across the ALARM OUT terminals. Trigger a manual alarm in the app. If the contacts don't close, the camera's relay or firmware is the issue — try a factory reset of the camera's event settings.
- Verify the input is being detected: In the camera's web interface, look for a "Digital Input" status indicator. If it doesn't change when you trigger the sensor, the input type (NO/NC) is wrong, or the wiring is reversed.
- Check the power supply for the siren: If the relay closes but the siren doesn't sound, measure voltage across the siren. If it's 0V, the wiring to the power supply is wrong.
- Reset the camera: If nothing else works, do a factory reset (this clears all settings — you'll need to reconfigure the camera).
Frequently Asked Questions
Can I connect a 12V siren directly to the camera's alarm output?
Only if the camera's output is rated for 12V and the siren draws less than the camera's maximum current (usually 100mA). Otherwise, use an external relay: connect the camera's output to the relay coil, and power the siren through the relay contacts.
What's the difference between ALARM IN and ALARM OUT?
ALARM IN is for connecting sensors (like PIRs or door contacts) — the camera detects when the circuit opens or closes. ALARM OUT is a relay that the camera closes to trigger an external device, like a siren or light.
My camera only has one alarm terminal. Can I still connect a sensor?
Some cameras have a combined input/output with a single common ground. Check the manual — you may need to use the same GND for both. If there's only one terminal, it's likely an output only, and you can't add an input.
Do I need to use a resistor for the alarm input?
Some cameras have a built-in pull-up resistor, so a bare switch works. Others require an external resistor (often 10kΩ) to prevent false triggers. Check the spec sheet — if unsure, add a 10kΩ resistor in series with the input.
Can I trigger the alarm output from the camera's app?
Yes, most IP camera apps have a manual trigger button (often under "Device Settings" or "Alarm Output"). This is useful for testing.
Is it safe to wire alarm connections while the camera is powered?
No. Always disconnect power before touching any terminals. The relay output may carry low voltage, but the input circuit can be sensitive to static, and you risk shorting something.
Note: For mains-powered alarms (e.g., 120VAC sirens), you must hire a licensed electrician — do not attempt that yourself.