设计简介
摘要
如今,由于工作台操作简单,精度高,能够满足一般生产需求。正因为如此,所以它广泛应。
本文主要研究的是两维步进单片机控制工作台的控制部分。主要的任务就是用单片机实现两个步进电机的正反转和速度的控制。本控制系统可以由键盘输入运行的步数,由LED管显示,信号经单片机转换,采用软件对信号进行环形分配,利用光电隔离器进行光电隔离,经功率放大器进行信号的放大,用放大的信号来驱动步进电机的运行。由各个功能键控制系统的运行,按启动键后,步进电机按照输入的步数进行走步;如在运行期间按停止键,则步进电机停止运行。工作台的两头都有行程开关,如果超出了极限位置,行程开关闭合,步进电机停止转动,并且蜂鸣器报警。
关键词:工作台;步进电机;单片机
Abstract
Nowadays, The workbench is easy to operate, the precision is high, and it can meet the generally production demand . Just because of this, so it is widely used.
Main research of this paper is that the part of control of the two-dimension stepping single-chip microcomputer control workbench. The main task is to realize two stepping motor’s rotating positive and negatively and control of pace with single-chip microcomputer. The running steps are input by keyboard in this control system, displayed by the LED tube. The signal is transformed by single-chip microcomputer . The signal Loop allotter is achieved by software. The photoelectricity seclusion is achieved by Electro-optical disconnector. The signal is enlarged by power Amplifier. Then the signal can run the stepping motor. The system’s run is controlled by functional keys. Stepping motor will run to the given steps if the “start” key is pressed. Meanwhile, stepping motor will stop if the “stop” key is pressed. There are limit switches on the two heads of the workbench, if the workbench go beyond the terminal position, the limit switch is off, the stepping motor will be stop at once, and the buzzer scream.
Keywords workbench stepping motor single-chip microcomputer
目录
1 绪论 1如今,由于工作台操作简单,精度高,能够满足一般生产需求。正因为如此,所以它广泛应。
本文主要研究的是两维步进单片机控制工作台的控制部分。主要的任务就是用单片机实现两个步进电机的正反转和速度的控制。本控制系统可以由键盘输入运行的步数,由LED管显示,信号经单片机转换,采用软件对信号进行环形分配,利用光电隔离器进行光电隔离,经功率放大器进行信号的放大,用放大的信号来驱动步进电机的运行。由各个功能键控制系统的运行,按启动键后,步进电机按照输入的步数进行走步;如在运行期间按停止键,则步进电机停止运行。工作台的两头都有行程开关,如果超出了极限位置,行程开关闭合,步进电机停止转动,并且蜂鸣器报警。
关键词:工作台;步进电机;单片机
Abstract
Nowadays, The workbench is easy to operate, the precision is high, and it can meet the generally production demand . Just because of this, so it is widely used.
Main research of this paper is that the part of control of the two-dimension stepping single-chip microcomputer control workbench. The main task is to realize two stepping motor’s rotating positive and negatively and control of pace with single-chip microcomputer. The running steps are input by keyboard in this control system, displayed by the LED tube. The signal is transformed by single-chip microcomputer . The signal Loop allotter is achieved by software. The photoelectricity seclusion is achieved by Electro-optical disconnector. The signal is enlarged by power Amplifier. Then the signal can run the stepping motor. The system’s run is controlled by functional keys. Stepping motor will run to the given steps if the “start” key is pressed. Meanwhile, stepping motor will stop if the “stop” key is pressed. There are limit switches on the two heads of the workbench, if the workbench go beyond the terminal position, the limit switch is off, the stepping motor will be stop at once, and the buzzer scream.
Keywords workbench stepping motor single-chip microcomputer
目录
1.1课题研究的背景 1
1.2工作台的发展现状与方向 1
1.3本课题研究的范围和意义 3
1.4步进电机的发展现状 3
1.5单片机的发展现状 4
2 控制系统的总体设计 6
2.1系统总体方案 6
2.2机械系统 6
2.3 控制系统设计 6
2.3.1接口设计 6
2.3.2控制方案的选择 7
2.3.3伺服系统设计 7
3 控制系统的设计方案 8
3.1 硬件系统设计 8
3.1.1系统的硬件结构 8
3.1.2步进电机 8
3.1.3微处理器的选择 15
3.1.4键盘操作的接口电路设计 17
3.1.5显示部分操作的接口和电路设计 21
3.1.6 报警电路的设计 24
3.1.7 单片机与PC机的通信 25
3.1.8系统的抗干扰设计 26
3.2 软件系统设计 28
3.2.1 软件结构设计 28
3.2.2系统的程序流程 29
结论 40
致谢 41
参考文献 42


