作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2009, Vol. 35 ›› Issue (3): 248-250,. doi: 10.3969/j.issn.1000-3428.2009.03.085

• 工程应用技术与实现 • 上一篇    下一篇

基于单片机的水箱温度自动测控系统设计

顾春阳1,任 玲1,王广林2   

  1. (1. 哈尔滨工业大学电气工程及自动化学院,哈尔滨 150001;2. 哈尔滨工业大学机电学院,哈尔滨 150001)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2009-02-05 发布日期:2009-02-05

Design of Water Tank Temperature Automatic Measuring and Cybernating System Based on SCM

GU Chun-yang1, REN Ling1, WANG Guang-lin2   

  1. (1. College of Electric Engineering & Automation, Harbin Institute of Technology, Harbin 150001; 2. College of Mechinery & Electricity, Harbin Institute of Technology, Harbin 150001)
  • Received:1900-01-01 Revised:1900-01-01 Online:2009-02-05 Published:2009-02-05

摘要: 采用新型单片机STC12C5412AD以及高灵敏度的热敏电阻对水箱温度进行实时测量,由单片机内集成的10 bit A/D进行模数转换,从而实现实时监测、实时控制、实时显示及越限报警等功能。系统硬件由主机、电源、按键及显示、控温执行和串行口通信等部分组成,软件由主程序、温度检测转换、温度控制等模块组成。系统通过按键切换实现实际温度和设定温度在数码管中的显示和更改。实验结果表明,该系统检测精度高、反应快,具有一定应用价值。

关键词: 水温自动控制, 热敏电阻, A/D转换, SPI通信

Abstract: The temperature of water tank is measured on real-time by using the new kind of Single-Chip Computer(SCM) STC12C5412AD and thermo-esistances of high sensitivity. The real-time monitoring, controlling, displaying and over-limit alarming are implemented by employing A/D device of 10 digits integrated in the computer for the transformation of analog and digit. The hardware of the system consists of the main computer, power source, button and display, temperature-controlling process, and serial interface communication. The software of the system consists of the modules such as main program, temperature measurement and transformation, temperature-controlling, and etc. The real temperature is transformed and the set temperature in the nixie tube is displayed and altered arbitrarily with the button. Experimental results show this system is of high accuracy in measurement and rapidity in response, which has the value of applications.

Key words: automatic control of water temperature, thermo-resistance, A/D transformation, SPI communication

中图分类号: