***************本科毕业论文题目:基于单片机的饮水机温度控制系统院(系、部)名称:机电工程学院专业名称:电子信息工程学生姓名: ***学生学号:**************:***2012年 4月 5 日***************教务处制学术声明本人呈交的学位论文,是在导师的指导下,独立进行研究工作所取得的成果,所有数据、图片资料真实可靠。
尽我所知,除文中已经注明引用的内容外,本学位论文的研究成果不包含他人享有著作权的内容。
对本论文所涉及的研究工作做出贡献的其他个人和集体,均已在文中以明确的方式标明。
本学位论文的知识产权归属于河北科技师范学院。
本人签名:日期:指导教师签名:日期:摘要单片机在电子产品中的应用已经越来越广泛,在许多电子产品中也用到了温度检测和控制,目前广泛使用的饮水机具有饮水时尚、结构简单等特点,但随着用户的长时间使用,这些饮水机功能单一能耗较大长时间使用饮水机的水对健康不利等缺点逐渐暴露出来。
因此,此课题的主要目的是设计出一个基于单片机的饮水机温度控制系统,此系统要可以实时检测饮水机水箱的水温,并且可以通过数码管显示水箱水温度数,可以通过键盘或开关选择制冷或加热,可以任意设置水温的上下限,如加热,当温度在设定的范围内时正常工作,当低于水温下限时控制加热器加热;如制冷,当温度高于水温上限时控制压缩机制冷。
温度检测范围0~95ºC,精确度-1~+1°C,当温度超过设定值时具有示警功能。
掌握好对饮水机水温的智能控制,能够在一定程度上把我们身边的水资源充分利用起来,防止了每次加热都使水沸腾,既节能又可以更好的满足人们的更高的需求。
关键词:饮水机;单片机;温度传感器AbstractSCM electronic products has become increasingly widespread, and is also used in many electronic products, temperature measurement and control. Currently widely used in drinking fountains with drinking water fashion, simple structure and so on. But with the prolonged use of these water fountains, function of single large energy consumption in the prolonged use of drinking fountains on the adverse health and other shortcomings were gradually exposed. Therefore, the main purpose of this subject is to design a microcontroller - based drinking fountains temperature control system. This system can real-time detect of water dispenser tank water temperature. This system can real-time detection of water dispenser tank water temperature , and digital display water temperature in degrees cooling or heating , you can select via the keyboard or switch , you can set the water temperature in the upper and lower limits. When the temperature within the limits set by the drinking fountains will work properly. Such as heating, When the water temperature is lower than limit, it controls heater; such as refrigeration compressor cooling, when the temperature is higher than the water temperature limit control. Temperature detection range of 0 ~ 95 ºC,accuracy of -1 to +1 ° C, has a warning function when the temperature exceeds the set value.To master the intelligent control of water dispenser water temperature, can be in to a certain degree of water around us to make full use of it.,prevent heat to boil water all every time.already energy-saving and can better satisfy people's higher demand. Keywords: drinking fountain ;SCM ;sensor.目录摘要 (II)Abstract (II)1. 前言 (V)2. 方案论证................................................................................................................. V I2.1概论................................................................................................................. V I2.1.1题目来源............................................................................................... V I2.1.2 题目任务.............................................................................................. V I2.1.3 设计分析.............................................................................................. V I2.2 系统方案设计 (VII)3. 系统硬件电路设计................................................................................................. I X3.1 单片机最小系统设计.................................................................................... I X3.1.1 单片机选择.......................................................................................... I X3.1.2时钟电路 (XII)3.1.3 复位电路 (XIII)3.2 温度采集电路设计 (XIII)3.3 A/D转换电路设计 (XV)3.3.1 A/D转换器选择 (XV)3.4 显示电路设计 (XVIII)3.5 键盘电路设计............................................................................................. X IX3.6 报警电路设计............................................................................................. X XI3.7 控制电路设计 (XXII)4. 系统软件设计 (XXIII)4.1 主程序流程图及简要说明 (XXIV)4.2 A/D转换子程序 (XXV)4.3 键盘子程序 (XXV)4.4 控制子程序 (XXVI)4.5 显示子程序 (XXVIII)5. 结论 (XXIX)6. 参考文献 (XXX)7.致谢 (XXXI)附录1:系统硬件原理图.................................................................................... X XXII 附录2:软件程序清单.. (XXXIII)1. 前言在人类的生活环境中,温度扮演着及其重要的角色。
自18世纪工业革命以来,工业发展与是否能掌握温度有着密切的联系。
在冶金、钢铁、石化、水泥、玻璃、医药等行业,可以说几乎80%的工业部门都得考虑着温度的因素。
温度控制是无论是在工业生产过程中,还是在日常生活中都起着非常重要的作用,如电热水器、自动饮水机等,都要用到水温控制系统。
高校的发展同样要求用现代化手段提升现有的实验设备,为学生提供更多更好更现代化的实验条件。
因此我们应该应用电子专业知识,实现温度控制的自动化,提高工业企业自动化水平。
目前的水温控制系统大多采用由模拟温度传感器、多路模拟开关、A/D转换器及单片机组成的传输系统。
这种系统需要布置大量的测温电缆,才能把现场传感器的信号送到采集卡上,安装和拆卸复杂,成本也高。
同时线路上传送的是模拟信号,易受干扰和损耗,测量误差也比较大,不利于控制者根据温度变化及时做出决定。
在这样的形式下,开发一种实时性高、精度高,能够综合处理多点温度信息的系统就很有必要。
近年来,单片机以其功能强、体积小、使用方便、性能价格比较高等优点,在实时控制、自动测试、智能仪表、计算机终端、遥测通讯、家用电器等许多方面得到了广泛的应用。