基于STM32单片机的DS18B20测温报警系统设计.docx
文本预览下载声明
PAGE I
DS18B20测温系统设计
摘要:本文设计了一套可用于对环境温度进行测量的方案,该方案通过DS18B20来实现对所处环境温度的实时测量。本套设计方案采用STM32作为系统的主控芯片,搭配OLED显示屏、温度检测传感器等其他外围I/O设备,通过方针对方案进行了验证后又进行了实物的制作,最终,实现了对环境温度的检测。
在仿真实验中通过对参数进行不断的调节可以看到OLED显示屏上数据进行实时变化,而在实物测试中,通过手触摸温度检测传感器对传感器进行加温,可以通过OLED显示屏实时观看到温度的变化并且该系统可以对温度阈值进行设定,当温度超过设定阈值时会触发蜂鸣器报警。实现结果表明,本文设计的温度检测系统能够稳定的实现对温度的测量,并在超出设定阈值时进行蜂鸣器报警提示,能够满足设计要求。
关键词:STM32;OLED;测温报警系统;蓝牙连接
Design of DS18B20 temperature measuring system
Abstract:This paper designs a set of scheme which can be used to measure the ambient temperature. The scheme realizes the real-time measurement of the ambient temperature through DS18B20. This set of design scheme uses STM32 as the main control chip of the system, with OLED display, temperature detection sensor and other peripheral I/O equipment. After verification of the scheme through the policy, the production of the physical object is carried out. Finally, the detection of ambient temperature is realized.
In the simulation experiment, real-time changes of data on the OLED display can be seen through constant adjustment of parameters. In the physical test, the sensor is heated by touching the temperature detection sensor, so that real-time changes of temperature can be seen through the OLED display and the temperature threshold can be set by the system. A buzzer will be triggered when the temperature exceeds the set threshold. The results show that the temperature detection system designed in this paper can realize the stable measurement of temperature, and when the set threshold is exceeded, the buzzer alarm prompts, which can meet the design requirements.
Keywords: STM32; OLED; temperature measurement alarm system; Bluetooth connection
目 录
TOC \o 1-3 \h \z \u 摘要 I
Abstract II
1 绪论 1
1.1 论文研究的背景及意义 1
1.2 国内外研究现状 1
1.3 本文主要研究内容 1
1.4 论文的结构安排 1
2 方案论证 3
2.1 系统设计方案 3
2.2 主控模块选型 3
2.4 温度传感器的选择 6
2.5 显示模块的选择 7
2.6 设计语言的选择 9
2.3.1 汇编语言 9
2.3.2 C语言 9
3 硬件电路的设计 10
3.1 主控芯片 10
3.1.1 单片机 10
3.1
显示全部