段文勇+李燕


【摘 要】本设计将传感器技术、射频技术以及计算机技术相结合,充分利用了单片机快速灵活的特点和虚拟仪器低成本、功能强的优点。硬件部分主要由单片机、温度传感器、无线传输模块、串口通信等部分组成,实现了温度的采集,单片机间数据的无线传输以及单片机与上位机的通信。上位机采用LabVIEW创建人机交互式界面,实现了数据的显示和记录,可进行温度的上下限设置、报警。
LabVIEW在测量领域的强大功能可以替代传统仪器完成数据的处理。整个系统具有传输数据速度快,适应性好和可靠性高等优点,在现实生产生活中具有较高的实用价值。
【关键词】温度检测;无线通信;单片机;串口通信;LabVIEW
【Abstract】The design combines the sensor technology,radio frequency technology and computer technology to make full use of the characteristics of fast and flexible MCU and the advantages of low cost and strong function of virtual instrument.The hardware part is mainly composed of MCU, temperature sensor,wireless transmission module,serial communication and so on.The temperature acquisition,the wireless transmission of data between single chip microcomputer and the communication between the single chip microcomputer and the host computer are realized.The host computer uses LabVIEW to create an interactive interface,which can display and record the data. It can be carried out on the upper and lower limits of the temperature alarm.LabVIEWs powerful function in the field of measurement can replace the traditional instrument to complete the data processing. The whole system has the advantages of high speed of data transmission, good adaptability and high reliability,and has high practical value in real life.
【Key words】Temperature measurement;Wireless communication;MCU;Serial communication;LabVIEW
0 引言
隨着传感器技术的发展,温度的检测已经成为一种常见的技术。传统的数据传输方式均是通过有线电缆来实现的,有线通讯存在布线难、检测难等问题。而无线通讯技术的日渐成熟,困扰其发展的传输速率和抗干扰能力得到大大提升,无线温度检测成为必然的选择,其成本低、建网快捷、传输距离长等优点使其拥有广阔的发展前景[1-4]。
1 系统总体设计
本设计通过DS18B20测量温度并传送给单片机从机,nRF905无线模块完成单片机从机到主机的数据传输,单片机主机与LabVIEW通讯的同时通过LCD1602显示温度,LabVIEW完成温度的显示、记录等功能。总体设计方案如图1所示:
2 系统硬件设计
系统硬件部分由单片机最小系统、温度检测模块、无线传输模块、液晶显示模块、串口通信模块组成。……