云台之家-基于STM32的云台控制-技术论文

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

基于STM32的云台控制

学校:XXXXXXXXXXXX

队伍:云台之家

组长:XXXXXX

队员:XXXXXX

队员:XXXXXX

指导老师:XXXXX

目录

摘要 (3)

Abstract (4)

第1章绪论 (5)

1.1 课题研究背景 (5)

1.2 国内外云台研究发展现状 (5)

1.3 本文的主要工作和结构安排 (6)

第2章系统概述 (8)

2.1 STM32F103处理器 (8)

2.1.1 STM32 F107处理器概述 (8)

2.1.2 STMF103处理器系统结构 (9)

2.1.3 STM32微处理器对电机的控制 (10)

2.1.4 STM32F103处理器低功耗 (11)

2.2 电机的定义及控制原理 (11)

2.2.1 直流电机定义 (11)

2.2.2 直流无刷电机工作原理 (12)

第3章直流电机控制模块 (13)

3.1 直流电机驱动电路 (13)

3.1.1 直流电机驱动芯片L293D (13)

3.2 直流电机转速PWM控制 (14)

3.3 直流电机闭环控制 (15)

3.3.1 PID控制算法 (15)

第4章倾角检测模块 (17)

4.1加速度传感器 (17)

4.2测倾角原理 (18)

第5章基于STM32云台系统硬件设计 (21)

5.1 驱动电路的介绍 (21)

5.2 倾角检测电路的介绍 (22)

第6章基于STM32云台控制系统软件设计 (23)

6.1 软件设计流程图如下 (23)

第7章总结 (24)

7.1 总结 (24)

摘要

随着经济社会的发展,人们对于想在高空拍摄地面图片的要求越来越高,云台技术得到了迅速发展并逐步开始应用各个领域。为了能够扩大拍摄视野,便于远程操作,常借助于云台,即把摄像机安装在云台上,通过云台转动来带动摄像机转动,同时通过云台控制协议设置摄像机镜头参数,云台在拍摄系统中起着非常重要的作用。而现在又的云台控制系统普遍采用步进电机作为驱动源,存在着稳定性差、功耗大、计数不准确等特点,而采用体积小,节能环保的直流电机作为驱动源的云台控制系统成为研究的热点,并且具有广阔的应用前景。

本文提出以低功耗云台设计为出发点的系统设计方案。以现有的单片机技术和控制理论为依托,研究如何从硬件和软件两方面,对系统进行低功耗设计。硬件核心处理器采用的是意法半导体公司的STM32F103芯片,该芯片使用好高性能且低功耗的的ARM Cortex-M3处理器。云台驱动源采用低功耗的直流无刷电机,在角度计数方面采用加速度计来检测倾角从而实现云台的精确定位功能。

论文采用模块化的设计概念,以STM32处理器为核心,通过外围电机驱动电路来驱动无刷直流电机,实现电机的正传与反转,同时由直流电机的转速与其电枢两端的电压成正比,根据这一特性可通过STM32单片机PWM外设控制直流电机的转速。STM32微处理器根据为角度编写的PID算法来调节PWM输出,保证了云台的匀速、稳定、精确运行。

关键词:STM32 直流电机驱动 PWM 陀螺仪

Abstract

With the development of economy and society, people who want to shoot at high altitude ground pictures have become increasingly demanding, PTZ technology has been developing rapidly and gradually began to apply in various fields. To be able to shoot horizons expand, easy remote operation, often by means of PTZ camera that is mounted on the head, led by head rotation to rotate the camera, while the camera lens control protocol parameters set by the head, the head in the shooting system plays a very important role. And now the head stepper motor control system widely used as a driving source, there is a poor stability, power consumption, the count is not accurate, etc., and the use of small, energy-saving DC motor as a driving source tilt control system become a hot research and has broad application prospects.

This paper presents the design of low-power system design PTZ starting point. Existing microcontroller technology and control theory as the basis, to study how the hardware and software aspects of the system low-power design. Hardware core processor uses the STMicroelectronics STM32F103 chip that good use of high-performance and low-power ARM Cortex-M3 processor. PTZ driver source using low-power DC motor, using gyroscopes to achieve in terms of the angle of the head count of the precise positioning.

Paper uses a modular design concept to STM32 processor as the core, through the peripheral motor drive circuit to drive the brushless DC motor to achieve Story and reverse the motor, while the voltage is proportional to the rotational speed of the DC motor armature ends its according to this feature DC motor speed can be controlled by STM32 microcontroller PWM peripheral. STM32 microprocessor prepared according to the angle of the PID algorithm to adjust the PWM output to ensure that the head of the uniform, stable and accurate operation.

相关文档
最新文档