本科毕业设计
题 目 数字气压计设计
gras
舞蹈培训学生姓名 谭升国
专业名称 自动化
指导教师 李雅丽
2014 年 5 月 5 日
教学单位
宝鸡文理学院
学生学号 201095034039
编 号
一往无前的意思数字气压计设计
摘要:气压计被广泛应用于国防领域、工业领域、医疗领域以及我们日常家庭生活中。本设计中就介绍了一种气压的实时显示设备。它是利用软、硬件基础知识,通过单片机与气压传感器的结合,使得在液晶显示器上显示出当前大气压值。本文详尽的描述了基于MPX4250气压计的软硬件实现过程,它满足数字气压计采集,控制和数据处理的需求,可提高系统稳定性和抗干扰能力。同时,由于大量工作由单片机软件来实现,简化了设计电路,且调整方便,可兼顾指标多,从而大大降低了成本。本设计是基于气压传感器MPX4250的精密数字气压计系统。通过气压传感器MPX4250获得与大气压相对应的模拟电压值,并经过电压/频率(V/F)转换模块转换为数字脉冲,通过单片机接收该脉冲信号,得到单位时间内获得的脉冲数,依据电压与频率的线性关系式计算出所对应的实际气压值,最后在单片机
的控制下由液晶显示电路显示出实际气压值。
关键词:单片机;气压传感器;V/F转换器;液晶显示
Design of digital barometer
Abstract :Barometer is widely ud in the defen ctor, industry, medical fields as well as our daily life.Using basic knowledge of hardware and software, and through the combination of SCM and pressure nsors, The current atmospheric pressure value is displayed by the LCD.This article describes in detail the hardware and software bad on MPX4250 barometer realization.It satisfies the digital barometer of acquisition, control and data processing requirements, can improve the system stability and anti-interference ability. At the same time, due to the large amount of work is realized by software,simplifies the design circuit, convenient adjustment, both indexes, thereby greatly reducing the cost.
An accurate digital barometer system is designed bad on pressure nsor MPX4250. The system firstly gains the value of analog voltage corresponding to the atmospheric pressure by nsor MPX4250. Then the voltage signal is transferred into digital puls using voltage/frequency transferring model. A single-chip is utilized in receiving the pul signal, measuring the number of pul
s received per unit interval, and in calculating the actual magnitude of pressure according to the linear relationship between voltage and frequency. Finally, controlled by the single-chip, the actual value of pressure is displayed by the liquid crystal displaying circuit.
Keywords: MCU;pressure nsor;V/F transferor;LCD
目录
1 绪论 (1)
1.1 课题背景 (1)
1.2 技术概况及发展趋势 (1)
1.2.1 传感器的技术性能 (1)
1.3 数字气压计系统设计意义 (2)
2 系统总体设计 (3)
2.1 设计整体思想 (3)
2.2 系统总体框图 (3)
2.3 数据采集模块 (4)
2.3.1 数据采集模块的芯片选择 (4)
2.3.2 气压传感器MPX4250的原理图 (4)
2.4 数据转换模块 (5)
2.4.1 数据转换芯片选择 (6)
2.4.2 ADC0832芯片如图所示 (6)
2.4.3 ADC0832芯片的特点及接口说明 (7)
2.5 数据处理模块 (8)
2.5.1 数据处理模块的芯片选择 (8)
2.5.2 单片机部分的原理图 (8)
sssr
buenos2.5.3 AT89C52引脚及功能 (9)
over the rainbow 原唱欺侮2.6 显示模块 (11)
2.6.1 显示器LCD部分的原理图 (11)
2.6.2 LCD1602原理 (12)
礼貌用语有哪些2.6.3 电源模块的原理图 (13)
2.6.4 芯片78L05原理 (13)
2.7 总体原理图 (15)
线索英文3 软件设计 (15)
3.1 程序流程图 (15)
3.2 软件开发语言介绍 (16)
4 系统调试与仿真 (17)
4.1 KEIL-C介绍 (17)
4.2 PROTEUS软件介绍 (19)
4.3单片机调试仿真 (20)
interact
参考文献 (22)
致谢 (23)
附录A 英文原文 (24)
附录B 中文译文 (27)
附录C 程序代码 (32)