基于单片机的按摩机的控制设计摘 要步进电机是一种将脉冲信号转换成直线位移或角位移的控制微电机,其机械角位移和转速分别与输入电机绕组的脉冲个数和脉冲频率成比例。它易于实现与计算机或其它数字元件接口,适用于数字控制系统。通过硬件的介绍和组建、硬件原理图和软件流程图的设计、源程序的编写等,介绍一种基于单片机的步进电机运行控制系统。该系统接收到信号后,与键盘、显示系统设置的初值比较后,转化成步进电机的步进脉冲,然后通过单片机控制器驱动步进电机旋转,以带动丝杆传动系统,进而控制进步电机运动。通过按键,用户可以让按摩机工作在最具舒适的按摩工作方式和振动速度上;利用蜂鸣器来告警或提示按摩完成;利用发光二极管显示当前的工作状态。 关键词:步进电机 ;单片机 ;PWMMicrocontroller based massage machine control designAbstractStep of electric motor is one kind transforms the pulse signal straight line displacement or Angle displacement the control micro electrical machinery, its machinery Angle displacement and the rotational speed separately becomes the proportion with the input electrical machinery winding pulse integer and the pulse frequency; It is easy to realize and the computer or other digital part connections, is suitable to the numerical control system. Through one kind of design proposal, handsets up, the hardware schematic diagram and the software flow chart design, the source program compilation including the hardware introduction and so on, introduces one kind based on the monolithic integrated circuit Step of electric motor operating control system. After this system receives the fluid nitrogen liquid level the fluid position signal, after the keyboard, the display system establishment starting value comparison, transforms Step of electric motor step enters the pulse, then actuates through the monolithic integrated circuit controller Step of electric motor to revolve, leads the lead screw transmission sys...