基于 8051 单片机的 X-Y 绘图仪控制系统设计
宋凤娟 王春生 刘树明
(唐山学院,河北唐山 063020)
摘要:X-Y绘图仪是指能分别沿着X向和Y向移动的坐标尺,X-Y绘图仪接收计算机的命令,在图纸
上绘出各种字符和图形。平面绘图仪的绘图系统、数控机床的加工系统等,尽管结构和功能各不相
同,但基本原理相同。X-Y绘图仪系统是将机械系统与微电子控制系统相结合而形成的一个有机整
体。本文通过对X-Y绘图仪的机械系统、控制系统及接口电路的硬件设计及软件设计等,阐述了用
8051单片机控制步进电机的驱动,经传动机构带动X向和Y向的坐标尺进行平面绘图。该系统具有操
作方便,速度快、精度高等特点。
关键词::X—Y绘图仪;单片机;步进电机;接口电路
中图分类号:TP273 文献标识码:B
Designing of 8051 SC Computer-based X-Y Plotter Control System
Songfengjuan
( Tangshan College, Tangshan, Hebei 063020)
Abstract: As a ruler moving respectively along the X and Y coordinates, X-Y plotter receives computer
instructions and draws various kinds of characters and figures. Despite the differences in structure and
function, the drawing system of a plane plotter and the processing system for a numerical controlled
machine tool follow the same working principle. X-Y plotter is in nature an integration of the
mechanical system and the micro-electronic control system. Through both hardware and software
designing of the plotter’s mechanical system, control system and interface circuit, this paper gives an
analysis of how the actuation of the step motor is controlled by a 8051 SC computer, thus driving via the
drive mechanism the plotter to draw plane figures. The control system is characterized by convenient
operation, high speed and high precision.
Key Word: X-Y plotter, SC computer, step motor, interface circuit
1 X-Y 绘图仪的基本工作原理
X-Y 绘图仪的机械特性主要包括平台、X/Y 坐标尺 Lx 和 Ly、X/Y 传动丝杠驱动坐标尺的步进
电动机 Mx/My、绘图笔、控制器和微型计算机接口等。(图 1)
图 1 X-Y 绘图仪机械原理图