If you want to learn how to connect a PTZ camera to a DVR, I got to tell you that you are in the right place.
In this article you are going to learn how to identify the DVR and the PTZ camera physical connectors, how to wire them properly and how to setup the devices by using the RS-485 standard and the correct protocol (Pelco P or D).
Here are the steps to connect a PTZ camera to a DVR:
1. Identify the physical RS-485 connector in the camera;
2. Identify the physical RS-485 connector in the DVR;
3. Run the wire between the DVR and the PTZ;
4. Set the dip-switches on the camera to chose the parameters;
5. Log into the DVR and setup the PTZ parameters.
==> Just keep reading to understand all the details...
How to control a PTZ camera
PTZ cameras have an internal motor to control the position of the lens that can move horizontally (known as PAN) or vertically (known as TILT) and there's also a motor to control the optical ZOOM.
By controlling the PTZ movements, an operator can patrol a certain location by sending commands using a controller (joystick), a DVR (Digital Video Recorder) or software installed in a computer located in a remote monitoring center.
To send the commands, it is necessary to connect a two-wire cable (positive and negative) from the back of the DVR to the PTZ camera.
In this example, the cameras are connected to the DVR with a twisted pair cable that sends the commands through a universal connection standard and a protocol that the camera and the DVR have in common (such as Pelco P or D).
The twisted pair wires must be connected to the back of the DVR into the RS-485 connector.
The RS-485 PTZ control standard
By using the RS-485 standard with twisted pair cables, it is possible to send commands to the camera at distances up to 1,200m (3,937 feet) and multiple cameras can be connected to the cables in a serial line.
In the image below, it is possible to see the connector used for the command via RS-485. Note that they are labeled “positive and negative”.
Depending on the model of the equipment, these labels may be different, there are DVRs and cameras that show: TX + / TX- or RX + / RX-.
TX is the transmitter and RX is the receiver. If we follow the logic, the DVR should be the TX that transmits the commands and the RX camera that receives the command.
The important thing to keep in mind is that positive and negative wires should be properly connected to the DVR and to the camera. The device’s manual has the instructions for that and not all manufacturers follow a standard for the names.
In addition to the physical connection using the RS-485 standard, it is also necessary to configure the camera ID and the communication protocol that will be used between the devices.
This communication protocol is developed by the manufacturer itself, so if the DVR and camera are from the same manufacturer there will be no problems, but if they are from different brands we must use a universal protocol.
There is a universal protocol called Pelco P and another called Pelco D, they are available in cameras and DVRs from different manufacturers, so if we have different brands of equipment we can use this protocol.
The Pelco-P and Pelco-D protocols
Pelco is a large camera manufacturer that created this communication protocol for PTZ cameras. This standard became popular among system integrators, so other manufacturers besides having their own protocols, also let Pelco's protocol available on their equipment for compatibility.
When both devices (PTZ and DVR) are manufactured by the same company they usually use the same protocol, so there's no need to use Pelco's.
On situation, where the devices have different brands, it is necessary to choose the common protocol between them, in this case Pelco P or D for example.
A PTZ camera usually has a switch where you can choose the protocol.
This is an example of how a camera's protocol is configured. A small arrow can be rotated to a specific position in which a number or letter represents the protocol.
Using a table from the camera manufacturer's manual you can choose the protocol that will be used, as shown in the illustration below:
In the table you can find the manufacturers and their respective protocols and data such as communication speed (Baud Rate).
The configuration is very simple, just follow the table orientation and choose the protocol you want to use, in the case of this manufacturer the arrow positioned at number 6 indicates that the camera is configured to use Pelco P protocol with Baud Rate 9,600
It is also necessary to configure the DVR with the same parameters used in the camera.
In the above example, the parameters have been configured on the camera using a system with a rotating arrow, other cameras may, howeve,r have a set of small switches known as "Dip Switches" that can be placed in the "on and off" positions to obtain the desired setting.
A table for the correct combination of these switches ("Dip Switches") can also be found in the camera manufacturer's manual.
How to setup the DVR for PTZ control
See below a Pelco-P protocol configuration example for a DVR, just go to the PTZ menu and search for these settings for each of the cameras.
Other parameters such as Data Bit, Stop Bit, Parity, and Flow Control may appear on the menu.
In the menu above that the DVR has several types of protocols from different manufacturers, that can be different according to each brand.
Not all DVRs will have these protocols that we see in this menu, but they will all have the Pelco protocol that is easily found in other manufacturers' equipment, so use it by default when you want to set up a different brand’s devices.
I hope you could learn how to connect a PTZ camera to a DVR, the next step is to test in your devices. Just apply the concept that you've learned here.
It's important to read the device's manual to make sure you are using the right protocol, baud rate and everything else.
Want to learn more ?
If you want to become a professional CCTV installer or designer, take a look at the material available in the blog. Just click the links below:
Please share this information with your friends...
Claudemir Martins is a former Samsung Engineer with 16+ experience in the surveillance industry. He has been traveling around 17 different countries to teach people how to design, and install CCTV systems.