电热恒温箱的单片微机控制电路设计

  • 格式:doc
  • 大小:332.50 KB
  • 文档页数:27

word文档 可自由复制编辑 目 录 摘 要............................................................... I 关键词.............................................................. I Abstract........................................................... II Keywords........................................................... II 1 前言.............................................................. 1 2 设计方案.......................................................... 2 2.2.1 温度传感器的选择....................................... 3 2.2.2 CPU的选择 ............................................ 3 2.2.3 加热方案和功率电路的选择............................... 4 2.2.4 输出控制.............................................. 5 3. 硬件设计及工作原理.............................................. 5 3.1 电热恒温箱的系统结构设计 .................................... 5 3.2 系统硬件设计 ............................. 错误!未定义书签。 3.2.1 DS18B20测温电路 ...................................... 7 3.2.2 DS18B20的特点介绍 .................................... 7 3.3 功率控制电路 ............................................... 8 3.4 单片机控制部分 ............................................ 10 3.4.2 键盘管理部分......................................... 12 4 软件设计及程序流程图............................................. 14 4.1 软件描述 .................................. 错误!未定义书签。 4.1.1 控制模块............................................. 14 4.1.2 PWM波的产生 ......................................... 15 4.1.3 主系统程序流程图..................................... 16 5. 结论或讨论.................................................... 17 5.1 硬件调试 .................................................. 17 word文档 可自由复制编辑

5.1.1 脱机检查............................................. 17 5.1.2 仿真调试............................................. 17 5.2 软件调试 ................................................. 18 5.2.1 用C语言程序......................................... 18 5.2.2 用汇编语言........................... 错误!未定义书签。 5.3 系统仿真 ................................................. 18 6 设计总结......................................................... 19 参考文献........................................................... 19 致谢............................................... 错误!未定义书签。 附录:............................................................. 21 word文档 可自由复制编辑

电热恒温箱的单片微机控制电路设计 摘 要 在日常生活、工业生产和实验室中电热恒温箱的应用随处可以见到。在生活中我们保存食物用到恒温箱,工业生产中一些生产原料的保存用到恒温箱,实验室里,特别是生物的培育实验室,恒温箱的应用更是普遍。 在本设计中,我们针对培养箱而设计的一个恒温系统,在系统里,通过对恒温箱温度的检测与变送传到单片机,与给定值进行比较,单片机对数据进行处理,本设计是基于AT89S52单片机的恒温箱控制系统,系统分为硬件和软件两部分,其中硬件包括:温度传感器、显示、控制和报警的设计;软件包括:显示程序设计、控制程序设计和温度报警程序设计。编写程序结合硬件进行调试,能够实现设置和调节初始温度值,进行LCD数码显示,当加热到设定值后立刻报警。另外,本系统通过软件实现对按键误差、加热过冲的调整,以提高系统的安全性、可靠性和稳定性。本设计从实际应用出发选取了体积小、精度相对高的数字式温度传感元件DS18B20作为温度采集器,单片机AT89S52作为主控芯片,LCD1602作为显示输出,实现了对温度的实时测量与恒定控制。

关键词 单片机;温度传感器;恒温;控制;报警 word文档 可自由复制编辑

The Design of Electricity Heating Incubator Control System Based on the MCU

Abstract In daily life, industrial production and laboratory in the electrical thermostatic box applications can be seen everywhere. In life we preserve food use thermostatic box, industrial production in the preservation of the raw materials used some laboratory, constant temperature box, cultivate laboratory, especially biological applications of constant temperature box is common. In this design, we focused on incubator and design of a constant temperature system, in the system, the constant temperature box by inspection and analog to microcontroller, compared with a given value of a single chip computer data processing, this design is based on the constant temperature box AT89S52 SCM control system, hardware and software system is divided into two parts, including hardware including: temperature sensors, display, control and alarm design; The software includes: show program design, control program design and temperature alarm programming. Write a program combining hardware debugging, can realize Settings and adjusting the initial temperature, for LCD digital display, when heated to immediately after setting the police. In addition, the system through the software realization of key error, heating overshoot adjustments to enhance the system safety, reliability and stability. This design from the actual application of selected the small volume, precision relatively high digital temperature sensor DS18B20 as temperature terminal, monolithic integrated circuit AT89S52 as the master as display output LCD1602 chip, realize the real-time measurement and constant temperature control.

Keywords DS18B20;MCU;Constant temperature control; 1-wire transmission