The project was developed in Visual Studio 2017 For serial communications part, I use CSerial
- Power on the Pan Tilt Camera
- Connect the camera to your computer using Serial Ports(RS232) if your computer doesn't have serial ports, use a USB to RS232 Adapter
- Check your Systems Serial Ports COM connection status, for example: COM1 or COM2
- change here to your COM port number
for example, if your camera is connected to your computer on COM1,
if (ptz1.Open(2, 9600) == FALSE) {
PTZ.cpp is just a demo usage to test serial.cpp, you can use your own code to use function in serial.h to control the vedio camera
The video camera don't have close loop control for pan tilt angles, so the project will do auto calibration after a few actions