基于STM32的运动控制器设计指导教师梁维源摘要运动控制器是现在社会的主流发展,不管是现在还是将来都会有重要的运用。本文运用STM32输出PWM波对电机进行控制使他们能分别沿着X轴和Y轴以及Z轴移动,STM32发送指令,由TB6560驱动芯片驱动进电机,在图纸上实现绘画,定位,转孔。选用STM32芯片作为控制核心,通过控制步进电机来控制机器臂,带动X轴和Y轴以及Z轴进行平面画图。该运动控制器具有精度高、操作方便、速度快、低成本等特点。关键词:运动控制器;STM32;步进电机;TB6560BasedontheSTM32motioncontrollerdesignElectronicinformationengineeringspecialtylevel2011jiangshijianSupervisorLiangWeiyuanAbstractThemotioncontrollerisnowthemainstreamofthedevelopmentofsociety,bothnowandinthefuturewillhaveimportantapplications.Greatdefenseandindustrialapplicationsaswellasinlife.Inthispaper,theoutputPWMwaveSTM32motorcontrolsothattheycanalongtheX-axisandY-axisandZ-axismovement,STM32sendcommandsrespectively,drivenbyasteppingmotordriverchipTB6560realizepainting,positioning,turntheholeinthedrawings.TheprogrammakestheselectionSTM32chipsteppermotorcontrolsystembycontrollingthesteppermotortocontroltheroboticarmfromthedrivetotheXandYandZaxisplanedrawing.Themotioncontrollerwithhighprecision,easyoperation,fast,lowcost.Hasgreatdevelopmentprospects.Keywords:MovementControlSystem,STM32,Steppingmotor,TB6560目录前言...........................................................................................................................................................1第一章运动控制器的总设计方案............................................................................................................1第二章运动电路控制器三维平台设计....................................................................................................32.1硬件设计框图.............................................................................................................................32.2运动电路控制控制电路图..........................................................................................................32.3运动控制器机械运动电路图......................................................................................................4第三章运动控制器的硬件设计................................................................................................................43.1步进电机...........................................................................................................................................43.1.1主要构造.................................................................................................................................43.1.2步进电机分类.........................................................................................................................53.1.3步进电机工作原理.................................................................................................................53.1.4步进电机的特点.....................................................................................................................63.1.5步进电机的控制方法.............................................................................................................63.2STM32F103VET6...............................................................................................................................73.2.1STM32F103VET6最小系统....................................................................................