学位论文-—两相步进电机控制系统.doc
上传人:佳晨****ng 上传时间:2024-09-12 格式:DOC 页数:71 大小:2.8MB 金币:10 举报 版权申诉
预览加载中,请您耐心等待几秒...

学位论文-—两相步进电机控制系统.doc

学位论文-—两相步进电机控制系统.doc

预览

免费试读已结束,剩余 61 页请下载文档后查看

10 金币

下载此文档

如果您无法下载资料,请参考说明:

1、部分资料下载需要金币,请确保您的账户上有足够的金币

2、已购买过的文档,再次下载不重复扣费

3、资料包下载后请先用软件解压,在使用对应软件打开

毕业设计(论文)基于AT89S52单片机的两相步进电机控制系统2013年6月13日东北大学秦皇岛分校毕业设计(论文)第页基于AT89S52单片机的两相步进电机控制系统摘要本文应用AT89S52单片机、步进电机驱动芯片ULN2003A、字符型LCD液晶显示屏和键盘阵列,构建了集步进电机控制器和驱动器为一体的步进电机控制系统。系统以单片机作为步进电机的控制核心,完成了步进电机的控制的硬件电路设计以及软件的设计,实现了步进电机的启停、正反转,以及转速的实时显示。以三维工作台作为被控对象,每个方向由一个步进电机驱动相应的滚珠丝竿机械装置进而实现完成了各个坐标方向的精确运动,以此模拟实现切割机上下、前后的精确切割。由键盘模块实时键入相应数值来控制三个坐标轴上各个步进电机的转速值、行进距离以及运行状态,并通过LCD液晶显示屏显示各个电机对应的转速、行进距离、行进中的坐标值实时变化状态和电机运行状态以及电机运行是否到位等信息。为满足实际运用需要,本系统以PC机作为平台,基于VB语言设计完成了一个人机交互性强的界面的上位机的实现,并通过由RS232构成的串口通信方式,实现单片机与上位机串口的双向通信运用。在上位机系统界面上通过程序设计实现了对各个坐标方向的步进电机的远程控制操作以完成对应的各个步进电机相应的启动、急停、前进、返回等一系列动作以及相应转速值、行进坐标值的实时输入发送与接收显示,达到远程监控的效果。关键词:步进电机,上位机,液晶显示ControlsystemoftwophasesteppermotorbasedonAT89S52singlechipAuthor:MaimingjieTutor:SongaijuanAbstractBasedonAT89S52singlechip,steppermotordriverchipULN2003A,charactertypeLCDandkeyboardarray,thethesisbuildsasteppingmotorcontrolsystemintegratingsteppermotorcontrolleranddriver.Makingthesinglechipasthecyberneticcoreofthesteppermotor,thesystemcompleteshardwarecircuit'sdesignandsoftware'sdesignwhicharecontrolledbythesteppermotor,therefore,itrealizesthesteppermotor'sstartandstop,positiveinversionandrevolvingspeed'sreal-timedisplay.Three-dimensionalworkbenchbeingascontrolledobjective,correspondingballspiralwirerodmechanicaldeviceisdrivenbyasteppermotorineverydirectiontorealizetheaccuratemotionineachcoordinatedirection,accordingly,itimitatesthecuttingmachine'sprecisecuttingofupanddown,frontandback.Relevantnumericalvaluetypedbythekeyboardinrealtimecontrolseachsteppermotor'srevolvingspeedvalue,traveldistanceandrunningstateinthreecoordinateaxises.Correspondingrevolvingspeedandtraveldistanceofeachmotor,coordinatefigure'sreal-timestateofchangeonthemove,motor'srunningstateonthemoveandotherinformationaredisplayedbyLCD.Inordertomeetthepracticalapplication,withthePCastheplatform,thesystemachievesaPCofstrongman-machineinteractiveinterface.Besides,itrealizesthetwo-waycommunicationapplicationofthesinglechipandthePCthroughtheserialport