重庆邮电大学毕业设计(论文)设 计 ( 论 文 ) 题目:基于单片机的气压传感器研制摘 要人们对气压的认识也是人类科学讨论的一大进步,人们从很久以前就在讨论大气,并且有人认为有大气压值,直到马德堡半球实验,真正证明了大气压的存在。气压的应用也是比较早的,如著名的蒸汽火车头,就是人类应用气压的一个显著例子。气压计在现实生活中的使用并不是很明显,大部分人在一生中很少甚至没有接触过气压传感器,但是气压传感器在某些工作领域确实是不可或缺的重要器材,例如国防领域、工业领域、医疗领域以及气象学领域。本设计介绍了一种基于单片机和气压传感芯片 MPX4115A 的数字式气压传感器的软、硬件实现方法。通过气压传感芯片 MPX4115A 获得被测环境中的气压值并输出相应的模拟电压值,此电压经过以 LM331 芯片为核心的 V/F 转换电路输出相应数字脉冲信号,输入到单片机的计数器。单片机在单位时间内获得该信号的脉冲数值,计算出脉冲信号的频率。根据电压与频率的线性关系计算出对应的实际气压值,最后通过液晶显示屏 LCD1062 显示出来,并进行了软硬件调试。【关键词】单片机 气压传感芯片 液晶显示屏 V/F 转换芯片ABSTRACTAir pressure is a big step forward for the Human Sciences Research, human being have a long history of study air pressure. The Magdeburg hemispheres experimental proofed the existence of the air pressure. The application of air pressure is relatively early, such as the steam engine is a notable example of human being application of air pressure. Barometer use in real life is not very obvious, most of the people in their lives with little or no contact with barometer. Actually, barometer is an indispensable equipment in certain areas of work, such as the field of national defense, industrial fields,the medical field and the field of meteorology. This design based on microcontroller STC89C52 and pressure sensor chip MPX4115A, and introduced how its software and hardware works. We can get analog output voltage which corresponds to the measured pressure, by pressure ...