基于单片机的婴儿蹬被报警器的设计

以下是资料介绍,如需要完整的请充值下载. 本资料已审核过,确保内容和网页里介绍一致.  
无需注册登录,支付后按照提示操作即可获取该资料.
资料介绍:

基于单片机的婴儿蹬被报警器的设计(任务书,论文13000字)
摘  要
本设计婴儿蹬被报警器是以单片机为核心的温度和光的检测系统。 其基本工作原理:一是利用DS18B20温度传感器对温度进行测量及采集,再传送给单片机并在LCD上显示当前温度,同时与设置在单片机的初始温度作比较,是否超过或者低于初始温度使蜂鸣器警报;二是对光进行检测,通过光敏电阻的阻值变化,使蜂鸣器警报;三是通过DS18B20得到的温度通过蓝牙传输到上位机并显示变化曲线且保存得到的数据。
同时通过方案论证确定了本系统采用单片机STM32,LCD显示屏,温度传感器DS18B20及光敏电阻等元器件,然后对系统硬件电路设计和软件设计分别进行了说明。硬件电路由单片机最小系统电路、测温模块接口电路、LCD显示接口电路、光检测电路、LED显示电路及蓝牙模块接口电路等构成。软件由C语言编写以及上位机通过LabView编写。最后,对系统调试和功能进行了说明,还有电路原理图附在附录中。
关键词:单片机  温度传感器  光敏检测  LCD显示  上位机
 
Baby pedal alarm based on the microcontroller
Abstract
The design of the baby tic alarm is the temperature and light detection system that the microcontroller is the core. Its working principle: one is using DS18B20 temperature sensor for temperature measurement and acquisition and then the signal is transmitted to the microcontroller and drives the LCD to display the current temperature.At the same time,the current temperature is compared with  the initial temperature in the MCU, and the alarm sounds when the result is higher or lower than the initial temperature; second is the light detection.when the resistance of photosensitive resistance is changing, the alarm sounds; three is the current obtained through DS18B20 is transferred to PC through Bluetooth and used to display the data curve and the data will be preserved.
At the same time the system uses STM32 MCU, LCD display, temperature sensor DS18B20 and photosensitive resistance components demonstrated through the programme,and the system hardware circuit design and software design are explained in detail. The hardware circuit consists of the minimum system circuit, the interface circuit of temperature measurement module,the interface circuit of LCD display, optical detection circuit, the circuit of LED display and the interface circuit of Bluetooth module. The software is written by the C language as well as the host computer by the Labview. Finally, the system debugging and function are described, as well as circuit diagram attached in the appendix.
Key Words:MCU;Temperature sensor;Photosensitive detection;LCD display;PC

本文内容
本论文主要研究基于单片机的婴儿蹬被报警系统。本系统采用STM32单片机作为主控模块。一方面通过传感器检测周围温度、光强变化并将数据实时发送到单片机进行处理以及显示;另一方面,对各个模块的硬件电路进行分析,并绘制相应的原理图。此外,编写单片机处理温度、光传感器数据的程序,以及显示模块的驱动程序和上位机曲线显示程序。
 

基于单片机的婴儿蹬被报警器的设计
基于单片机的婴儿蹬被报警器的设计
基于单片机的婴儿蹬被报警器的设计


目  录
摘  要    I
Abstract    II
第一章 绪论    2
1.1 研究背景和意义    2
1.2 国内外研究现状    2
1.3 本文内容    2
1.4 本文结构    2
1.5 小结    3
第二章 系统总体方案设计    4
2.1 总体方案    4
2.2主控器的选择    4
2.3 测温模块的选择    5
2.4 显示模块的选择    5
2.5 光检测模块的选择    6
2.6 数据传输模块的选择    6
2.7 上位机软件编写的选择    6
2.8小结    7
第三章 系统硬件电路设计    8
3.1 单片机最小系统    8
3.1.1 电源电路    8
3.1.2 时钟电路    9
3.1.3  复位电路    10
3.2 测温模块接口电路    10
3.3 显示模块接口电路    11
3.4 光检测电路    14
3.5 LED显示电路    14
3.6 报警电路    15
3.7 蓝牙模块接口电路    15
3.9  STM32 IO口的资源分配    16
3.9 小结    17
第四章 系统软件设计    18
4.1 系统整体设计方案    18
4.2温度检测程序设计    19
4.3 触摸屏的显示    20
4.4 触摸屏触摸响应    21
4.5 报警模块程序设计    22
4.6 光检测程序设计    23
4.7上位机程序设计    23
4.8 小结    25
第五章 系统调试和结果    26
5.1 显示电路的调试    26
5.2  AD模块的调试    26
5.3 报警电路调试    26
5.4 蓝牙传输调试    27
5.5 上位机的调试    27
5.6 系统运行结果    27
5.7 小结    30
第六章 总结    31
附录一:硬件原理图    34
附录二:程序    35