如果您无法下载资料,请参考说明:
1、部分资料下载需要金币,请确保您的账户上有足够的金币
2、已购买过的文档,再次下载不重复扣费
3、资料包下载后请先用软件解压,在使用对应软件打开
本科毕业论文(20届)步进电机控制与转速检测系统设计所在学院专业班级自动化学生姓名学号指导教师职称完成日期年月摘要本设计主要介绍了步进电机控制与转速检测系统通过单片机来实现的方法。全文主要分为原理介绍,硬件设计,软件设计。其中硬件电路包括:L298N驱动的步进电机的控制系统的设计、键盘按钮电路的设计、显示电路的设计、转速检测电路的设计、电源模块的设计等。软件包括:系统初始化及主程序的模块设计、显示程序和键盘程序的模块设计、中断处理、定时器处理程序的模块设计等控制模块由键盘输入启动、正转、反转、加速、减速、停止等信号,经过单片机处理再接L298N驱动步进电机实现相关功能。电机的运行状态经光电编码器转换为脉冲信号再放大输入到单片机经单片机处理再通过LED显示器显示转速、状态等。本文在设计过程是按照原理介绍,硬件设计,软件设计的顺序进行逐步的论证选择设计的。关键词:步进电机,单片机,控制系统,硬件,软件AbstractAbstractThisdesignintroducesthesteppermotorcontrolandspeeddetectionsystem,"microcontrollerfinished.thefulltextisdividedintoprinciple,hardwaredesign,softwaredesign.Hardwarecircuitincluding:L298Ndrivensteppermotorcontrolsystemdesign,circuitdesignofthekeyboardbutton,thedisplaycircuitdesign,thedesignofthespeeddetectioncircuit,powersupplymoduledesign.Softwareincludes:systeminitializationandthemainprogrammoduledesign,showingthemodulardesignoftheprogramandkeyboardprocedures,interrupthandling,themodulardesignofthetimerhandlerThecontrolmoduleconsistsofakeyboardinput,start,forward,reverse,speedup,slowdown,stop,etc.signalfollowedL298Ndriveasteppermotormicrocontroller-processingfortherelevantfunctions.Themotorrunningstateconversionbytheopticalencoderforthere-amplificationofthepulsesignalinputtothemicrocontrollerviathemicrocontrollerprocessingthroughtheLEDdisplayshowsspeed,status,etc..Inthedesignprocessinaccordancewiththeprinciple,hardwaredesign,softwaredesignsequencestep-by-stepdemonstrationoftheselectionofdesign.Keywords:Steppermotor,Microcontroller,Controlsystem,Hardwaresoftware目录TOC\o"1-5"\h\zHYPERLINK\l"bookmark7"\o"CurrentDocument"\h摘要IAbstract(英文摘要)IIHYPERLINK\l"bookmark13"\o"CurrentDocument"\h目录IIIHYPERLINK\l"bookmark18"\o"CurrentDocument"\h第一章概述11-1弓I言1HYPERLINK\l"bookmark24"\o"CurrentDocument"\h1.2设计任务1HYPERLINK\l"bookmark27"\o"CurrentDocument"\h1.2.1课题的目的和要求1HYPERLINK\l"bookmark36"\o"CurrentDocument"\h1.2.2主要设计内容2HYPERLINK\l"bookmark49"\o"CurrentDocument"\h1.2.3主要设计技术指标与参数2HYPERLINK\l"bookmark52"\o"Cur