1、计算机控制技术课程设计说明书 1 摘要 随着微电子和计算机技术的发展,步进电机的需求量与日俱增,它广泛用于 打印机、电动玩具等消费类产品以及数控机床、工业机器人、医疗器械等机电产 品中,其在各个国民经济领域都有应用。研究步进电机的控制系统,对提高控制 精度和响应速度、节约能源等都具有重要意义。 本控制系统的设计,由硬件设计和软件设计两部分组成,完成二相步进电机 的控制。其中,硬件设计主要包括单片机系统、按键控制模块、步进电机驱动模 块、数码显示模块等功能模块的设计,以及硬件电路在 PROTUS 上的仿真。软件 设计包括主程序以及各个模块的控制程序, 最终实现对步进电机转动方向及转动 模式 (四
2、拍, 八拍) 的控制, 并且将步进电机的步进数动态显示在 LED 数码管上。 本系统具有智能性、实用性及可靠性的特点。 关键词:二相步进电机 单片机 四拍 八拍 LED 显示 Abstract With the development of microelectronics and computer art, step-by-step electric motor need amounts increase with each passing day , it is used for the products consuming a kind such as printer , electri
3、city-driven toy broadly and numerical control machine tool , electromechanical products such as industry robot , medical apparatus and instruments are hit by, the person applies to each national economy field It both. Study step-by-step electric motor navar , having importance to improving under the
4、 control of accuracy and responding to speed , the energy saving and so on. Control systematic design originally, the made up of designing two parts from the hardware design and the software , controlling accomplishing two-phase step-by-step electric motor. And among them, the hardware design includes the monolithic machine system mainly , button under the control of module , step-by-step electric motor drive function module design such as module , numerical code display module, hardware circu