基于单片机的便携式高度测量仪的设计Design of portable height measurement instrument based on SCM
张国强,谌炎辉,张茂盛
摘要(Abstract):
介绍一种以51系列单片机STC89C52作为核心控制器的便携式高度测量仪的设计方法。其采用气压传感器BMP180采集相应的气压等数据,采取I2C通信协议与单片机进行串口通信,用C语言编写了相关的计算和补偿的软件程序,将气压值转换成海拔高度。实践表明,该设计能够快速并且较准确地测量出测量仪所处位置的气压值和海拔高度。
关键词(KeyWords): STC89C52;气压传感器;程序设计;通信协议;串口通信;高度测量仪
基金项目(Foundation): 陕西省教育厅专项科研计划项目(16JK2215)~~
作者(Author): 张国强,谌炎辉,张茂盛
DOI: 10.16652/j.issn.1004-373x.2018.22.019
参考文献(References):
- [1]潘红丽,李迈和,蔡小虎,等.海拔梯度上的植物生长与生理生态特性[J].生态环境学报,2009,18(2):722-730.PAN Hongli, LI Maihe, CAI Xiaohu, et al. Responses of growth and ecophysiology of plants to altitude[J]. Ecology and environmental sciences,2009,18(2):722-730.
- [2]保娅,达哇卓玛.不同海拔高度温、湿度对土壤养分的影响[J].青海草业,2014,23(4):16-18.BAO Ya,DAWA Zhuoma. different elevation of temperature humidity effects on soil nutrients[J]. Qinghai prataculture,2014,23(4):16-18.
- [3]范立军.高海拔地区大气参数对电气设备外绝缘影响的研究[D].大连:大连理工大学,2002.FAN Lijun. Research on influence of atmospheric parameters on electric equipment outer insulation in high elevation zone[D]. Dalian:Dalian University of Technology,2002.
- [4]王俊彩,王福平,侯瑞峰,等.基于BMP085的一种便携式海拔高度测量系统设计[J].传感器与微系统,2011,30(12):123-125.WANG Juncai,WANG Fuping,HOU Ruifeng,et al. Design of a portable altitude measurement system based on BMP085[J]. Transducer and microsystem technologies,2011,30(12):123-125.
- [5]张金燕,刘高平,杨如祥.基于气压传感器BMP085的高度测量系统实现[J].微型机与应用,2014,33(6):64-67.ZHANG Jinyan,LIU Gaoping,YANG Ruxiang. Implementation of height measurement system based on pressure sensor BMP085[J]. Microcomputer&its applications,2014,33(6):64-67.
- [6]雷晓静,丁金华,丁明亮,等.海拔高度测量仪设计[J].工业仪表与自动化装置,2015(4):107-109.LEI Xiaojing,DING Jinhua,DING Mingliang,et al. Design of the altitude measurement instrument[J]. Industrial instrumentation&automation,2015(4):107-109.
- [7]袁捷,韩波,李平.基于89C52的气压高度计系统的设计和应用[J].机电工程,2005,22(10):30-34.YUAN Jie,HAN Bo,LI Ping. The design and application of an altimeter system based on 89C52[J]. Journal of mechanical&electrical engineering,2005,22(10):30-34.
- [8]吕友懿,许建明,陈炯明.基于单片机的电子时钟设计[J].电子世界,2016(9):31.LüYouyi,XU Jianming,CHEN Jiongming. Electronic clock design based on single chip microcomputer[J]. Electronics world,2016(9):31.
- [9]陆蓉.液晶显示器(LCD)显示驱动原理及其应用[J].电子制作,2005(5):51-52.LU Rong. Display drive principle and application of liquid crystal display(LCD)[J]. Practical electronics,2005(5):51-52.
- [10]黄旭. MDLS点阵字符型液晶显示模块与DSP芯片ADSP2106X的接口实现[J].电子技术,2000(2):59-61.HUANG Xu. Interface realization between MDLS lattice character LCD module and DSP chip ADSP2106X[J]. Electronic technology,2000(2):59-61.
- [11]王效华,张咏梅.单片机原理与应用[M].北京:北京交通大学出版社,2007.WANG Xiaohua,ZHANG Yongmei. Principle and application of single chip microcomputer[M]. Beijing:Beijing Jiaotong University Press,2007.
- [12]彭伟.单片机C语言程序设计实训100例:基于8051+Proteus仿真[M].北京:电子工业出版社,2012.PENG Wei. 100 cases of C language programming for SCM based on 8051+Proteus simulation[M]. Beijing:Publishing House of Electronics Industry,2012.
- [13]黎雪芬.KEIL及Proteus软件在单片机仿真教学中的应用[J].装备制造技术,2012(3):49-50.LI Xuefen. KEIL and Proteus software SCM simulation teaching[J]. Equipment manufacturing technology,2012(3):49-50.
- [14]郑春来,韩团军,李鑫.编译软件Keil在单片机课程教学中的应用[J].高教论坛,2009(12):96-97.ZHENG Chunlai,HAN Tuanjun,LI Xin. The application of simulation software Keil in teaching process of MCU course[J]. Higher education forum,2009(12):96-97.
- [15]安宗权,汪云祥.PCB排版对提高单片机应用系统可靠性的研究[J].安徽机电学院学报,2002,17(3):34-37.AN Zongquan,WANG Yunxiang. Research of PCB employed in MCU application system[J]. Journal of Anhui Institute of Mechanical&Electrical Engineering,2002,17(3):34-37.