基于STM32的步进电机控制系统

发布时间 : 星期二 文章基于STM32的步进电机控制系统更新完毕开始阅读

基于STM32的步进电机控制系统

沈阳航空航天大学 2010年6月

摘 要

本文的主要工作是基于STM32步进电机控制系统的设计。随着越来越多的高科技产品逐渐融入了日常生活中,步进电机控制系统发生了巨大的变化。单片机、C语言等前沿学科的技术的日趋成熟与实用化,使得步进电机的控制系统有了新的的研究方向与意义。本文描述了一个由STM32微处理器、步进电机、LCD显示器、键盘等模块构成的,提供基于STM32的PWM细分技术的步进电机控制系统。该系统采用STM32微处理器为核心,在MDK的环境下进行编程,根据键盘的输入,使STM32产生周期性PWM信号,用此信号对步进电机的速度及转动方向进行控制,并且通过LCD显示出数据。结果表明该系统具有结构简单、工作可靠、精度高等特点.

关键词:STM32微处理器;步进电机;LCD显示;PWM信号;细分技术

I

Abstract

As well as the high-tech products gradually integrated into the daily life, servo control system has undergone tremendous changes. SCM and C language of the frontier disciplines such mature technology and practical, steering control system is a new research direction and meaning. This paper describes a STM32 microprocessors, steering, LCD display and keyboard, 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 , 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 hardware, stable operation and high precision are incarnated in the proposed system.

Keywords: STM32 microprocessors; Steering system; LCD display;pulse width modulation signal;Subdivide technology

II

目 录

第1章 绪 论 ..................................................................................................................... 1 1.1 课题背景 .................................................................................................................... 1 1.2 课题目标及意义 ........................................................................................................ 2 1.3 课题任务及要求 ........................................................................................................ 3 1.4 课题内容分析与实现 ................................................................................................ 3 1.5 课题论文安排介绍 .................................................................................................... 3 第2章 步进电机控制系统的总体方案论证..................................................................... 5 2.1 总体方案 .................................................................................................................... 5 2.2 步进电机控制系统硬件方案 .................................................................................... 5 2.3 步进电机控制系统软件方案 .................................................................................... 6 第3章 系统的硬件设计 ..................................................................................................... 7 3.1 STM32开发板简介 .................................................................................................... 7 3.2 步进电机模块 ............................................................................................................ 8 3.2.1 步进电机驱动模块 .............................................................................................. 8 3.2.2 步进电机驱动控制模块 .................................................................................... 10 3.2.3 步进电机的一些特点 ........................................................................................ 11 3.2.4 步进电机的一些基本参数 ................................................................................ 12 3.2.5 步进电机的驱动方法 ........................................................................................ 13 3.3 A/D转换模块 ............................................................................................................ 13 3.3.1 模拟/数字转换(ADC)介绍 .......................................................................... 13 3.3.2 模拟/数字转换(ADC)主要特性 .................................................................. 13 3.3.3 模拟/数字转换(ADC)功能描述 .................................................................. 14 3.4 LCD显示模块 .......................................................................................................... 16 3.5 硬件电路 .................................................................................................................. 17 第4章 控制系统软件设计 ............................................................................................... 18 4.1 控制系统软件设计步骤 .......................................................................................... 18 4.2 Keil for ARM软件开发环境 .................................................................................... 19

III

联系合同范文客服:xxxxx#qq.com(#替换为@)