基于单片机与超声波传感器的步进电机控制器

上传人:Bod****ee 文档编号:47220948 上传时间:2018-07-01 格式:DOC 页数:53 大小:1.89MB
返回 下载 相关 举报
基于单片机与超声波传感器的步进电机控制器_第1页
第1页 / 共53页
基于单片机与超声波传感器的步进电机控制器_第2页
第2页 / 共53页
基于单片机与超声波传感器的步进电机控制器_第3页
第3页 / 共53页
基于单片机与超声波传感器的步进电机控制器_第4页
第4页 / 共53页
基于单片机与超声波传感器的步进电机控制器_第5页
第5页 / 共53页
点击查看更多>>
资源描述

《基于单片机与超声波传感器的步进电机控制器》由会员分享,可在线阅读,更多相关《基于单片机与超声波传感器的步进电机控制器(53页珍藏版)》请在金锄头文库上搜索。

1、摘 要步进电机是将电脉冲信号转变为角位移或线位移的开环控制元步进电机件。在非超载的情况下,电机的转速、停止的位置只取决于脉冲信号的频率和脉冲数,而不受负载变化的影响,当步进驱动器接收到一个脉冲信号,它就驱动步进电机按设定的方向转动一个固定的角度,称为“步距角” ,它的旋转是以固定的角度一步一步运行的。可以通过控制脉冲个数来控制角位移量,从而达到准确定位的目的;同时可以通过控制脉冲频率来控制电机转动的速度和加速度,从而达到调速的目的。因此,步进电机以其精准的控制特性,广泛应用于执行器件中。本文设计了基于单片机的步进电机控制器,系统采用 AT89S52 型单片机作为主控制器电路。采用步进电机驱动芯

2、片 ULN2003 趋动 28BYJ-48 型四相八拍步进电动机,设计了对应的按键控制电路和 LCD 状态显示电路。 AT89S52 的控制指令通过光耦 TLP521-4 控制 ULN2003,根据计算控制脉冲时序,算出电机转过的步数或圈数,用 LCD1602A 显示步进电机运行状态和转速。各控制按键功能用无线收发模块 PT2262/2272 作为辅助,共同实现步进电机的控制。同时整个系统作为一个执行部件,嵌入到其他的微机控制系统中。外部微机通过 MAX232 芯片将信号转化为 RS232 协议信号,与主控制器控制器进行通信。AT89S52 通过内部程序识别外部微机的控制信号,对控制系统进行控

3、制,使得本系统的应用范围与可靠性大大提高。关键词 单片机;达林顿管;步进电动机;串口通信Abstract Stepping motor is will signal into electrical impulses for angular displacement or line open loop control the displacement of stepping motor parts. In the overload of the cases, motor speed, stop depends only on the position of the pulse signal fr

4、equency and pulse count, and do not suffer the effect of load changes, when stepping drive to receive a pulse signal, it will drive stepping motor set according to turn a fixed Angle, called “step from the corner“, it is the point of view of the rotation of the fixed step by step of operation. Can t

5、hrough the control pulse to control the number of angular displacement quantity, so as to achieve the purpose of accurate positioning; At the same time can through the control pulse frequency to control motor rotation speed and acceleration, so as to achieve the purpose of speed. Therefore, stepping

6、 motor with its precise control characteristics, widely used in execution of the device.In this paper, based on SCM stepping motor controller, system adopts single-chip microcomputer as the main controller AT89S52 type circuit. The control instruction through light AT89S52 decoupling method-4 contro

7、l ULN2003, according to computation control pulse timing, calculate efficiency or motor turned laps, with LCD1602A display stepping motor running state and speed. The control key function in a wireless transceiver module PT2262/2272 as the assistant to accomplish the step motor control. And the whol

8、e system as an executive components, embedded in other microcomputer control system. External microcomputer through the MAX232 chips will signal into RS232 agreement signals, and the main controller controller for communication. AT89S52 devices through the internal process of external microcomputer

9、control signal to identify, for the control system to control, so the system application range and reliability is greatly increased.KeyKey wordswords: SCM; Optocoupler; Photo-Darling tons; Stepping motor; SPCP- Serial Port目 录1 概 述 .11.1 研究设计步进电机控制器的意义.11.2 步进电机基础知识.11.2.1 步进电机原理.21.2.2 感应子式步进电机工作特点.

10、31.3 本文主要完成的工作.42 系统整体方案的设计 .62.1 总体方案拟定.62.2 步进电机控制器各功能模块介绍.72.2.1 步进电机控制器模块设计.72.2.2 输入控制模块设计.72.2.3 驱动模块设计.72.2.4 输出显示模块设计.82.2.5 串口通讯模块设计.83 硬件电路设计 .93.1 主控制器电路设计及芯片选型.93.1.1 时钟电路设计.93.1.2 复位电路.103.1.3 主控制器最小系统设计.113.2 输出驱动驱动电路设计.123.3 输出状态显示电路设计.133.4 串口通讯电路设计.164 软件设计 .194.1 C51 语言 .194.2 整体程序设计框图.204.3 步进电机控制程序.204.4 液晶显示 1602 程序设计.224.5 微机通讯软件设计.255 Proteus 仿真分析 .285.1 步进电机趋动仿真.285.2 LCD1602A 应用仿真 .285.3 微机通讯仿真.29结 论 .31致 谢 .32参考文献 .33附录 .34附录 .35主控制器源程序.36从机源程序.

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 学术论文 > 毕业论文

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号