In this video, I’ll demonstrate how to connect a magnetic door sensor to the security camera alarm input of a Viewtron IP camera. These Viewtron IP cameras have alarm input and alarm relay output ports. Devices that are connected to the alarm input port can be used to trigger various types of alarms on the IP camera. They can also trigger alarm actions on a Viewtron NVR and to alarm output devices connected to the NVR, as well as other IP cameras.
In the above video, I configure the door sensor to trigger the following alarm actions when the door is opened.
- Start recording on the DVR / NVR. The video recordings are bookmarked by the DVR as an alarm event, which makes them very easy to go back and find later.
- Capture a full resolution image snapshot of the alarm event.
- Trigger an alarm relay output on the NVR. I connected a flashing light to the alarm relay output port.
- Pop-up the live video full screen view of the IP camera that triggered the alarm.
- Display a warning message on the screen that describes the door alarm event that occurred.
- I did not setup the mobile app push notification for this demo, but that can also be done. You can watch a mobile app push notification video demo here.
Here is how it is all setup.
Security Camera Alarm Input Wiring
Wiring a magnetic door sensor to the alarm input of a Viewtron IP camera is simple. I used 18 / 2 power wire, but you can also use one of the twisted pairs from a CAT5-E or CAT6 cable. The alarm in / out block on the camera uses screw down terminals, as does the magnetic door sensor.
PoE Camera Connection to NVR
All Viewtron IP cameras support PoE. This is the back of a Viewtron 8 channel NVR. The 8 camera input ports all provide PoE. To connect the camera to the NVR, simply connect a CAT5E or CAT6 cable between the camera are one of the NVR’s PoE ports. This provides power and connectivity between them.
Alarm Relay Output
This part is optional. If you want to trigger a flashing light via an alarm output port on the NVR, this is how an alarm light is wired to the relay output port on the NVR.
Alarm Input Setup on NVR
To setup the alarm actions on the NVR, click the icon in the lower left and select Settings.
On the main settings menu of the NVR, click on the AI / Event link.
Next, click on the Sensor link on the left menu. Then locate the alarm input settings of your IP camera Configure the following settings.
- Alarm Name. You may set this to whatever name you like.
- Schedule. You can choose from the preconfigured schedules or setup your own custom schedule.
- Type. The this to NC which means normally closed.
- Enable. Set to On.
- Duration. Choose the length that you would like the alarm to persist.
- Record. Check this box then select the camera(s) that you would like to record video on when the door sensor is opened.
- Snapshot. Check this box then select the camera(s) that you would like to take a snapshot image from.
Scroll the screen to the right to see the rest of the settings.
- Push. Set this to on if you want the DVR to send a push notification to the mobile app (iPhone and Android).
- Alarm-Out. Check this box and select which alarm relay output ports you want to triggered.
- Preset. If you have a PTZ camera on your system, you may configure the PTZ camera to go to a preset location when the alarm is triggered.
- Pop-up Video. Enable this and select the live view of the security camera that you want displayed when the alarm is triggered.
- Pop-up Message Box. Enable this if you want a warning message to appear on the screen when the door sensor triggers the alarm.
- Email. CCTV Camera Pros does not recommend using the email feature unless you know how to configure an SMTP server. We suggest using the push notification instead.
When you are done, click on the Apply button in the lower right.
Security Camera Alarm Recording Setup
Next, click on the Record link on the top menu. You must enable a recording mode that includes Sensor Record. This is what enables the security camera alarm to trigger video recording on the NVR.
When you are done, click the Apply button. Then, close the NVR settings by clicking on the X in the upper right.
Alarm Sensor Video Recording Search & Playback
To playback recorded video surveillance events, select Playback from the lower left.
When the video playback screen opens, you will see a time line on the right. The alarm sensor events will be notated in red on this time-line. You can click anywhere on the time-line to jump to that section of video surveillance footage.
IP Cameras with Alarm Input
You can find all of out Viewtron IP cameras with alarm input here. These security cameras also have alarm output ports.
You can find all of our Viewtron NVRs here. We have 8 channel, 16 channel, 32 channel, and 64 channel NVR models.
DVR & IP Camera with Alarm Videos
You can watch additional security camera alarm and DVR alarm video demos here.
Have Questions / Need Help?
If you have any questions, please email me at email@example.com.