没有合适的资源?快使用搜索试试~ 我知道了~
基于单片机淋浴水温调节器设计-毕业论文.doc
0 下载量 66 浏览量
2023-07-09
12:05:26
上传
评论
收藏 627KB DOC 举报
温馨提示
试读
30页
基于单片机淋浴水温调节器设计-毕业论文.doc
资源推荐
资源详情
资源评论
I
淋浴水温调节器设计
摘 要
目前淋浴热水器在家庭中运用越来越广泛,然而市面上存在的淋浴调节
方式主要是通过手动调节开关量的大小来控制水温的高低。这种调节方式不
能够很好的控制水温的高低,有时由于调节开关距淋浴地点较远,给人们调
节水温带来不便,因此,这种调节方式不能够满足人们追求生活舒适的要求。
本论文介绍了一种以单片机为主要控制器件,以 DS18B20 为温度传感器
的新型淋浴水温调节器。它主要包括硬件电路的设计和软件设计。硬件电路
主 要 包 括 主 控 制 器 , 测 温 控 制 电 路 和 显 示 电 路 等 , 主 控 制 器 采 用 单 片 机
STC89C54RD+,温度传感器采用 DS18B20,显示电路采用 8 位共阴极 LED
数码管动态扫描显示。测温控制电路由温度传感器电路和预设温度电路组成,
当实际测量温度值大于或小于预置温度值时,发出信号,从而单片机发出指
令控制冷水口和热水口的阀门,使热水和冷水进入到一定大小的容器,保证
容器的水温在一定范围内变化。软件设计主要包括主程序,测温子程序和显
示子程序等。该设计能够实现精确控制水的温度,其中由于单片机的集成化,
使产品小型化、智能化,既提高了产品的功能和质量,又降低了成本,简化
了设计。
关 键 词:STC89C54RD+,DS18B20,显示电路,测温控制电路
II
Shower water temperature regulator design
ABSTRACT
Shower water heater is currently more widely used at family, however,
there is a mainly way to regulate shower which through manual adjustment
switch to control the temperature in the market . This adjustment is not a good
way to control the temperature , and sometimes regulating switch is far away
from the shower location, which is not convenience to control the temperature.
therefore, this adjustment method is not able to satisfy the people to pursue life
comfortable request.
This paper introduces a kind of new shower water temperature regulator,
which use the Single chip as the main control device and DS18B20 as the
temperature sensor. It mainly includes hardware circuit design and software
design. Hardware circuit mainly includes the main controller, temperature
control circuit and display circuit , the main controller uses the Single chip
STC89C54RD +, temperature sensor adopts DS18B20,display circuit uses
eight total cathode tube dynamic scanning LED digital display. Temperature
control circuit is consist of temperature sensor and the preset temperature
comparison circuit, and when the actual measured temperature greater than or
less than the preset temperature value, a signal to send commands to control the
mouth of cold water and hot water valve port, so that hot and cold water into the
container to a certain size, to ensure that the temperature of the container
changes a certain range. Software design mainly include main program,
temperature program and display program. This design can achieve precise
control the temperature of the water in which the integrated single chip make the
product miniaturization and intelligent, not only improves the function and
quality of products but also reduces the cost and simplify the design.
III
KEY WORDS: STC89C54RD +,DS18B20,Display circuit, Temperature control
circuit
IV
目 录
前 言 ..............................................................................................1
第 1 章 设计任务及方案设计 ..........................................................2
§1.1 设计任务及要求 .....................................................................2
§1.2 设计总体方案及论证 .............................................................2
§1.3 设计总体框图及结构图 .........................................................2
第 2 章 硬件设计 .............................................................................4
§2.1 单片机核心模块 .....................................................................4
§2.1.1 单片机类型及接口的选择 .................................................4
§2.1.2 时钟电路的设计 .................................................................5
§2.1.3 复位电路的设计 .................................................................6
§2.2 电源电路模块 ........................................................................6
§2.3 按键模块 ................................................................................7
§2.4 温度采集模块 ........................................................................8
§2.4.1 温度传感器的选择 .............................................................8
§2.4.2 DS18B20 芯片的特点 .........................................................8
§2.4.3 DS18B20 芯片的内部结构及引脚 ......................................9
§2.4.4 DS18B20 与单片机接口电路 ............................................10
§2.5 继电器模块 ..........................................................................10
§2.6 显示模块 ..............................................................................11
§2.6.1 LED 指示灯显示电路 .......................................................11
§2.6.2 八位共阴极数码管显示电路 ............................................12
§2.7 PCB 设计 ............................................................................13
第 3 章 系统软件设计 ....................................................................15
§3.1 各部分软件介绍 ...................................................................15
§3.1.1 DS18B20 温度采集程序 ...................................................15
§3.1.2 显示程序 ..........................................................................17
§3.1.3 按键程序 ..........................................................................17
V
§3.2 软件总程序 ..........................................................................17
第四章 系统调试 ...........................................................................19
结 论 ............................................................................................20
参考文献 ........................................................................................21
致 谢 ..............................................................................................22
附 录 ..............................................................................................23
附录 1:整体电路原理图 .............................................................23
附录 2:PCB 印制版电路图 .........................................................24
剩余29页未读,继续阅读
资源评论
zzzzl333
- 粉丝: 674
- 资源: 7万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功