摘要
采用AT89C2051单片机为核心配置,以温湿度传感器SHT75、数码管显示、计算机监控系统等部件,通过单片机与智能传感器相连,采集并存储智能传感器的测量数据,并通过RS485总线来实现PC上位机与单片机控制模块半双工串行通信。微控制器AT89C2051通过I2C总线控制传感器的测量和数据回传,每次将采集到的5组数据经过计算,修正及补偿后分别传送到PC端存储和显示模块进行实时显示。经过实验测试得出结论:温度测量精度为±0.3℃,湿度测量精度为±2%RH,各项指标均达到了课题的设计要求。
AT89C2051 single-chip was adopted as the core configuration,which is made up of temperature and humidity sensor SHT75,digital display,computer monitoring system and other components,by connected single chip with smart sensors,collected and stored measurement data,and achieved communication between PC and single chip control module by RS485 chief line.Micro-controller AT89C2051 measured and returned data through the I2C bus-mastering control measuring sensor,each of the five groups collected data by calculated,revised,and compensation was sent to the PC-side storage and display module for real-time display.Through the actual test draw following conclusions: temperature measurement accuracy was ± 0.3℃,humidity measurement accuracy was ± 2% RH,each target has reached the subject design requirements.
出处
《电子设计工程》
2011年第12期172-174,共3页
Electronic Design Engineering
基金
云南省农业科技创新工程(2008LA020)