电子技术
電子技術
전자기술
ELECTRONIC TECHNOLOGY
2014年
6期
86-89
,共4页
计算机控制%智能小车%串行通信%单片机%PC机
計算機控製%智能小車%串行通信%單片機%PC機
계산궤공제%지능소차%천행통신%단편궤%PC궤
computer control%smart car%serial communication%SCM%PC machine
本设计是采用单片机作为从机(也称下位机),而PC机作为中央控制机的主从式系统。主机同时根据从从机接收的过程参数进行判断处理并给从机发送各种控制命令。利用单片机的串行口与PC机的串行口进行串行通信,PC机可对远程前端单片机进行控制,将单片机采集的数据传送到PC中去,由PC机对数据进行处理和显示,同时把反馈信号发到单片机,实现闭环控制和管理。本设计在VC++6.0的环境下,编写使用C++语言,SQL数据库的串口通信程序,控制由单片机控制的智能小车。
本設計是採用單片機作為從機(也稱下位機),而PC機作為中央控製機的主從式繫統。主機同時根據從從機接收的過程參數進行判斷處理併給從機髮送各種控製命令。利用單片機的串行口與PC機的串行口進行串行通信,PC機可對遠程前耑單片機進行控製,將單片機採集的數據傳送到PC中去,由PC機對數據進行處理和顯示,同時把反饋信號髮到單片機,實現閉環控製和管理。本設計在VC++6.0的環境下,編寫使用C++語言,SQL數據庫的串口通信程序,控製由單片機控製的智能小車。
본설계시채용단편궤작위종궤(야칭하위궤),이PC궤작위중앙공제궤적주종식계통。주궤동시근거종종궤접수적과정삼수진행판단처리병급종궤발송각충공제명령。이용단편궤적천행구여PC궤적천행구진행천행통신,PC궤가대원정전단단편궤진행공제,장단편궤채집적수거전송도PC중거,유PC궤대수거진행처리화현시,동시파반궤신호발도단편궤,실현폐배공제화관리。본설계재VC++6.0적배경하,편사사용C++어언,SQL수거고적천구통신정서,공제유단편궤공제적지능소차。
This design is a master-slave system which uses SCM as the slave (also known as PLC), and PC as the central control unit. The host carries out judging processing of the process parameters received from the slave and send various control commands to the slave. The serial port of SCM and the serial port of the PC are used for serial communications. The PC can remotely control front-end SCM, and send the collected data to a PC for data processing and display, while sending the feedback signal to the SCM, realizing closed-loop control and management. This design is a smart vehicle under VC++6.0 environment, and uses C++ language to write, SQL database serial communication programming language.