摘 要 本次课题设计制作了一个单片机控制的悬挂系统,通过相关参数计算及程序的设计,使系统的各项性能指标满足课题要求。其核心部分是控制芯片单片机,由于其具有高集成度、高性价比、最简单外围电路、高效率等优点,所以能在实际生活中得到广泛 的应用。悬挂轨迹控制系统是一套电机控制系统,控制物体在80cm×100cm的范围内作直线、圆、寻迹等运动,并且在运动时能显示运动物体的坐标。本设计采纳MSP430F1611单片机对步进电机进行控制,通过多圈电位器实现对悬挂物位置的精确测量,并引入局部闭环反馈控制环节对误差进行修正,以达到对物体的控制和对坐标点的准确定位。控制信号经过L298驱动电路来驱动步进电机,完成相应的规定动作;同时用键盘来控制任意坐标点的参数,并用液晶显示器显示悬挂物体中画笔所在位置的坐标;软件功能模块主要完成对步进电机运动的位置、速度、方向以及运动时间的控制。关键词:单片机 步进电机 算法AbstractThis topic designed a suspension system which controlled by microprocessor, through the calculation of relevant parameters and procedures which designed to make the performance of the system to meet the subject requirements. Its core part is the control chip microcontroller, since it has high level of integration, cost-effective, and the most simple buffer circuit , high efficiency etc, so that be widely applied in real life. Suspension track control system is a set of motor control system, it controls the object in straight line, round, tracing, sports within the scope of 80 cm×100 cm, and can show the coordinates of moving objects in sports by the time. This design uses the MSP430F1611 microcontroller to control the stepper motor, achieving accurate measurement of the pedants position through multi-turn potentiometer, and introduce local close-loop feedback control links to error correction, so that to achieve control the object and with a accurate location to coordinate. Control signal drive stepping motor by L298 drive circuit, c...