基于单片机控制的步进电机,实现歩进电机的启停、正反转设计

题目: 单片机控制步进电机

任务与要求:

用单片机控制步进电机,实现步进电机的起停、正反转功能。

摘要

步进电机机电控制中一种常用的执行机构,它的用途是将电脉冲转化为角位移。当步进驱动接收到一个脉冲信号,它就驱动步进电机按设定的方向转动一个固定角度(及步进角)。通过控制脉冲个数即可以控制角位移量,从而达到准确定位的目的。

本设计采用80c51系列单片机对步进电机进行控制,对但单片机控制步进电机系统的控制方式和软件设计进行研究,分别从位置控制,速度控制,正反转三个方面进行详细的分析。

关键词; 单片机;步进电机;控制系统

Abstract

Stepper motor electromechanical control the implementation of a Common it is the of electrical pulses into angular displacement .When stepping drivers receive a pulse signal it stepper motor driven in the direction set by a fixed rotation angle (angle and stepper) by controlling the number of pulses that can control the angular displacement .thus

achieving the purpose of accurate positioning; pass control to control the pulse Frequency of motor rotation speed and acceleration so as to achieve the purpose of speed

The design used 80c51 microcontroller series of stepper motor control SCM control of the stepper motor control system and software design of the study from the position control.

Keywords; Single slice machine; Stepper motor;Control system

目 录

1总体方案论证 ................................................................. 1 1.1 步进电机简介 .............................................................................................................................. 1 1.2步进电机在我国的发展应用及前景 ........................................................................................... 1 1.3 本文研究内容 .............................................................................................................................. 2 1.4设计方案的论证 ........................................................................................................................... 2 1.5设计的意义与要解决的问题 ....................................................................................................... 3 2 步进电机的基本知识 ........................................................... 4 2.1 步进电机的概念 .......................................................................................................................... 4 2.2 步进电动机的结构 ...................................................................................................................... 5 2.3 步进电机的特点 .......................................................................................................................... 5 2.4 步进电机的原理 .......................................................................................................................... 6 2.5 步进电机的基本参数 .................................................................................................................. 7 2.6 步进电机的优缺点 ...................................................................................................................... 8 3硬件设计 ..................................................................... 9 3.1 芯片的选择 .................................................................................................................................. 9 3.1.1 80c51 芯片介绍 .................................................................................................................. 9 3.1.2 8155 芯片介绍 .................................................................................................................. 10 3.1.3 驱动芯片ULN 2003 介绍 ................................................................................................. 12 3.2 硬件电路 .................................................................................................................................... 13 4 软件设计 ................................................................... 15 4.1说明 ............................................................................................................................................. 15 4.2软件流程框图 ............................................................................................................................. 15 4.3 源程序 ........................................................................................................................................ 16 结束语 ....................................................................... 20 文献 ......................................................................... 22

联系客服:779662525#qq.com(#替换为@) 苏ICP备20003344号-4