资源描述:
《基于单片机的步进电机多轴运动控制系统设计.doc》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、基于单片机的步进电机多轴运动控制系统设计摘要步进电机是将电脉冲信号转变成角位移的执行机构,其转速、停止位置只与脉冲信号的频率和脉冲数有关,具有误差小,易控制等特点,广泛应用于机械、电子、纺织、化工、石油等行业。尤其是在医疗行业中,比如在X光扫描方面,都会用到电机,步进电机的优点使其成为医疗行业里最为适用的电机。本设计中的多轴控制系统可以运用在X光扫描仪等多种仪器上。本设计选用STC89C55RD+型单片机作为核心控制单元,实现M35SP-7型步进电机的多轴运动控制,并通过RS232串口实现与上位PC机通讯功
2、能。设计中运用单片机软件编程方式实现步进电机环形分配器功能,用P1.0口、P1.1口、P1.2口和P1.3口分别控制四相步进电机的A相、B相、C相和D相绕组的通电顺序,软件上采用查表方法实现单双八拍工作方式环形脉冲分配。步进电机驱动部分采用ULN2003A驱动芯片,实现功率放大,驱动步进电机。最后使用Proteus软件绘制了单片机控制步进电机多轴运动的原理图。上述设计经实验验证是有效可行的。关键词单片机,步进电机,多轴运动,串口通讯IV基于单片机的步进电机多轴运动控制系统设计AbstractStepperm
3、otorisanimplementingmechanismthatconverttheelectronicpulseintoangledisplacement.Itsspeedandthestoppositiononlyaboutthefrequencyandpulseseveralofthepulsesignal,itscharacteristicsareminorerror,easytocontrolandsoon,itiswidelyappliedtomechanical,electronic,tex
4、tile,chemical,oil,etc.Especiallyinthemedicalindustry,suchasanx-rayscanning,needmotors.Steppermotor'sadvantagesmakeitbecomethemostsuitablemedicalindustrymachine.Themulti-axiscontrolsysteminthedesigncanbeusedonavarietyofinstrumentssuchasanx-rayscanning.Thisd
5、esignchooseSTC89C55RD+SCMasthecoreofthecontrolunit,torealizeM35SP-7typesteppermotor'smulti-axiscontrol,anduseRS232serialtorealizePCcommunicationfunction.ThisdesignuseSCMsoftwareprogrammingrealizesteppermotorcirculardistributionfunction,P1.0,P1.1,P1.2andP1.
6、3respectivelycontrollingA,B,CandDphases'electricityorderonthefourphasestepmotor's.Softwareisusedonlook-uptablemethodteakeightsingleworkingwaycircularpulsedistribution.ThisdesignuseULN2003Arealizepoweramplifiertodrivesteppermotor.FinallyusingProteustodrawth
7、eprinciplediagramoftheSCMcontrolsteppermotormulti-axismotion.Theabovedesignexperimentsshowediseffectiveandfeasible.Keywords:SCM,StepperMotor,Multi-axismotion,serialcommunication V基于单片机的步进电机多轴运动控制系统设计目录 第一章引言.................................................
8、.........................................................................1 1.1 选题背景.......................................................................................................................1 1.2