摘要
基于Python编写上位机交互窗口,Arduino作为下位机,构建了一个多功能监测平台。使用NTC温度传感元件、光敏电阻同时进行温度与光强度数据的采集,并将采集到的数据由Arduino下位机发送至Python上位机交互窗口,并进行自动化记录与数据处理,并对温度传感器与光照传感器进行校正与检验,得到温度传感器校正后的精度为0.5℃,相对误差在1%之内,光照度传感器校正后的精度为0.5Lux,相对误差在2%之内。该监测平台数据记录平稳,运行良好。
In the paper, a multi-function monitoring platform is built,which is based on Python writing the upper computer interaction window and Arduino as the lower mechanism.NTC temperature sensing elements and photosensitive resistors are used to collect temperature and light intensity data at the same time,and the collected data is sent from the Arduino lower computer to the interactive window of the Python upper computer,and automatic recording and data processing are conducted.The temperature sensor calibration precision is 0.5 ℃,the relative error is within 1%,the precision of the light sensor calibration is 0.5 Lux,relative error is within 2%.The data recording is stable and the platform runs well.
作者
李允
Li Yunyi(College of Science and Technology,Hebei Agricultural University,Huanghua 061100,China)
出处
《单片机与嵌入式系统应用》
2019年第6期60-64,共5页
Microcontrollers & Embedded Systems
基金
河北省大学生创新创业训练计划项目(No.201810086063)