资源描述:
《湖南工业大学本科毕业设计(论文)内容》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库。
1、(2013届)本科毕业设计(论文)资料题目名称:基于单片的步进电机控制的设计学院(部):电气与信息工程学院专业:电气工程及其自动化学生姓名:班级:学号指导教师姓名:职称最终评定成绩:湖南工业大学教务处29/352013届本科毕业设计(论文)资料第一部分毕业论文(2013届)本科毕业设计(论文)学院(部):电气与信息工程学院专业:电气工程及其自动化学生姓名:班级:学号指导教师姓名:职称最终评定成绩2013年6月29/35摘要步进电机从诞生以来发展迅速,它广泛应用于医疗设备、检测仪器、数码产品等人类社会的各个方面。本文设计的步进电机是基于单片机AT89C52控制
2、,四相单四拍运行。单片机采用软件的方式发送脉冲,经过驱动器74LS245将信号放大后送给步进电机。采用两个按键分别控制电机的正反转,两个按键分别控制电机的加减速,两个数码管分别显示电机的转向和速度档位。通过改变相邻两相脉冲发送的时间间隔,即调节脉冲的宽度,来改变电机的速度。控制正反转的按键采用查询方式。控制加减速的按键采用中断服务控制方式,一旦有加速或者减速键按下就会产生中断,单片机就会立即进入中断程序,进行相应的操作。这样可以很方便的控制电机的加减速。另外,数码管实时显示电机的速度和方向,让用户使用起来更加直观和安全。基于脉冲的控制,使步进电机相比其它电机
3、而言控制更加平稳和精确。相信步进电机的发展会越来越快,技术也会越来越成熟,步进电机将更好的造福于人类。关键词:步进电机,单片机,中断服务,脉冲29/35ABSTRACTSteppermotorhasbeendevelopingrapidlysinceit’sbirth,itiswidelyusedinmedicalequipment,testinginstruments,digitalproductsandothervariousaspectsofhumansociety.Steppermotorofthisdesignisbasedonsinglechip
4、microcomputerAT89C52,anditisrunningbyfourphasefour.Itsendpulseswiththemethodofsoftware,themessagewillbesendedtosteppermotorthroughtheamplificationby74ls245.WeUsetwomuttonscontroingthemotorforwardingandreversing,twobuttonscontrollingthemotoracceleratinganddecelerating,twodigitaltube
5、displayingthedirectionandthegearsofspeedofthemotor.Bychangingtheintervalbetweenthepulsesoftwophaseofneighbouring,namely,byadjustingthewidthofpulse,wechangethespeedofthemotor.Wecontrolthetwobuttonsofforwardingandreversingbythewayofquerying.WeusethewayofInterruptservicecontrollingthe
6、buttonsofacceleratinganddecelerating.oncetheaccelerationordecelerationkeyshasbeenpressedthesinglechipmicrocomputerwillgenerateinterrupts,anditwillentertheinterruptingprogramimmediately,anddothecorrespondingoperation.Inthisway,wewillcontrolthemotoracceleratinganddeceleratingconvenie
7、ntly.besides,digitaltubecandisplaythespeedanddirectionofthemotorimmediately,whichwoudmaketheuserintuitiveandsafer.Thesteppermororwhichbasedonthecontrollingofpulsearemoresteadyandcorrectcomparedwithothers.Ibelivethatthedivelopingofsteppermotorwillbefaster,andthetechnologywillbemoerm
8、ature.Inaword,thesteppermo