APP下载

基于nRF24L01的无线温度报警系统设计

2023-06-07孟亚男黄迎旭赵凯王德平

河南科技 2023年9期
关键词:单片机

孟亚男 黄迎旭 赵凯 王德平

摘 要:【目的】随着社会经济发展,温度检测系统在日常生产和生活中变得越来越重要。为准确检测温度及实现快速报警功能,本研究设计一种基于nRF24L01无线传输模块的温度检测报警系统。【方法】系统通过无线传输方式来实现温度检测和报警功能,整个测温报警系统由主机和从机两部分组成。主机和从机均采用STC89C52RC单片机,从机将DS18B20温度传感器检测到的温度数据通过无线传输方式发送给主机。当检测到的温度超过设定值时,主机部分的单片机就会及时报警。【结果】在单片机电路板上连接好各个模块的接线,烧录完程序后对系統进行测试。系统能快速准确地检测温度,当检测到的温度超过设定值时可迅速报警。【结论】系统具有硬件结构简单、功耗较低、成本低廉等优点,在家居、农业、工业等领域有很好的应用价值。

关键词:nRF24L01;单片机;DS18B20;报警

中图分类号:TP273    文献标志码:A      文章编号:1003-5168(2023)09-0006-05

DOI:10.19968/j.cnki.hnkj.1003-5168.2023.09.001

Abstract: [Purposes] With the development of social economy, temperature detection system is becoming more and more important in daily production and life. In order to accurately detect the temperature and realize the rapid alarm function, this study designs a temperature detection and alarm system based on nRF24L01 wireless transmission module. [Methods] The system realizes the temperature detection and alarm function through wireless transmission. The whole temperature measurement alarm system consists of two parts : the host and the slave,which both adopt STC89 C52 RC single chip microcomputer. The slave sends the temperature data detected by DS18 B20 temperature sensor to the host through wireless transmission. When the detected temperature exceeds the set value, the microcontroller of the host part will alarm in time. [Findings] The wiring of each module was connected on the circuit board of the single-chip microcomputer. After downloading the program, the system will be tested and could detect the temperature quickly and accurately. When the detected temperature exceeded the set value, it could quickly alarm. [Conclusions] The system has the advantages of simple hardware structure, low power consumption and low cost, and has good application value in home, agriculture, industry and other fields.

Keywords: nRF24L01; microcontroller; DS18B20; alarm

0 引言

无论是在日常生活中还是在工业生产中,温度都是一个重要的物理参数,很多场景都要用到温度检测。例如,在温室大棚、智能家居、锅炉设备中,需要快速、精准地检测温度,并能及时调整控制,保证现场安全。在社会经济发展过程中,人们对温度检测的精准性及控制要求在不断提高。在一些粮仓或农业养殖场所,温度的重要性不言而喻,有些场景要单点测温,有些场景则要多点测温,来保证农业生产安全,避免因温度异常而发生事故,造成不可估量的损失[1]。……

登录APP查看全文

猜你喜欢

单片机
基于单片机的SPWM控制逆变器的设计与实现
基于单片机的层次渐变暖灯的研究
基于单片机的多功能智能插排
基于单片机的便捷式LCF测量仪
小议PLC与单片机之间的串行通信及应用
MSP430单片机在仿真中要注意的几点问题
基于单片机的平衡控制系统设计
基于单片机的三维LED点阵设计
Microchip推出两个全新PIC单片机系列
基于Proteus的单片机控制系统的仿真设计