步进电机顺序控制.docVIP

  • 15
  • 0
  • 约1.11万字
  • 约 22页
  • 2017-08-18 发布于重庆
  • 举报
步进电机顺序控制

目 录 ☆摘要 ……………………………………………………………………………2 ☆Abstract ………………………………………………………………………3 ☆课题任务 ………………………………………………………………………3 ☆第一章 总体方案设计 ………………………………………………………4 ☆第二章 51系列单片机介绍 2.1. 51系列单片机的引脚功能 …………………………………………5 2.2 I/O端口线输入输出引脚 ………………………………………… 5 2.3 控制线控制引脚 …………………………………………………6 2.4 外接晶体端 …………………………………………………………6 2.5 51系列单片机的时序 ………………………………………………6 ☆第3章.系统部件设计 3.1 AT89C51单片机最小系统 ……………………………………………7 3.2 PC机与单片机串行通信接口设计 …………………………………7 3.3 步进电机及其驱动电路设计 …………………………………………8 3.3.1 步进电机概述 ……………………………………………………8 1 步进电机特点 ………………………………………………………8 2 步进电机分类 ………………………………………………………9 3 步进电机原理 ……………………………………………………10 3.3.2 L298N 工作原理及驱动原理……………………………………10 3.4 8段数码管接口设计 ……………………………………………11 3.4.1 数码管简介 ……………………………………………………11 3.4.2 数码管连接方式 ………………………………………………12 3.5 光电传感器 ……………………………………………………………13 ☆第4章.程序 ……………………………………………………………14 ☆参考文献 …………………………………………………………………20 致谢 ……………………………………………………………………21 摘 要 本设计首先介绍了ATC89C52单片机, L298N驱动电路及步进电机的基本原理与功能;其次,设计步进电机实现顺序起停的控制方案;再次,在这些器件功能与特点的基础上,拟出设计思路,构建系统的总体框架;最后利用PROTEL软件绘出电路图,同时写出设计系统的运行流程和相关程序。整个系统通过写入单片机中的程序分配好控制字的存储单元以及相应的内存地址赋值;启动系统后,从单片机的I/O口输出控制脉冲,经过L298N驱动电路对脉冲进行处理,输出能直接控制步进电机的脉冲信号。在此基础上,重新分配I/O资源,同时增加驱动芯片L298N的个数,在允许范围内,就能实现两台台步进电机顺序起停向的控制。 关键词:单片机、步进电机、L298N Abstract The paper firstly introduces basic principles and functions ofATC89C52 MCU, L298 N drive circuits and stepping motor, secondly designs the control plan of stepping motor to realize starting and stopping, thirdly produces the thought of design and builds the frame of system based on the principles and functions of these components, lastly designs circuit diagram in PROTEL and lists the operating process of design system and related programs. The whole system distributes saved units and composes values accord to corresponding memory addresses through the programs written in MCU. After starting the system, I/O interface of MCU outputs control pulses, which are handled by L298N drive circuits, then outputs pulse signals whi

文档评论(0)

1亿VIP精品文档

相关文档