摘要
设计了一个通过PC机控制电机的系统,上下位机通过串口通信实现命令和数据的传递,能够实现对远程电机的控制.在Visual C++6.0环境下,开发了一套界面友好的上位机应用软件;上位PC机把用户的操作意图转换成控制命令,通过串口传送到下位单片机;下位机解析命令后发出控制信号,通过放大驱动电路去控制电机的启动、正反转、加减速和停机.
A system of controlling the remote DC motor through the PC was designed, in which the command and data were transferred between the PC and single chip machine in order to control the remote motor. An application software with a friendly user interface was developed under the Visual C++6.0. The PC converted the user's intention action to commands and delivered to the single chip machine via the serial port. The single chip machine analyzed the commands and sent some control signal, though the amplify - drive circuit,to control the motor to start, to run forward or reverse,to accelerate or decelerate and to stop.
出处
《机械与电子》
2009年第3期34-36,共3页
Machinery & Electronics