您好,欢迎来到佳博论文网!

基于VC++的云台控制系统开发设计

论文编号:CK044论文字数:12017,页数:40

摘 要

在实时监控、在线直播、远程教育等许多领域都需要用到计算机控制云台动作及CCD摄像头的焦距、光圈。云台控制系统是通过计算机串口/并口发送控制指令到解码器,再由解码器控制相应的继电器达到各个电源并关的闭合,从而实现摄像头在垂直方向的运动、水平方向的摆动

此云台控制系统是采用Visual C++“ 6.0通信控件MScomm实现云台控制系统的串行通信。Visual C++” 6.0是在Windows平台下开发串行通信程序的高效编程语言工具,在云台镜头控制系统中,解码器起着核心的地位。此云台控制系统就是将各项操作进行编码,通过RS-232串行接口向解码器发出指令,解码器收到指令后,正确解析并控制继电器的断开闭合。从而控制云台在垂直方向的运动以及水平方向的摆动

关键词:VC++ 云台 控制系统  通信串口 

Abstract

In real-time monitoring, on-line broadcast, distance education and many other areas need to use computer-controlled CCD PTZ camera movements and the focal length, aperture. PTZ camera control system through the computer serial port / parallel port to send control commands to the decoder, then the corresponding decoder control relay and power supply to meet all of the closing clearance to achieve camera movement in the vertical direction, horizontal direction swing This control system used Visual C + + "6.0 communication control PTZ camera to achieve MScomm serial communication control system. Visual C + +" 6.0 was developed under the Windows platform for high-performance serial communication procedure programming language tools, In the PTZ camera control system, plays a central decoder status. This PTZ control system is to encode the operation, through the RS-232 serial interface to issue commands to the decoder, the decoder after receipt of instructions, the correct analysis and control of the disconnect relay closure. Yuntai to control movement in the vertical direction and horizontal direction of the swing

Keywords:Visual C++; yuntai; control system; Serial Communication Port;

目 录

摘要……………………………………………………………………………...……………..Ⅱ

1 前言…………………………………………………………………………………………..1

2 总体设计方案………………………………………………………………………………2

2.1 主要任务与目标………………………………………………………………………...2

2.2 主要内容与要求………………………………………………………………………...2

2.3 设计思路简介……………………………………………………………………... ……2

3 系统硬件结构………………………………………………………….............................4

3.1 云台简介……………….…………………………………………………………….4

3.1.1 云台的分类……………….…………………………………………………4

3.1.2 云台的内部结构………….…………………………………………………4

3.1.3 通用型云台的性能指标….…………………………………………………4

3.2 通信串口RS-232…………………………………………………………………….. 6

3.2.1 RS-232简介…………………………………………………………………6

3.2.2 RS-232C 串口通信接线方法(三线制)…………………………………….8

3.2.4 云台串口协议….……………………………………………………………9

4 系统软件结构………………………………………………………….............................11

4.1 Visual c++应用程序开发环境….…………………………………………………11

4.1.1 Visual c++简介……………………………………………………………11

4.1.2 Visual c++的集成开发环境…………………………………………12

4.2 串口通信的初始化设置……………………………………………………………21

4.3 程序创建………………………………………………………….............................22

5 系统测试及运行结果……………………………………………….............................23

5.1 测试目的…………………………………………………………....................... ...23

5.2 运行结果…………………………………………………………....................... ...23

总结……………………………………………………………………………. . .……………..24

致谢……………………………………………………………………………. . .……………..25

参考文献………………………………………………………………………. . .…………….. …….26

基于VC++的云台控制系统开发设计......