Implementation of Height Measurement System Based on Pressure Sensor BMP085

Similar documents
AMS 6915 Board mount pressure sensor with digital output (I²C)

SPD Pressure Sensor Families

Design of Altitude Measurement System for Aerospace Applications (Digital Barometric Altimeter)

Using MS5534 for altimeters and barometers

HASTAC High stability Altimeter SysTem for Air data Computers

AMS 2710 PCB pressure sensor module with V output

Precision level sensing with low-pressure module MS

AMS 6916 Board mount pressure sensor with ratiometric analog output

BAROMETER PRESSURE STANDARD PRESSURE CONTROLLER

Electronic gas volume corrector model DGVC-04

Hardware Triaxial and Consolidation Testing Systems Pressure Measurement and Control

HPSD 3000 Pressure Transducer

Computer Aided Drafting, Design and Manufacturing Volume 26, Number 2, June 2016, Page 53. The design of exoskeleton lower limbs rehabilitation robot

THE PRESSURE SIGNAL CALIBRATION TECHNOLOGY OF THE COMPREHENSIVE TEST

Lab 1c Isentropic Blow-down Process and Discharge Coefficient

OxyScan Graphic. Operating Instructions. UMS Micro-oxygen sensor 501. Microprocessor instrument

Journal of Chemical and Pharmaceutical Research, 2014, 6(3): Research Article

MS52XX-C&T SMD Pressure Sensor

ACCURATE PRESSURE MEASUREMENT FOR STEAM TURBINE PERFORMANCE TESTING

Electronic Automatic Transmission for Bicycle

Electronic Volume Correctors

Lab #1 Pressure: Bubblers and Water Balloons CEE 331 Fall 2003

Lab 1: Pressure and surface tension. Bubblers, gravity and the mighty paper clip.

Auto-Zero Calibration Technique for Pressure Sensors

Engineering Note. Algorithms. Overview. Detailed Algorithm Description. NeoFox Calibration and Measurement. Products Affected: NeoFox

Adaptive context-agnostic floor transition detection on smart mobile devices

COMPARISON OF DIFFERENTIAL PRESSURE SENSING TECHNOLOGIES IN HOSPITAL ISOLATION ROOMS AND OTHER CRITICAL ENVIRONMENT APPLICATIONS

Exercise 3. Power Versus Wind Speed EXERCISE OBJECTIVE DISCUSSION OUTLINE. Air density DISCUSSION

Preparation for Salinity Control ME 121

Fail Operational Controls for an Independent Metering Valve

陕西创威科技有限公司. Shaanxi Creat Wit Technology Co., Ltd. Precision pressure calibrator-cwy300 Operating Manual

Intelligent SUNTEX DC-5310(RS) Dissolved Oxygen Transmitter

Exercise 8. Closed-Loop Pressure Control, Proportional-Plus-Integral Mode EXERCISE OBJECTIVE

Application Block Library Fan Control Optimization

A Distributed Control System using CAN bus for an AUV

RATE CONTROL SYSTEM FOR SOUNDING ROCKETS

Folding Reticulated Shell Structure Wind Pressure Coefficient Prediction Research based on RBF Neural Network

Constant pressure air charging cascade control system based on fuzzy PID controller. Jun Zhao & Zheng Zhang

Correction of Pressure Drop in Steam and Water System in Performance Test of Boiler

Analysis of Pressure Rise During Internal Arc Faults in Switchgear

Analysis and realization of synchronized swimming in URWPGSim2D

SX150A. Features. Typical Applications. Description

Pressure Sensor Bridge Configurations

MIL-STD-883G METHOD

Software Design of the Stiquito Micro Robot

Selecting the right pressure sensor for your application

Air Compressor Control System for Energy Saving in Manufacturing Plant

Experimental Research on Oxygen-enriched Air Supply System for Gasoline Engine

P9000 DESCRIPTION. For parts requiring RoHS compliance, please contact factory. P February /6

Specifications and information are subject to change without notice. Up-to-date address information is available on our website.

82C288 BUS CONTROLLER FOR PROCESSORS (82C C C288-8)

HTD series digital differential pressure sensors

PHPS-7500 OEM Ceramic Pressure Transducer

Oxygen Meter User Manual

Mitos Fluika Pressure and Vacuum Pumps Datasheet

Finite Element Modal Analysis of Twin Ball Screw Driving Linear Guide Feed Unit Table

FTC130 Transmitter. Operating Manual

The M-Series Eletta Flow Meter High accuracy DP Flow Meter with multiple functions

Optimization of Air compressor Motor speed for Reducing Power Consumption

Wind Measurement System Using Miniaturized Navigation Sensors for Light Aircraft and Sailplanes

GasSense NDIR User Manual

MANUAL KPS Pressure Control Valve

USING THE CS400/CS405 (KPSI SERIES 169/173) SUBMERSIBLE PRESSURE TRANSDUCER WITH CAMPBELL SCIENTIFIC DATALOGGERS INSTRUCTION MANUAL

DIY - PC - Interface for Suunto Cobra/Vyper/Mosquito

PHPS-7500 OEM Ceramic Pressure Transducer

An Indoor Positioning Method with MEMS Inertial Sensors

Design and Implementation of Automatic Air Flow Rate Control System

Instructions for SMV 3000 Multivariable Configuration (MC) Data Sheets

Keywords: multiple linear regression; pedestrian crossing delay; right-turn car flow; the number of pedestrians;

CORESTA RECOMMENDED METHOD N 6

IDL01. Battery Powered Precision Digital Gauge for Leak Testing. Stainless Steel Sensor. class 0.05

SAPCON. User Manual. Capacitance Continuous Level Indicator. . Introduction. . General Description. . Principle of Operation. .

Available online at ScienceDirect. Procedia Engineering 84 (2014 )

DM01. Please visit our website: Battery Powered Precision Digital Gauge. Stainless Steel Sensor. class 0.05

Sensoric 4-20 ma Transmitter Board Operation Manual

Technical Data Sheet MF010-O-LC

A CO 2 Waveform Simulator For Evaluation and Testing of Respiratory Gas Analyzers

A Depletion Compensated Wet Bath Simulator For Calibrating Evidential Breath Alcohol Analyzers

Coriolis Mass Flow Meter

Best Practice for Calibrating LTH Conductivity Instruments

Research on ESC Hydraulic Control Unit Property and Pressure Estimation

Step Detection Algorithm For Accurate Distance Estimation Using Dynamic Step Length

Pressure Measurement. Introduction. Engr325 Instrumentation. Dr Curtis Nelson 3/12/18

Vibration Analysis and Test of Backup Roll in Temper Mill

SAFETY DEMONSTRATION TESTS ON HTR-10

Diffusing Capacity: 2017 ATS/ERS Standards for single-breath carbon uptake in the lung. Susan Blonshine RRT, RPFT, FAARC, AE-C

Next Generation Quartz Pressure Gauges

MS54XX Miniature SMD Pressure Sensor

MOTUS Wave Buoys. Powered By the Aanderaa MOTUS Directional Wave Sensor

Transmitter CS 21 Operation Manual

A4 Operation Manual. Fig.1-1 Controller Socket Diagram

LINEAR TRANSFORMATION APPLIED TO THE CALIBRATION OF ANALYTES IN VARIOUS MATRICES USING A TOTAL HYDROCARBON (THC) ANALYZER

Speed Control System Design in Bicycle Robot by Low Power Method. Abstract

D-Opto Dissolved Oxygen Sensor Operation Manual for the D-Opto 4-20mA

SCIENTIFIC DATA SYSTEMS, INC. Depth Tension Line Speed Panel. DTLS Manual

WHITEPAPER. The flowplus 16 Pressure Sensor. Physical Principles and Function

Implementation of Modern Traffic Light Control System

SENSORS Pressure CALDARO

Application Note AN-107

A4s Operation Manual

Transcription:

017 nd International Conference on Test, Measurement and Computational Method (TMCM 017) ISBN: 978-1-60595-465-3 Implementation of Height Measurement System Based on Pressure Sensor BMP085 Gao-ping LIU *, Wang-ming ZHANG and Huan-huan TIE EDA Key Laboratory, Zhejiang Wanli University, Ningbo, 315100, China *Corresponding author Keywords: BMP085, STM3F103RCT6, Linear interpolation method, Altitude measurement. Abstract. This paper designs a kind of height measurement system based on BMP085 pressure sensor. One STM3F103RCT6 embedded chip is used as the main controller for the system, meanwhile one BMP085 chip is used to measure pressure data. The microprocessor reads the pressure data through the IC hardware interface, then adopts linear interpolation method to calculate the absolute height based on the relationship of atmospheric pressure and altitude, thereby acquire the relative height. The experimental result shows that the relative height measurement error of this system is 0.4m, thus can achieve high precision requirement. Introduction In recent years, the application of Global Positioning System (GPS) in the field of positioning more and more widely. GPS can achieve global real-time positioning when the receiving signal is in good condition, but the positioning accuracy of GPS is greatly reduced because satellite signals are easily blocked under the environment of high-rise buildings or viaducts [1-]. With the continuous development of sensor technology, the method of height measurement based on Micro Electromechanical System (MEMS) has become a research trend, which can be used to compensate for GPS positioning when the signal is blocked shortcoming. One kind of height measurement method based on BMP085 digital pressure sensor is proposed, and a height measurement system controlled by STM3F103RCT6 microprocessor is designed in this paper. The Design of Hardware System The hardware of the height measurement system designed in this paper consists of BMP085 pressure sensor module, STM3F103RCT6 microprocessor, power supply and so on. BMP085 pressure sensor module sends uncompensated barometric pressure and temperature values to the STM3F103RCT6 microprocessor through the IC (Inter-Integrated Circuit) bus. The microprocessor will compensate for the data, then output pressure, height and other data to PC through the serial port. The system hardware block diagram is shown in Figure 1. Air Pressure Sensor Module of BMP085 Power Supply STM3F103RCT6 Microprocessor PC BMP085 Digital Pressure Sensor Figure 1. The system hardware block diagram. BMP085 is a low power, high precision MEMS digital pressure sensor produced by BOSCH company in Germany. Its supply voltage range is 1.8 to 3.6V, and the typical value is.5v. It consists of a resistive type pressure sensor, a A/D converter and a control unit with EPROM, and the control 1

unit is connected with the microprocessor of the mobile device through the IC bus[3]. Eleven calibration parameters are stored in the EPROM. These 11 calibration parameters relate to zero drift at reference temperature, temperature coefficient of zero drift, and temperature coefficient of sensitivity for temperature compensation of barometric pressure [4]. The Design of Interface Circuit The STM3F103RCT6 is an enhanced microcontroller based on the 3-bit ARM Cortex -M3 RISC core [5], and contains two I C interfaces (I C1 and I C). The proposed system uses I C1 interface for communication, and the SCL and SDA of BMP085 respectively connected with the PB6, PB7 pin of STM3F103RCT6. The STM3F103RCT6 microprocessor uses an external 8 MHz crystal oscillator to generate a maximum of 7 MHz master clock frequency via a phase-locked loop. In addition, the SDA and SCL signal lines must be added pull-up resistor Rp(Pull-Up Resistor) actually, for the general I C bus devices with SDA and SCL pins are open-drain(or open collector) output structure. The pull-up resistor is generally 3 to 10 KΩ, the system uses 4.7KΩ pull-up resistor. The measured data such as pressure and altitude are output to the PC via the USART1 serial port. The interface circuit schematic diagram between BMP085 and STM3F103RCT6 is shown in Figure. In which, U1 is a voltage conversion chip that converts a 5V voltage to a 3.3 V voltage, U3 is the BMP085 pressure sensor, U is the SP33 level converter chip and connected to a PC via a serial port(com), U4 is STM3F103RCT6 microprocessor that is the core chip of the system. Figure. Schematic diagram of the interface circuit. Software Design of Microprocessor Microprocessor software flowchart is shown in Figure 3. System initialization is carried out first which includes system clock (RCC) configuration, interrupt vector (NVIC) configuration, GPIO configuration, USART serial port configuration and I C interface initialization. Then microprocessor reads 11 calibration parameters from the EPROM, and reads the uncompensated temperature and pressure values from the registers every 10ms, and compensates them with the calibration parameters, and calculates the altitude using the linear interpolation method, and then transfers the temperature, barometric pressure, altitude and other data to PC, and a row of data is displayed on the PC. The following focuses on data compensation and linear interpolation for the calculation of altitude. Data Compensation Since the relationship between altitude and atmospheric pressure is affected by temperature, it is necessary to compensate the barometric pressure value with the temperature value. BMP085 pressure sensor in the EPROM has the original 11 calibration parameters, which are different for each sensor. Before the first read of pressure and temperature values, microprocessor must read the calibration parameters from E PROM, and reading the uncompensated temperature and pressure values from the

specified register, then uses the compensation algorithm provided by the BMP085 data sheet to compensate the temperature and pressure values. In this algorithm, microprocessor need to select the operating mode of BMP085 according to the value of OSS (oversampling setting). The measurement accuracy and the conversion time is determined by the OSS value [3]. The OSS value is set to 0 in the microprocessor software of the proposed system, which the low power mode is selected. Start System initialization Read parameters from EPROM of BMP085 Read uncompensated temperature and pressure values from registers Compensate for temperature and pressure values Linear interpolation method for calculating altitude Serial output temperature, height and pressure value to PC Atmospheric Pressure to Altitude Conversion Delay 10ms Figure 3. Microprocessor software flow chart. Relationship Between Atmospheric Pressure and Altitude. Assuming the air is the ideal standard atmospheric state, the atmospheric pressure has the following relationship with the altitude [6]: g n P S = Pb exp (1) b R Tb ( H H ) r H h = () r H On above, Ps is the static atmospheric pressure, which is the pressure measured by BMP085. P b is sea level atmospheric pressure. H b is sea level height. R is the gas constant. g n is the standard acceleration of free fall. T b is the atmospheric temperature of corresponding layer, and r is the radius of the earth. The values of these parameters are as follows: P b =10135Pa, H b =0m, R=87.0587m /k s, g n =9.80665 m/s, T b =88 K=15, r=6356766 m. And, H denotes the height of the gravity potential, h denotes the geometric height, which is the altitude above sea level. Thus, the altitude h above sea level can be calculated through the measurement of atmospheric pressure Ps. The formula for the relationship between atmospheric pressure and altitude is provided in the BMP085 air pressure sensor data handbook. When altitude ranges from 0~11000 m, the altitude calculation formula is as fallow [3]: Altitude = 44330 1 p p 0 1 5.55 (3) 3

In the formula, the 'Altitude' represents the altitude above sea level which unit is meter, p is the compensated pressure value, p 0 is the standard atmospheric pressure, here p 0 =10135Pa. It can be known from equation (3) that the altitude increases by 8.43m for every 1 hpa decrease in atmospheric pressure. At the same time, it can be found that there is a nonlinear relationship between the atmospheric pressure and the actual altitude. If the microprocessor calculates using the formula directly, the program is more complex for taking up a larger memory space and affecting the operation speed. Therefore, an algorithm is needed to convert the nonlinear relationship between pressure and altitude into a linear relationship, which will be advantageous to calculate the actual height for the STM3F103RCT6 microprocessor [7]. Linear Interpolation Method for Calculating Altitude. The basic idea of linear interpolation is as fallow: since there are some change rule between two adjacent data points objectively in the static input/output data table of the system, a simple approximation function is constructed between adjacent known points, which value of the approximate function takes discrete data. Then, the function value of the measuring point is calculated according to the function value of the known point [7]. In this paper, the linear interpolation is used to calculate altitude. Assuming that the system input is x and x i <x<x i+1, the linear relationship between the static input/output of the measurement system can be approximated in this interval. That is, P(x)=α 0 +α 1 x, the point-slope form is follows: P( x) = y i y + x i+ 1 yi x i+ 1 i (4) The atmospheric Pressure values corresponding to the height of each section between -100 and 0000 m is given in the International Atmospheric Pressure Data Sheet. Here the height data point y i. is corresponding to the barometric pressure data point x i. P(x) is the altitude of the system to be measured. In practice, the first step is to determine the corresponding height range according to the sensor pressure value, then the height is calculated using the linear interpolation method to avoid the complexity of the power operation in a large extent [8]. Experimental Results and Analysis Experimental Test Results The following is a record of the height measure test of a building. The experiment was performed twice, and the two experiments were performed in the same time period. First, the height of the building roof and the altitude of the ground are measured according to the proposed algorithm. Then the relative height of the two heights is the height of the building. In actual measurement of altitude, the 10 groups of the measured data is recorded, here each record is the average value of the 30 measure data once every minutes. The results of the two experiments are shown in Table 1, in which the relative height and actual height of the building are given. The average height of the 10 sets of relative height data is 13.8m according to the data in Table 1. The actual height of the building is 16.9m through field measurement. Therefore, the relative height error of the system is 0.3 m, which meets the expected accuracy requirement. Table 1. Data records of test results. Times Target point Ground Relative height Actual height Measurement error 1 0.4 6.7 13.7 13.9 0. 0.1 6.6 13.5 13.9 0.4 3 0.0 6.5 13.5 13.9 0.4 4 19.9 6.4 13.5 13.9 0.4 5 0.1 6.5 13.6 13.9 0.3 6 0. 6.6 13.6 13.9 0.3 7 0.4 6.4 14.0 13.9 0.1 4

Error Analysis 8 0.5 6.4 14.1 13.9 0. 9 0.3 6.3 14.0 13.9 0.1 10 0.5 6.4 14.1 13.9 0. The average 0. 6.5 13.8 13.9 0.3 Although resulting in the calculated absolute altitude height is not stable and existence larger error because the atmospheric pressure could be affected by the weather and temperature changes, the relative height values calculated in this experiment can be used to counteract this error. Assuming that the building's altitude measurement is H 1, the actual value is H 1, and the absolute height noise error is h 1, the noise error due to environmental factors such as weather and temperature is h. whereas the altitude measurement of the ground is H, the actual value is H '. and the absolute height noise error is h. the noise error due to environmental factors such as weather is also h. Then the formula is given as follow: H1 = H1' + h1 + h, H = H ' + h + h Then the height of the building relative to the ground H is : H ( h h ) = H1 H = H1' H ' + 1 (6) The relative height noise error is ( h 1 - h ) from equation (6), so it can be known that part of the absolute height error due to weather and other environmental factors is offset. But when h 1 is positive maximum and h is negative maximum, the relative height noise error may reach twice of the original absolute height noise error. Summary The height measurement system based on barometric sensor BMP085 is proposed in this paper. By means of the relationship between the atmospheric pressure and the altitude, the linear interpolation method is used to calculate the altitude, which reduces the complexity of the calculation. The experimental results show that the relative height error of the system is 0.4m and the proposed measuring method has some effective applicability. The system has the advantages of small size, high precision, easy to carry, etc. It is suitable for installation in mobile equipment, and can be applied to many fields and has a wide application prospect such as military, industry and commerce. Acknowledgement This work was supported in part by Zhejiang public welfare technology application research project No.015C3303, 017 Zhejiang college students science and technology innovation activity plan. References [1] Han Pang. Design and Implementation of Walking Personal Navigator Based on MEMS Inertial Device, D. Heilongjiang Province: Harbin Engineering University, 01. [] Xirui Jiang. Design and Implementation of Positioning System Based on GPS and GSM/GPRS, D. Institute of Computing Technology Chinese Academy of Sciences, 006. [3] BOSCH Sensortec. BMP085 Digital Pressure Sensor Data Sheet, EB/OL, [016-08-10]. http://www.bosch-sensortec.com. [4] Juncai Wang, Fuping Wang, Ruifeng Hou, et al. Design of a portable altitude measurement system based on BMP085, J. Sensors and Microsystem, 011, 30(1): 13~15. (5) 5

[5] Boyu Meng, STM3 Self-study Notes. Beijing: Beijing University of Aeronautics and Astronautics Press. 01,. [6] Guofu Qu. Design of High Precision Intelligent Height Sensor, J. Measurement and Testing Technology, 003, (6): 4~6. [7] Wei Meng. Study on Data Processing and Algorithms of Height Measurements, D. Xian: Northwestern Polytechnical University, 005. [8] Skyteacher. Design of Digital electronic altimeter based on linear interpolation algorithm and BMP085 barometric pressure sensor, EB/OL, [016-09-06]. http://www.docin.com/p-471155660. html. 6