当前位置:首页 > 【完整版】基于STM32的舵机控制系统毕业论文
基于STM32的舵机控制系统
摘 要
I
随着越来越多的高科技产品逐渐融入了日常生活中,舵机的控制系统发生了巨大的变化。单片机、C语言等前沿学科的技术的日趋成熟与实用化,使得舵机的控制系统有了新的的研究方向与意义。本文描述了一个由STM32微处理器、舵机、LCD显示器、键盘等模块构成的,提供基于STM32的PWM信号舵机的控制系统。该系统采用STM32微处理器为核心,在MDK的环境下进行编程,根据键盘的输入,使STM32产生周期性PWM信号,用此信号对舵机的速度及转角进行控制,并且通过LCD显示出数据。结果表明该系统具有结构简单、工作可靠、精度高等特点. 关键词:STM32微处理器;舵机系统;LCD显示;PWM信号
Abstract
II
As well as the and meaning. This paper describes a STM32 microprocessors, steering, LCD display and keyboard, etc. Based on the STM32 servo control system of PWM signal,This system uses STM32 microprocessor as the core, MDK in the environment, according to the keyboard input programming, STM32 produce periodic PWM signal, with this signal to the velocity and Angle of steering gear control, and through the LCD display data. The features of the simple and are incarnated in the proposed system.
Keywords: STM32 microprocessors; Steering system; LCD display;pulse width modulation signal
目 录
III
第1章 绪 论 ..................................................................................................................... 5 1.1 课题背景 .................................................................................................................... 2 1.2 课题的研究展望 ........................................................................................................ 3 课题任务及要求 ............................................................................................................... 3 1.3 课题内容及安排 ........................................................................................................ 4 第2章 硬件设计 ................................................................................................................. 4 2.1 STM32微处理单元 .................................................................................................... 5 2.2 舵机 ............................................................................................................................ 8 2.3 LCD显示器 ................................................................................................................ 9 2.4 时钟电路的制作 ...................................................................................................... 10 第3章 软件设计 ............................................................................................................... 11 3.1 STM32固件库简介 .................................................................................................. 12 3.2 软件的总体设计 ...................................................................................................... 13 3.3 时钟初始化子程序 .................................................................................................. 14 3.4 IO口初始化子程序.................................................................................................. 17 3.5 PWM信号子程序 .................................................................................................... 17 3.6 AD转换初始化子程序 ............................................................................................. 18 3.7 LCD显示子程序 ...................................................................................................... 19 第4章 系统调试 ............................................................................................................... 20 4.1 调试方案 .................................................................................................................. 21 4.1.1 硬件调试方案 .................................................................................................... 21
IV
共分享92篇相关文档