基于单片机的步进电机系统设计 联系客服

发布时间 : 星期六 文章基于单片机的步进电机系统设计更新完毕开始阅读

河南科技大学毕业设计(论文)

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

摘 要

步进电动机由于用其组成的开环系统既简单、廉价,又非常可行,因此在打印机等办公自动化设备以及各种控制装置等众多领域有着极其广泛的应用。

本文介绍的是一种基于单片机的步进电机的系统设计,用C语言编写出电机的正转、反转、调速、停止程序,通过单片机、电机的驱动芯片ULN2003A以及相应的按键实现以上功能,并且步进电机的工作状态要用数码管显示出来。

本文内容介绍了步进电机以及单片机原理、该系统的硬件电路、程序组成,同时对软、硬件进行了调试,同时介绍了调试过程中出现的问题以及解决问题的方法。该设计具有思路明确、可靠性高、稳定性强等特点,通过调试实现了上述功能。

关 键 词:步进电机,控制,驱动机构,单片机

河南科技大学毕业设计(论文)

DESIGN OF THE CONTROL SYSTEM

OF STEP-MOTOR

ABSTRACT

The open-loop system which is composed by step-motor is simple, cheap and very practical, so there are very wide range of applications in printers and other office automation equipment and various control devices, and many other fields.

This article describes one design of step-motor system based on micro-controller. The program of the preparation of a motor, reverse, adjust speed, stop is written by compile language. The above functions are realized through the micro-controller, motor driver chip ULN2003A and correspond key, and the work state of stepper motor is displayed through the nixie light

This article introduces the principle of stepper motor and single-chip microcomputer, the system hardware circuit, the program components, while software and hardware for the debugging, at the same time introduces the problems which are appeared in the debugging process and the solutions of the problems . The design has the advantages of clear, high reliability, strong stability, and the above-mentioned functions are realized through the debugging.

KEY WORDS: stepping motor, control, driving mechanism, single chip microcomputer

河南科技大学毕业设计(论文)

目 录

前 言 ................................................................................................ 1 第1章 步进电机简介 ....................................................................... 3 §1.1 步进电机概述 ........................................................................ 3 §1.2 步进电机的基本参数 ............................................................. 3 §1.2.1 步进电机的静态指标术语 ............................................... 3 §1.2.2 步进电机的动态指标术语 ............................................... 4 §1.3 步进电机的工作原理 ............................................................. 5 §1.4 步进电机的分类与选择 ......................................................... 7 §1.5 本设计步进电机具体型号的选择 ......................................... 8 第2章 步进电机驱动系统介绍 ....................................................... 9 §2.1 驱动系统的总体结构 ............................................................. 9 §2.2 电机的驱动系统简介 ............................................................. 9 §2.3 电机驱动系统的驱动原理 ................................................... 10 §2.3.1 电机的控制信号 ............................................................ 10 §2.3.2 控制信号的功率放大 .................................................... 11 §2.3.3 单片机控制信号的输出和编辑 ..................................... 12 §2.4 步进电机绕组的电气特性 ................................................... 13 第3章 单片机原理 ......................................................................... 16 §3.1 单片机原理概述 .................................................................. 16 §3.2 单片机的应用系统 ............................................................... 16 §3.3 AT89C51简介 ....................................................................... 17 第4章 硬件电路设计 ..................................................................... 23 §4.1 硬件电路总体设计 ............................................................... 23 §4.2 系统部分硬件电路设计 ....................................................... 23 §4.2.1 电源系统 ........................................................................ 23 §4.2.2 最小系统 ........................................................................ 24 §4.2.3 驱动部分 ........................................................................ 25 §4.2.4 状态指示部分 ................................................................ 25

河南科技大学毕业设计(论文)

§4.2.5 按键部分 ........................................................................ 26 §4.2.6 时钟部分 ........................................................................ 26 §4.2.7 复位部分 ........................................................................ 27 §4.2.8 keil-uvision4简介及调试 ............................................... 27 第5章 软件设计 ............................................................................ 29 §5.1系统开发软件环境................................................................ 29 §5.2系统程序框图及其程序 ........................................................ 29 结 论 .............................................................................................. 35 参考文献 .......................................................................................... 36 致 谢 .............................................................................................. 37 附 录 .............................................................................................. 38