{$cfg_webname}
主页 > 电子信息 > 单片机 >

基于STC89C52单片机的步进电机控制系统设计(附电路原理图,程序代码)

来源:wenku7.com  资料编号:WK716976 资料等级:★★★★★ %E8%B5%84%E6%96%99%E7%BC%96%E5%8F%B7%EF%BC%9AWK716976
以下是资料介绍,如需要完整的请充值下载。
1.无需注册登录,支付后按照提示操作即可获取该资料.
2.资料以网页介绍的为准,下载后不会有水印.资料仅供学习参考之用. 帮助
资料介绍

基于STC89C52单片机的步进电机控制系统设计(附电路原理图,程序代码)(论文13000字)
摘   要
步进电机作为一种完全由数字控制的进行精确步进运动的电动机,它的性能优良,稳定度高,使用灵活,成本低,在现代工业控制中得到了广泛的运用。
本文设计了一个受电脉冲控制的步进电机,它采用的是四相八拍的工作方式,改变它的绕组的接电相序来调控它的转动方向,控制电脉冲的输入数量以及频率来改变它的转动的角度和转动的速度。通过ULN2003驱动电路来放大功率以适应步进电机带负载时产生的较大扭力。用LCD1602液晶显示步进电机的转向,速度等。
本系统设计了各个模块,驱动电路;STC89C52微处理器控制模块;基本的交互外设按键及显示器件模块;通过AD9绘制电路图,用AD9仿真电路,在keil c平台用C语言编制和调试本课题微处理器89C52的程序,基本符合设计要求。

关键词:STC89C52  步进电机  电脉冲
 
Design of Stepping Motor Control System Based on STC89C52
 Single Chip Microcomputer
Abstract
Stepping motor as a fully digital control of the precise stepper motor,It has excellent performance, high stability, flexible use and low cost. It is widely used in modern industrial control.
In this paper, we design a stepper motor by electric pulse control, it is designed for four phase eight shot, by changing the motor windings energized phase sequence to change its direction of rotation and control electric pulse input quantity and frequency to change it and the speed of rotation. Through the ULN2003 drive circuit to amplify the power to adapt to the stepper motor with load when the larger torque. Using LCD1602 liquid crystal display stepper motor steering, speed, etc..
The system will be designed for each module,circuit module for driving a stepping motor; STC89C52 microprocessor control module; the basic interaction device keypad and display module; based on AD9 drawing circuit diagram, circuit simulation with AD9, in keil c platform, use the C language to compile and debug the subject microprocessor 89C52 program, in line with the basic design requirements.
 
Key Words: STC89C52;Stepper motor;Electric pulse
 

基于STC89C52单片机的步进电机控制系统设计
基于STC89C52单片机的步进电机控制系统设计


目  录
摘   要    I
Abstract    II
第一章 绪 论    1
1.1  研究背景    1
1.2      步进电机国内外研究现状    1
1.3  本文的主要工作和安排    2
第二章  步进电机控制系统总体设计方案    3
2.1  系统设计原理    3
2.2  单片机控制模块    3
2.2.1  单片机的选型    3
2.2.2  STC89C52单片机的引脚和说明    4
2.2.3  时钟电路    6
2.2.4  复位电路    7
2.3  步进电机模块    8
2.3.1  步进电机简介    8
2.3.2  步进电机结构    8
2.3.3  步进电机的工作原理    9
2.4  ULN2003芯片概述    10
2.5  LCD1602液晶显示模块    11
2.5.1  LCD1602简介    11
2.5.2  LCD1602管脚说明    11
2.5.3  LCD1602液晶控制指令    13
第三章 步进电机控制系统的软件设计    15
3.1  主控模块的程序设计流程    15
3.2  步进电机的一般控制    17
3.2.1  定时器与中断程序    17
3.2.2  键盘行列扫描    18
3.2.3  步进电机的正反转和加减速    20
3.3  LCD显示模块    21
第四章  系统的调试与分析    23
4.1  硬件电路板制作与程序的烧入    23
4.2  步进电机功能测试    24
第五章  总结与展望    26
5.1  总结    26
5.2  下一步工作的展望    27
参考文献    29
致   谢    30
附录一 电路原理图    31
附录二 程序代码与注释    32

推荐资料