摘要本论文中主要完成了一个步进电机驱动控制系统的设计。由L298和L297芯片构成的驱动控制模块与单片机系统相连接。实现了对于一个二相混合式步进电机旋转状态与转速的控制。其中包括启停、正反转、速度档位调节、以及以四拍或以八拍方式运转。此外,除了单片机程序中预设的五档转速,还设计了一个由555芯片构成的频率由电位器可调占空比恒定的电路来产生方波脉冲,并接入单片机的外部中断引脚来产生附加转速。这样,步进电机既能有级调速又能无级调速,覆盖转速范围广。最后,还设计了速度及位移显示电路,由七段数码管和发光二极管显示。驱动电路使用了L298芯片,简化了单片机的输出方式。采用C语言编写单片机控制代码,使可读性强,并且代码中包含了变速延时程序从而有效避免失速。21334
关键词: 单片机 L297 555 七段数码管 C语言 步进电机 驱动控制系统
毕业论文设计说明书(论文)外文摘要
Title The Design of Stepper Motor Position Control System
Abstract
This thesis completed a design of stepper motor control system mainly. The Controller and driver module which is composed of L297 stepper motor controller and L298 integrated monolithic circuit is connected to the microcontroller. This stepper motor control system implements the function of stop-go, counter-clockwise rotation, speed stage convertion and half/full step mode convertion. Besides these funcions, this thesis also expounded a design of multivibrator which is used to be a generator of square wave by 555 monolithic circuit mainly .It can make the stepper motor change the speed by a potentiometer. So it achieved The combination of stepless speed variation and step speed variation. Finally, this thises expounded the design of display module.The module can display the laps and speed stage by Seven-segment display and LED. Because of the L298,the way of the output of microcontroller became easier. And in this thesis, the microcontroller’s function is achieved through C language. So the Block-based design make the code easier for reading and writing. In addition, the C language code include a speed variation protection function in order to avoid losing step.
Keywords stepper motor Controller and driver module microcontroller L297 555 C language Seven-segment display
目 次
1 引言 1
1.1 国内外步进电机控制系统发展概况 1
1.2 本课题研究意义 2
1.3 本文研究内容 3
2 步进电机简介 3
2.1 步进电机概述 3
2.2 步进电机原理 4
2.2.1 基本原理 4
2.2.2 步进电机分类与选择 5
2.3 本次设计所选用的二相步进电机 6
3 硬件系统设计分析 8
3.1 总体硬件方案 8
3.1.1 系统具体功能要求 8
3.1.2 根据功能要求确定总体硬件解决方案 8
3.1.3 各独立模块的连接关系与系统框图 9
3.2 单片机系统 9
3.2.1 单片机系统简介 9
3.2.2 AT89C52单片机 10
3.3 单片机最小系统的设计 16 单片机步进电机位置控制设计+源程序+电路图:http://www.youerw.com/zidonghua/lunwen_13505.html