摘要国内汽车美容行业蕴含着广阔的市场前景,本文以隧道式智能洗车系统为对象,主要进行自动洗车过程控制系统的设计与研制。
首先,在进行充分调研和系统功能需求分析的基础上,完成了隧道式洗车控制系统的总体方案设计。
系统由单片机、电机、传感器、液压阀等部件组成。
为解决北方冬天气温低导致的洗车系统不能正常工作的问题,本设计特别增加了洗车房内温度检测和升温功能,以便在冬季低温时洗车房仍可运行。
其次,完成了系统的硬件设计和软件设计。
硬件设计包括所有元器件的选型和电路设计。
软件设计包括控制洗车过程的所有程序,如温度检测、键盘扫描、中断处理等。
最后,为验证设计的正确性,搭建了洗车模拟系统并进行了调试。
模拟系统包括单片机最小系统板,控制板,洗车房模拟板和折叠板。
经过软件和硬件的综合调试,模拟系统能够实现洗车过程的自动化。
关键词:单片机隧道式智能洗车过程控制AbstractNowadays car beauty industry has a widely market prospect in domestic, then on the base of tunnel type car wash system, a automatic car wash process control system is researched and developmented in this paper.Firstly, after full literature search and analysis on system’s function demands, the overall scheme of tunnel type car wash system is designed. The system is composed of micro-control unit (MCU), motors, sensors, hydraulic valves,etc. The problem that car wash system can not work in the winter due to the lower tempreture is considered, thus the special function of tempreture testing and increasing is add to the system.Secondly, hardware design and software design are finished. The hardware work includes choosing componets and devices, as well as designing circuits. The software work includes writing all programs used to control car wash process, such as tempreture testing, keyboard scanning, interrupt handling, etc.Lastly, to verify the design, a car wash simulation sytem is set up and debugged. The simualtion system includes a MCU least system board, a control board, car wash room simulation board and a fold board. The results of combined debugging between hardware and software prove the system can realize automatic control on car washing process.Keywords: MCU, tunnel type car wash, process control目录摘要 (I)Abstract (II)引言 .......................................................................................................................... - 1 - 1 隧道式智能洗车控制系统总体设计 .......................................................................... - 3 - 1.1 系统功能设计 ........................................................................................................... - 3 -1.2 隧道式智能洗车控制系统概述 ............................................................................... - 3 -2 隧道式智能洗车控制系统的硬件设计 ...................................................................... - 5 - 2.1 系统元器件选型及电路设计 ................................................................................... - 5 - 2.1.1 单片机的选择 ........................................................................................................ - 5 - 2.1.2 液位检测模块的设计 ............................................................................................ - 5 - 2.1.3 温度检测模块的设计 ............................................................................................ - 6 - 2.1.4 液压阀控制电路的设计 ........................................................................................ - 8 - 2.1.5 指示灯电路的设计 ................................................................................................ - 9 - 2.1.6 车到位检测电路的设计 ........................................................................................ - 9 - 2.1.7 烘干机控制电路的设计 ...................................................................................... - 10 - 2.1.8 洗车刷电机正反转控制电路的设计 .................................................................. - 10 - 2.1.9 急停电路的设计 ................................................................................................... - 11 - 2.2 隧道式智能洗车控制系统的主要板块设计 ......................................................... - 12 - 2.2.1 最小系统板 .......................................................................................................... - 12 - 2.2.2 控制板 .................................................................................................................. - 12 - 2.2.3 洗车房模拟板 ...................................................................................................... - 13 - 2.2.4 折叠板 .................................................................................................................. - 14 - 2.3 智能洗车系统元件清单 ......................................................................................... - 15 -2.4 AT89S52单片机I/O端口分配............................................................................... - 15 -3 隧道式智能洗车控制系统的软件设计 .................................................................... - 17 - 3.1 程序总体设计 ......................................................................................................... - 17 - 3.1.1 程序结构图 .......................................................................................................... - 17 - 3.1.2 主程序设计 .......................................................................................................... - 18 - 3.1.3 自动运行子程序设计 .......................................................................................... - 19 - 3.1.4 外部中断0子程序设计 ...................................................................................... - 21 - 3.1.5 定时器T0中断子程序设计................................................................................ - 21 - 3.1.6 键盘扫描子程序设计 .......................................................................................... - 21 - 3.1.7 AD转换子程序设计............................................................................................. - 22 - 3.1.8 车到位检测子程序设计 ...................................................................................... - 23 -3.1.9 加温子程序设计 .................................................................................................. - 24 -4 隧道式智能洗车系统调试 ........................................................................................ - 25 - 4.1 硬件调试 ................................................................................................................. - 25 - 4.1.1 硬件调试内容 ...................................................................................................... - 25 - 4.1.2 调试方法 .............................................................................................................. - 25 - 4.2 软件调试 ................................................................................................................. - 25 - 4.3 软硬件综合调试 ..................................................................................................... - 26 - 4.4 系统调试过程中遇到的问题 ................................................................................. - 27 - 结论 ........................................................................................................................ - 28 - 致谢 ........................................................................................................................ - 29 - 参考文献 ........................................................................................................................ - 30 -引言我国“自动化洗车系统”制造业发展历程才20多年,还处于成长初期,众多品牌基本处于尝试阶段,网络建设的规范化程度、稳定性也不高。