摘 要本论文在分析了摄像机云台结构、步进电机工作原理以及云台系统控制要求的基础上,设计了以 STC89C52 单片机为控制器的摄像机云台控制系统,以 ULN2025 为步进电机驱动芯片,利用独立按键控制云台转动,同时编写上位机程序并通过串口通信实现与 PC 机之间的串口通信。该控制系统由单片机控制模块、键盘模块、电机驱动模块、远程 PC 机控制模块组成。单片机控制模块的工作包括处理键盘输入、响应 PC 串口中断、控制电机运行;键盘模块采纳独立式键盘控制信息的输入;电机驱动模块采纳 ULN2025 驱动电路控制摄像机云台的运动;远程 PC 机控制模块实现微机远程控制单片机,进而控制步进电机。云台的运行有自动运行和手动运行模式,同时受上位机控制。键盘或 PC 输入信息,单片机接收后对输入信息进行处理,然后发出控制信号送 ULN2025A,ULN2025A 驱动步进电机运转。利用独立按键可以实现云台手动控制,利用计算机远程控制云台转动,增强了云台控制系统的有用性;同时利用 VC6.0 编写上位机,利用 Keil4 编译和调试,利用 Proteus 进行系统仿真,使系统更加完善。关键字: 单片机;云台;键盘;步进电机;串口通信AbstractThis thesis analyzes the structure of camera pan and tilt, stepper motor system works and PTZ control requirements based on the design of the controller to STC89C52 microcontroller camera pan and tilt control system to ULN2025 stepper motor driver chip for the use of separate buttons control the PTZ rotation, as well as prepare the PC program and through the serial communication with the PC serial communication between.The control system consists of single-chip control module, keyboard module, motor drive module, the remote PC control module. MCU control module include handling keyboard input, respond to PC serial port interrupt, control the motor running; Keyboard control modules using stand-alone keyboard input of information; motor drive module using ULN2025 driver circuit control camera pan and tilt movement; remote PC control module microcomputer remote control microcontro...