毕设--基于AT89C52及PT100的电烤箱控制器设计 联系客服

发布时间 : 星期一 文章毕设--基于AT89C52及PT100的电烤箱控制器设计更新完毕开始阅读6637dd0db52acfc789ebc9fb

北京联合大学 毕业设计

Abstract

Nowadays electric oven as a necessary good electrical equipment has gradually become families , it has replaced the traditional firewood to heat removal, converts electrical energy into heat energy, to make energy use more clean, let people's life more convenient, as long as you gently press the keyboard, set a good time with temperature, the rest everything is turned into an automated process, let you don't have as before to keep control of temperature, when you open the oven, can immediately see your ideal food, golden yellow orange in .Science and technology changed people's life is so light.

As a qualified electric oven, have stable operation function is a necessary foundation, this system adopts the STC89C52 microcontroller as controller, 4 * 4 keyboard scanning, LCD display LCD1602 two line, DS1302 clock chip to control the heating time, bidirectional thyristor control the working state of the heating wire, PT100 + TLC2543 is responsible for the collection of temperature and modulus conversion, in addition, combined with rigorous and detailed code automation control of the system is no longer difficult, eventually to reach the perfect effect also cannot little external shell shell with heat insulation device, all these all is unlimited to approach the market in the oven, the best standard, but also constantly in the new function innovation, novel is my small oven is more compact and practical.

【 key words 】 STC89C52 single-chip electric oven controller design PT100 TLC2543 LCD1602 MOC3041 DS1302

5

北京联合大学 毕业设计

目 录

摘要 ................................................................... 4 Abstract ............................................................... 5 引 言 ................................................................ 8 1 系统总述 ............................................................ 9

1.1 系统指标概述 .................................................... 9 1.2 系统总框图 ...................................................... 9 1.3 系统总体功能实现原理 ............................................ 9 1.4 系统各模块总体功能设想 ......................................... 10

1.4.7 超外差报警模块 .......................................... 11

2 系统设计的理论基础 ................................................. 12

2.1 STC89C52内部结构及工作原理 .................................... 12

2.1.1 时钟电路 ................................................ 13 2.1.2复位及复位电路 ............................................ 13 2.1.3 STC89C52主要功能 ........................................ 14 2.2 LCD1602参数及功能 ........................................... 15

2.2.1 液晶显示器各种图形的显示原理 ............................ 15 2.2.2 1602LCD的基本参数及引脚功能 ............................ 15 2.2.2.1 LCD1602主要技术参数 .................................. 15 2.2.2.2 引脚功能说明 ......................................... 16 2.3 DS1302参数及工作原理 ......................................... 16

2.3.1 DS1302简介 .............................................. 16 2.3.2 DS1302引脚功能与内部结构 ............................... 17 2.3.4 DS1302的复位引脚 ........................................ 18

6

北京联合大学 毕业设计

2.3.5 DS1302的数据输入输出 .................................... 18 2.4 PT100性能参数及工作原理 ...................................... 19

2.4.1 性能参数 ................................................ 19 2.4.2工作原理 .................................................. 19

3 系统的硬件电路设计 ................................................. 21

3.1 STC89C52最小系统电路 ......................................... 22

3.1.1 时钟电路 ................................................ 22 3.1.2 复位电路 ............................................... 22 3.2 DS1302时钟电路 ............................................... 23 3.3 光耦驱动双向可控硅电路 ........................................ 23 3.4 键盘扫描模块电路 .............................................. 24 3.5 PT100热敏电阻及TLC2543 A/D转换电路 ........................... 24 3.6 LCD1602液晶显示电路 .......................................... 25 4 软件的设计及调试 ................................................... 26

4.1 总体程序设计 .................................................. 26 4.2 PT100前端温度采集程序设计 .................................... 27 4.3 时间设定的键盘扫描结合LCD显示模块程序设计 .................... 29 4.4 温度设定的键盘扫描结合LCD显示模块程序设计 .................... 32 4.5 STC89C52及光耦MOC3041控制电热丝加热程序设计 ................. 33 4.6 LCD1602显示模块程序设计 ...................................... 34 4.7 超外差报警模块程序设计 ........................................ 37 结 论 ............................................................... 39 致 谢 ............................................................... 40 参考文献 .............................................................. 41

7

北京联合大学 毕业设计

引 言

随着社会的发展进步,利用单片机实现自动控制已越来越成为现代社会的主流,针对外界各种模拟的量通过模数转换的方式加以处理传送给单片机实现闭环的一个控制,本系统就是利用此思想,采用PT100这一温度传感器采集到温度值,经TLC2543模数转换量化编码将变换无常的温度变量转换成数字式的电压值加以取代,然后经传递到达单片机STC89C52处理以后就能在LCD1602上显示出精确的温度值。

除此之外当你要设定一个温度或时间的时候还需要键盘的输入控制,4*4的一个键盘模式是本系统的一个模块,因为食物需要经过加热保温等等各个阶段,所以时间控芯片DS1302必不可少,能够灵活的控制加热的时间,在工作端用到双向可控硅MOC3031作为电热丝两端220V电压通断的控制器,控制电热丝的工作状态,总体说来每个模块都达到了各自功能控制的一个效果,而且已能组成一个功能可靠正常运行的系统,即基于单片机的电烤箱控制器。

8