基于单片机的恒温箱设计
下载后可任意编辑 诚 信 声 明 我声明,所呈交的毕业论文是本人在老师指导下进行的讨论工作及取得的讨论成果。据我查证,除了文中特别加以标注和致谢的地方外,论文中不包含其他人已经发表或撰写过的讨论成果,我承诺,论文中的所有内容均真实、可信。 毕业论文作者签名: 签名日期: 年 月 日 下载后可任意编辑 摘要:在现实社会生活和生产中,温度对人们的影响无处不在,比如:大棚农业内大棚温度对农作物生长情况的影响,钢铁行业铸铁炉温度对钢铁质量的影响,大产量孵蛋中恒温箱温度对鸡蛋破壳的影响,等等,本文针对小型产品温控器的需求,讨论了一种基于单片机的恒温箱。 恒温箱可以设定温度的上下限。 当温度超过上限和下限时,它可以同时驱动负载和报警。本论文采纳数字温度控制器来采集温度信息,本文涉及的恒温箱主要适用于小型产品的温度需求,例如:可作为小宠物的温室或者孵蛋器等,则继电器只需要驱动小型加热片和风扇来调节恒温箱内的温度。本文还使用蜂鸣器和LED作为声光组件的警报。 继电器用于控制相应的负载,实现加热或冷却。该恒温箱温度控制系统结构十分简单,操作方便,便于维修,使用广泛。与传统温度计相比,恒温箱内的温度控制系统不仅能实时显示温度,而且温度测量范围更宽,控制更及时更准确,控制负载范围也十分广泛,同时LED发光和蜂鸣器声光报警,主要用于温度测量更精确的地方。 关键词:STC89C51单片机;温度控制;DS18B20;恒温箱 下载后可任意编辑 Abstract :In actual social life and production, the influence of temperature on people is ubiquitous, such as: the effect of greenhouse temperature on the growth of crops in greenhouse agriculture, the influence of cast iron furnace temperature on the quality of steel in the steel industry, and the temperature of incubators in large-scale incubators. The impact of egg shelling, etc., this article for the needs of small product thermostats, studied a thermostat based on single-chip microcomputer. The constant temperature box can set the upper and lower limits of temperature. When the temperature exceeds the upper and lower limits, it can simultaneously drive loads and alarms. This paper uses a digital temperature controller to collect temperature ination. The thermostats involved in this paper are mainly suitable for the temperature requirements of small products. For example, they can be used as small pets in greenhouses or incubators. The relays only need to drive small heating plates and fans. To adjust the temperature in the oven. This article also uses a buzzer and LED as an audible and visual component alarm. Relays are used to control the corresponding load for heating or cooling. The temperature control system of the constant temperature box is very simple in structure, convenient in operation, convenient in maintenance and widely used. Compared with traditional thermometers, the temperature control system in the incubator can not only display the temperature in real time, but also has a wider temperature measurement range, more timely and accurate control, and a wide range of control load. At the same time, the LED light and buzzer sound and light alarm, It is mainly used for more accurate temperature measurement. Key words: STC89C51 microcontroller; temperature control; DS18B20;thermostat. 下载后可任意编辑 目录 1. 概述1 1.1. 选题背景1 1.2. 选题意义1 2. 设计思想2 2.1. 选题简介2 2.2. 控制方案3 3. 硬件设计4 3.1. 单片机的选用4 3.2. 传感器7 3.3. 数码管9 3.4. 继电器10 4. 系统软件设计13 4.1. 软件系统框图13 4.2. 程序流程图13 4.3. 温度采集模块15 4.4. 驱动模块16 5. 测试与使用18 5.1. 使用方法18 5.2. 软件与仿真调试18 6. 总结25 附录1 系统原理图26 附录2 C语言程序26 参考文献37 致 谢38 下载后可任意编辑 1. 概述 1.1. 选题背景 在现实社会生活和生产中,温度对人们的影响无处不在,温度的高低很多时候能影响到生产,如农业,工业,甚至更多的其他产业,比如:大棚农业内大棚温度对农作物生长情况的影响,钢铁行业铸铁炉温度对钢铁质量的影响,大产量孵