SlideShare una empresa de Scribd logo
1 de 15
Descargar para leer sin conexión
www.researchdesignlab.com Page 1
BAROMETRIC DIGITAL
PRESSURE SENSOR BMP085
BAROMETRIC DIGITAL PRESSURE
SENSOR BMP085
www.researchdesignlab.com Page 2
BAROMETRIC DIGITAL
PRESSURE SENSOR BMP085
Table of Contents
OVERVIEW ................................................................................................................................... 3
INTRODUCTION ...................................................................................................................... 3
FEATURES ................................................................................................................................ 3
HARDWARE EXPLANATION ............................................................................................... 4
APPLICATIONS........................................................................................................................ 5
ARDUINO CODE ...................................................................................................................... 6
OUTPUT................................................................................................................................... 14
RELATED PRODUCTS .......................................................................................................... 15
www.researchdesignlab.com Page 3
BAROMETRIC DIGITAL
PRESSURE SENSOR BMP085
OVERVIEW
INTRODUCTION
This is a breakout board for the BMP085 high-precision, low-power digital barometer. The
BMP085 offers a measuring range of 300 to 1100 hPa with accuracy down to 0.03 hPa in ultra-
high resolution mode (that's 0.25m of altitude at sea level!) It's based on piezo-resistive
technology for high accuracy, ruggedness and long term stability. These come factory-calibrated,
with the calibration coefficients already stored in ROM. Writing your own code for it requires
some math.
This breadboard-friendly board breaks out every pin to a 6-pin 0.1" pitch header. VCC can be
from 1.8V to 3.6V; we typically run it on a clean, regulated 3.3V supply. The analog and digital
supplies (VDDD and VDDA) are tied to a single header pin, but are separately decoupled. It
connects to a microcontroller via I²C bus .
FEATURES
 Digital two wire (I²C, TWI, "Wire") interface
 Wide barometric pressure range
 Flexible supply voltage range (1.8V to 3.6V)
 Ultra-low power consumption
 Low noise measurements
 Factory-calibrated
 Includes temperature sensor
 Low-profile with a small footprint.
www.researchdesignlab.com Page 4
BAROMETRIC DIGITAL
PRESSURE SENSOR BMP085
HARDWARE EXPLANATION
'SDA', 'SCL', 'XCLR', 'EOC', 'GND,and'VCC.' VCC and GND are obviously the power
pins. SDA and SCL are the I2
C communication lines. SDA being where the data is transmitted
and SCL is the clock that keeps track of that data. The last two pins, XCLR and EOC, are a
couple extra functions of the BMP085. XCLR acts as a master reset. It's active-low, so if it's
pulled to GND it will reset the BMP085 and set its registers to their default state. EOC, standing
for "end of conversion", is a signal generated by the BMP085 that's triggered whenever a
pressure or temperature conversion has finished.
www.researchdesignlab.com Page 5
BAROMETRIC DIGITAL
PRESSURE SENSOR BMP085
BMP085 Pin Pin Function
VCC Power (1.8V-3.6V)
GND Ground
EOC End of conversion output
XCLR Master Clear (low-active)
SCL Serial Clock I/O
SDA Serial Data I/O
APPLICATIONS
1. Pressure sensing
2. Altitude sensing
3. Flow sensing
4. Level / depth sensing
www.researchdesignlab.com Page 6
BAROMETRIC DIGITAL
PRESSURE SENSOR BMP085
ARDUINO CODE
#include <Wire.h>
#define BMP085_ADDRESS 0x77 // I2C address of BMP085
const unsigned char OSS = 0; // Oversampling Setting
// Calibration values
int ac1;
int ac2;
int ac3;
unsigned int ac4;
unsigned int ac5;
unsigned int ac6;
int b1;
int b2;
int mb;
int mc;
int md;
// b5 is calculated in bmp085GetTemperature(...), this variable is also used in
bmp085GetPressure(...)
// so ...Temperature(...) must be called before ...Pressure(...).
long b5;
short temperature;
long pressure;
www.researchdesignlab.com Page 7
BAROMETRIC DIGITAL
PRESSURE SENSOR BMP085
void setup()
{
Serial.begin(9600);
Wire.begin();
bmp085Calibration();
}
void loop()
{
temperature = bmp085GetTemperature(bmp085ReadUT());
pressure = bmp085GetPressure(bmp085ReadUP());
Serial.print("Temperature: ");
Serial.print(temperature, DEC);
Serial.println(" *0.1 deg C");
Serial.print("Pressure: ");
Serial.print(pressure, DEC);
Serial.println(" Pa");
Serial.println();
delay(1000);
}
// Stores all of the bmp085's calibration values into global variables
// Calibration values are required to calculate temp and pressure
// This function should be called at the beginning of the program
www.researchdesignlab.com Page 8
BAROMETRIC DIGITAL
PRESSURE SENSOR BMP085
void bmp085Calibration()
{
ac1 = bmp085ReadInt(0xAA);
ac2 = bmp085ReadInt(0xAC);
ac3 = bmp085ReadInt(0xAE);
ac4 = bmp085ReadInt(0xB0);
ac5 = bmp085ReadInt(0xB2);
ac6 = bmp085ReadInt(0xB4);
b1 = bmp085ReadInt(0xB6);
b2 = bmp085ReadInt(0xB8);
mb = bmp085ReadInt(0xBA);
mc = bmp085ReadInt(0xBC);
md = bmp085ReadInt(0xBE);
}
// Calculate temperature given ut.
// Value returned will be in units of 0.1 deg C
short bmp085GetTemperature(unsigned int ut)
{
long x1, x2;
x1 = (((long)ut - (long)ac6)*(long)ac5) >> 15;
x2 = ((long)mc << 11)/(x1 + md);
b5 = x1 + x2;
return ((b5 + 8)>>4);
www.researchdesignlab.com Page 9
BAROMETRIC DIGITAL
PRESSURE SENSOR BMP085
}
// Calculate pressure given up
// calibration values must be known
// b5 is also required so bmp085GetTemperature(...) must be called first.
// Value returned will be pressure in units of Pa.
long bmp085GetPressure(unsigned long up)
{
long x1, x2, x3, b3, b6, p;
unsigned long b4, b7;
b6 = b5 - 4000;
// Calculate B3
x1 = (b2 * (b6 * b6)>>12)>>11;
x2 = (ac2 * b6)>>11;
x3 = x1 + x2;
b3 = (((((long)ac1)*4 + x3)<<OSS) + 2)>>2;
// Calculate B4
x1 = (ac3 * b6)>>13;
x2 = (b1 * ((b6 * b6)>>12))>>16;
x3 = ((x1 + x2) + 2)>>2;
b4 = (ac4 * (unsigned long)(x3 + 32768))>>15;
b7 = ((unsigned long)(up - b3) * (50000>>OSS));
if (b7 < 0x80000000)
p = (b7<<1)/b4;
www.researchdesignlab.com Page 10
BAROMETRIC DIGITAL
PRESSURE SENSOR BMP085
else
p = (b7/b4)<<1;
x1 = (p>>8) * (p>>8);
x1 = (x1 * 3038)>>16;
x2 = (-7357 * p)>>16;
p += (x1 + x2 + 3791)>>4;
return p;
}
// Read 1 byte from the BMP085 at 'address'
char bmp085Read(unsigned char address)
{
unsigned char data;
Wire.beginTransmission(BMP085_ADDRESS);
Wire.write(address);
Wire.endTransmission();
Wire.requestFrom(BMP085_ADDRESS, 1);
while(!Wire.available());
return Wire.read();
}
// Read 2 bytes from the BMP085
// First byte will be from 'address'
// Second byte will be from 'address'+1
int bmp085ReadInt(unsigned char address)
www.researchdesignlab.com Page 11
BAROMETRIC DIGITAL
PRESSURE SENSOR BMP085
{
unsigned char msb, lsb;
Wire.beginTransmission(BMP085_ADDRESS);
Wire.write(address);
Wire.endTransmission();
Wire.requestFrom(BMP085_ADDRESS, 2);
while(Wire.available()<2)
;
msb = Wire.read();
lsb = Wire.read();
return (int) msb<<8 | lsb;
}
// Read the uncompensated temperature value
unsigned int bmp085ReadUT()
{
unsigned int ut;
// Write 0x2E into Register 0xF4
// This requests a temperature reading
Wire.beginTransmission(BMP085_ADDRESS);
Wire.write(0xF4);
Wire.write(0x2E);
www.researchdesignlab.com Page 12
BAROMETRIC DIGITAL
PRESSURE SENSOR BMP085
Wire.endTransmission();
// Wait at least 4.5ms
delay(5);
// Read two bytes from registers 0xF6 and 0xF7
ut = bmp085ReadInt(0xF6);
return ut;
}
// Read the uncompensated pressure value
unsigned long bmp085ReadUP()
{
unsigned char msb, lsb, xlsb;
unsigned long up = 0;
// Write 0x34+(OSS<<6) into register 0xF4
// Request a pressure reading w/ oversampling setting
Wire.beginTransmission(BMP085_ADDRESS);
Wire.write(0xF4);
Wire.write(0x34 + (OSS<<6));
Wire.endTransmission();
// Wait for conversion, delay time dependent on OSS
delay(2 + (3<<OSS));
www.researchdesignlab.com Page 13
BAROMETRIC DIGITAL
PRESSURE SENSOR BMP085
// Read register 0xF6 (MSB), 0xF7 (LSB), and 0xF8 (XLSB)
Wire.beginTransmission(BMP085_ADDRESS);
Wire.write(0xF6);
Wire.endTransmission();
Wire.requestFrom(BMP085_ADDRESS, 3);
// Wait for data to become available
while(Wire.available() < 3) ;
msb = Wire.read();
lsb = Wire.read();
xlsb = Wire.read();
up = (((unsigned long) msb << 16) | ((unsigned long) lsb << 8) | (unsigned long) xlsb) >> (8-
OSS);
return up;
}
www.researchdesignlab.com Page 14
BAROMETRIC DIGITAL
PRESSURE SENSOR BMP085
OUTPUT
www.researchdesignlab.com Page 15
BAROMETRIC DIGITAL
PRESSURE SENSOR BMP085
RELATED PRODUCTS
PIC PROJECT BOARD PIC DEVELOPMENT BOARD
ATMEL PROJECT BOARD ATMEL DEVELOPMENT BOARD

Más contenido relacionado

La actualidad más candente

An Overview Study on I/O Expander with I2C and SMBus Interface
An Overview Study on I/O Expander with I2C and SMBus InterfaceAn Overview Study on I/O Expander with I2C and SMBus Interface
An Overview Study on I/O Expander with I2C and SMBus InterfacePremier Farnell
 
Interfacing with Atmega 16
Interfacing with Atmega 16Interfacing with Atmega 16
Interfacing with Atmega 16Ramadan Ramadan
 
Atmel 2486-8-bit-avr-microcontroller-atmega8 l-datasheet
Atmel 2486-8-bit-avr-microcontroller-atmega8 l-datasheetAtmel 2486-8-bit-avr-microcontroller-atmega8 l-datasheet
Atmel 2486-8-bit-avr-microcontroller-atmega8 l-datasheetsang2792
 
Micro Processor Mini Project,Electronic Quiz Table
Micro Processor Mini Project,Electronic Quiz TableMicro Processor Mini Project,Electronic Quiz Table
Micro Processor Mini Project,Electronic Quiz TableSubhashini Sundaram
 
Programming avr microcontroller digital i
Programming avr microcontroller digital iProgramming avr microcontroller digital i
Programming avr microcontroller digital iManas Mantri
 
Interfacing to the analog world
Interfacing to the analog worldInterfacing to the analog world
Interfacing to the analog worldIslam Samir
 
Analog to Digital converter in ARM
Analog to Digital converter in ARMAnalog to Digital converter in ARM
Analog to Digital converter in ARMAarav Soni
 
SC28C94: Quad Universal Asynchronous Receiver/Transmitter (QUART)
SC28C94: Quad Universal Asynchronous Receiver/Transmitter (QUART)SC28C94: Quad Universal Asynchronous Receiver/Transmitter (QUART)
SC28C94: Quad Universal Asynchronous Receiver/Transmitter (QUART)Premier Farnell
 

La actualidad más candente (18)

Chapter 5 counter
Chapter 5 counterChapter 5 counter
Chapter 5 counter
 
Dee2034 chapter 6 register
Dee2034 chapter 6 registerDee2034 chapter 6 register
Dee2034 chapter 6 register
 
An Overview Study on I/O Expander with I2C and SMBus Interface
An Overview Study on I/O Expander with I2C and SMBus InterfaceAn Overview Study on I/O Expander with I2C and SMBus Interface
An Overview Study on I/O Expander with I2C and SMBus Interface
 
atmega8
atmega8atmega8
atmega8
 
Interfacing with Atmega 16
Interfacing with Atmega 16Interfacing with Atmega 16
Interfacing with Atmega 16
 
Ece221 Ch7 Part1
Ece221 Ch7 Part1Ece221 Ch7 Part1
Ece221 Ch7 Part1
 
report
reportreport
report
 
Atmel 2486-8-bit-avr-microcontroller-atmega8 l-datasheet
Atmel 2486-8-bit-avr-microcontroller-atmega8 l-datasheetAtmel 2486-8-bit-avr-microcontroller-atmega8 l-datasheet
Atmel 2486-8-bit-avr-microcontroller-atmega8 l-datasheet
 
Micro Processor Mini Project,Electronic Quiz Table
Micro Processor Mini Project,Electronic Quiz TableMicro Processor Mini Project,Electronic Quiz Table
Micro Processor Mini Project,Electronic Quiz Table
 
Programming avr microcontroller digital i
Programming avr microcontroller digital iProgramming avr microcontroller digital i
Programming avr microcontroller digital i
 
Interfacing to the analog world
Interfacing to the analog worldInterfacing to the analog world
Interfacing to the analog world
 
Analog to Digital converter in ARM
Analog to Digital converter in ARMAnalog to Digital converter in ARM
Analog to Digital converter in ARM
 
Priority Encoder
Priority EncoderPriority Encoder
Priority Encoder
 
Alu description[1]
Alu description[1]Alu description[1]
Alu description[1]
 
8 Bit ALU
8 Bit ALU8 Bit ALU
8 Bit ALU
 
MSI Counters
MSI CountersMSI Counters
MSI Counters
 
SC28C94: Quad Universal Asynchronous Receiver/Transmitter (QUART)
SC28C94: Quad Universal Asynchronous Receiver/Transmitter (QUART)SC28C94: Quad Universal Asynchronous Receiver/Transmitter (QUART)
SC28C94: Quad Universal Asynchronous Receiver/Transmitter (QUART)
 
Chapter 6 register
Chapter 6 registerChapter 6 register
Chapter 6 register
 

Destacado

Barometric pressure
Barometric pressureBarometric pressure
Barometric pressurepobanzal
 
Integration guide accubar barometric pressure sensor manual
Integration guide accubar barometric pressure sensor manualIntegration guide accubar barometric pressure sensor manual
Integration guide accubar barometric pressure sensor manualwebadminjk
 
Pressure measuring devices
Pressure measuring devicesPressure measuring devices
Pressure measuring devicesGauravsingh963
 
Mavrk wireless weather station communication system
Mavrk wireless weather station communication systemMavrk wireless weather station communication system
Mavrk wireless weather station communication systemAntonio Mondragon
 
Accubar sdi 12 awos barometric pressure sensor 5600-0122
Accubar sdi 12 awos barometric pressure sensor 5600-0122Accubar sdi 12 awos barometric pressure sensor 5600-0122
Accubar sdi 12 awos barometric pressure sensor 5600-0122webadminjk
 
Wireless weather station(eee499.blogspot.com)
Wireless weather station(eee499.blogspot.com)Wireless weather station(eee499.blogspot.com)
Wireless weather station(eee499.blogspot.com)slmnsvn
 
Kevin Frank Anchor-Buoy Presentation - the short version
Kevin Frank Anchor-Buoy Presentation - the short versionKevin Frank Anchor-Buoy Presentation - the short version
Kevin Frank Anchor-Buoy Presentation - the short versionFrescatiStory
 
Physiological response to high barometric pressure
Physiological response to high barometric pressurePhysiological response to high barometric pressure
Physiological response to high barometric pressurephysiology mgmcri
 
Bourdon tube and manometer
Bourdon tube and manometerBourdon tube and manometer
Bourdon tube and manometerbuttex
 
temperature, pressure and flowrate measurement
temperature, pressure and flowrate measurementtemperature, pressure and flowrate measurement
temperature, pressure and flowrate measurementammaraziz1234
 
Presentation on “pressure, manometers,bourdon gauges and load cells
Presentation on “pressure, manometers,bourdon gauges and load cellsPresentation on “pressure, manometers,bourdon gauges and load cells
Presentation on “pressure, manometers,bourdon gauges and load cellsShaik Afzal
 
pressure measurement devices
pressure measurement devicespressure measurement devices
pressure measurement devicesNaveen Choudhary
 

Destacado (20)

Barometric pressure
Barometric pressureBarometric pressure
Barometric pressure
 
Integration guide accubar barometric pressure sensor manual
Integration guide accubar barometric pressure sensor manualIntegration guide accubar barometric pressure sensor manual
Integration guide accubar barometric pressure sensor manual
 
Pressure measuring devices
Pressure measuring devicesPressure measuring devices
Pressure measuring devices
 
Barometer pd 5
Barometer pd 5Barometer pd 5
Barometer pd 5
 
Mavrk wireless weather station communication system
Mavrk wireless weather station communication systemMavrk wireless weather station communication system
Mavrk wireless weather station communication system
 
Accubar sdi 12 awos barometric pressure sensor 5600-0122
Accubar sdi 12 awos barometric pressure sensor 5600-0122Accubar sdi 12 awos barometric pressure sensor 5600-0122
Accubar sdi 12 awos barometric pressure sensor 5600-0122
 
Wireless weather station(eee499.blogspot.com)
Wireless weather station(eee499.blogspot.com)Wireless weather station(eee499.blogspot.com)
Wireless weather station(eee499.blogspot.com)
 
Kevin Frank Anchor-Buoy Presentation - the short version
Kevin Frank Anchor-Buoy Presentation - the short versionKevin Frank Anchor-Buoy Presentation - the short version
Kevin Frank Anchor-Buoy Presentation - the short version
 
Physics
PhysicsPhysics
Physics
 
Physiological response to high barometric pressure
Physiological response to high barometric pressurePhysiological response to high barometric pressure
Physiological response to high barometric pressure
 
Enlarged leg manometer
Enlarged leg manometerEnlarged leg manometer
Enlarged leg manometer
 
Bourdon tube and manometer
Bourdon tube and manometerBourdon tube and manometer
Bourdon tube and manometer
 
Manometer
ManometerManometer
Manometer
 
Air pressure
Air pressureAir pressure
Air pressure
 
Pressure measurement
Pressure measurement Pressure measurement
Pressure measurement
 
temperature, pressure and flowrate measurement
temperature, pressure and flowrate measurementtemperature, pressure and flowrate measurement
temperature, pressure and flowrate measurement
 
Presentation on “pressure, manometers,bourdon gauges and load cells
Presentation on “pressure, manometers,bourdon gauges and load cellsPresentation on “pressure, manometers,bourdon gauges and load cells
Presentation on “pressure, manometers,bourdon gauges and load cells
 
Kepil (mooring buoy)
Kepil (mooring buoy)Kepil (mooring buoy)
Kepil (mooring buoy)
 
FIRE FIRGHTING APPLIANCES
FIRE FIRGHTING APPLIANCESFIRE FIRGHTING APPLIANCES
FIRE FIRGHTING APPLIANCES
 
pressure measurement devices
pressure measurement devicespressure measurement devices
pressure measurement devices
 

Similar a Barometric Digital pressure Sensor BMP085

What will be quantization step size in numbers and in voltage for th.pdf
What will be quantization step size in numbers and in voltage for th.pdfWhat will be quantization step size in numbers and in voltage for th.pdf
What will be quantization step size in numbers and in voltage for th.pdfSIGMATAX1
 
PowerMate15 Technical Specification
PowerMate15 Technical SpecificationPowerMate15 Technical Specification
PowerMate15 Technical SpecificationRimsky Cheng
 
Tutorial sensor bmp085
Tutorial sensor bmp085Tutorial sensor bmp085
Tutorial sensor bmp085Cosmico Mitico
 
Chp7 pic 16 f84 interfacing - copy
Chp7 pic 16 f84 interfacing - copyChp7 pic 16 f84 interfacing - copy
Chp7 pic 16 f84 interfacing - copymkazree
 
Introduction to embedded system
Introduction to embedded systemIntroduction to embedded system
Introduction to embedded systemNiteesh Srivastava
 
PM16 Technical Specification 20022013
PM16 Technical Specification 20022013PM16 Technical Specification 20022013
PM16 Technical Specification 20022013Rimsky Cheng
 
PROGRAMMING ADC and DAC-mbed.pdf
PROGRAMMING ADC and DAC-mbed.pdfPROGRAMMING ADC and DAC-mbed.pdf
PROGRAMMING ADC and DAC-mbed.pdfvidhyalakshmi153619
 
Cd00004444 understanding-and-minimising-adc-conversion-errors-stmicroelectronics
Cd00004444 understanding-and-minimising-adc-conversion-errors-stmicroelectronicsCd00004444 understanding-and-minimising-adc-conversion-errors-stmicroelectronics
Cd00004444 understanding-and-minimising-adc-conversion-errors-stmicroelectronicsvu CAO
 
Atmel microcontrollers-a tmega328-p_datasheet
Atmel microcontrollers-a tmega328-p_datasheetAtmel microcontrollers-a tmega328-p_datasheet
Atmel microcontrollers-a tmega328-p_datasheetAlexTronciu
 
8085 microprocessor Architecture and Pin description
8085 microprocessor Architecture and Pin description 8085 microprocessor Architecture and Pin description
8085 microprocessor Architecture and Pin description Vijay Kumar
 
Atmel 8159-8-bit-avr-microcontroller-a tmega8-a_datasheet
Atmel 8159-8-bit-avr-microcontroller-a tmega8-a_datasheetAtmel 8159-8-bit-avr-microcontroller-a tmega8-a_datasheet
Atmel 8159-8-bit-avr-microcontroller-a tmega8-a_datasheetArpan Saha
 
Microcontroller
MicrocontrollerMicrocontroller
MicrocontrollerSpitiq
 

Similar a Barometric Digital pressure Sensor BMP085 (20)

What will be quantization step size in numbers and in voltage for th.pdf
What will be quantization step size in numbers and in voltage for th.pdfWhat will be quantization step size in numbers and in voltage for th.pdf
What will be quantization step size in numbers and in voltage for th.pdf
 
PowerMate15 Technical Specification
PowerMate15 Technical SpecificationPowerMate15 Technical Specification
PowerMate15 Technical Specification
 
Atmega 8
Atmega 8Atmega 8
Atmega 8
 
Tutorial sensor bmp085
Tutorial sensor bmp085Tutorial sensor bmp085
Tutorial sensor bmp085
 
Chp7 pic 16 f84 interfacing - copy
Chp7 pic 16 f84 interfacing - copyChp7 pic 16 f84 interfacing - copy
Chp7 pic 16 f84 interfacing - copy
 
Introduction to embedded system
Introduction to embedded systemIntroduction to embedded system
Introduction to embedded system
 
8051 Presentation
8051 Presentation8051 Presentation
8051 Presentation
 
PM16 Technical Specification 20022013
PM16 Technical Specification 20022013PM16 Technical Specification 20022013
PM16 Technical Specification 20022013
 
PROGRAMMING ADC and DAC-mbed.pdf
PROGRAMMING ADC and DAC-mbed.pdfPROGRAMMING ADC and DAC-mbed.pdf
PROGRAMMING ADC and DAC-mbed.pdf
 
Cd00004444 understanding-and-minimising-adc-conversion-errors-stmicroelectronics
Cd00004444 understanding-and-minimising-adc-conversion-errors-stmicroelectronicsCd00004444 understanding-and-minimising-adc-conversion-errors-stmicroelectronics
Cd00004444 understanding-and-minimising-adc-conversion-errors-stmicroelectronics
 
Assembler4
Assembler4Assembler4
Assembler4
 
ATmega328p
ATmega328pATmega328p
ATmega328p
 
Introduction to PIC.pptx
Introduction to PIC.pptxIntroduction to PIC.pptx
Introduction to PIC.pptx
 
8253
82538253
8253
 
Atmel microcontrollers-a tmega328-p_datasheet
Atmel microcontrollers-a tmega328-p_datasheetAtmel microcontrollers-a tmega328-p_datasheet
Atmel microcontrollers-a tmega328-p_datasheet
 
8085 microprocessor Architecture and Pin description
8085 microprocessor Architecture and Pin description 8085 microprocessor Architecture and Pin description
8085 microprocessor Architecture and Pin description
 
Microprocessor systems 8085(2)
Microprocessor systems 8085(2)Microprocessor systems 8085(2)
Microprocessor systems 8085(2)
 
Atmel 8159-8-bit-avr-microcontroller-a tmega8-a_datasheet
Atmel 8159-8-bit-avr-microcontroller-a tmega8-a_datasheetAtmel 8159-8-bit-avr-microcontroller-a tmega8-a_datasheet
Atmel 8159-8-bit-avr-microcontroller-a tmega8-a_datasheet
 
A tmega8 l
A tmega8 lA tmega8 l
A tmega8 l
 
Microcontroller
MicrocontrollerMicrocontroller
Microcontroller
 

Más de Raghav Shetty

8 Channel Relay Board-Bluetooth
8 Channel Relay Board-Bluetooth8 Channel Relay Board-Bluetooth
8 Channel Relay Board-BluetoothRaghav Shetty
 
4 Channel Relay Board 5V-Bluetooth Compatible for Arduino
4 Channel Relay Board 5V-Bluetooth Compatible for Arduino4 Channel Relay Board 5V-Bluetooth Compatible for Arduino
4 Channel Relay Board 5V-Bluetooth Compatible for ArduinoRaghav Shetty
 
4 Channel Relay Board 12V-Compatible for Arduino
4 Channel Relay Board 12V-Compatible for Arduino4 Channel Relay Board 12V-Compatible for Arduino
4 Channel Relay Board 12V-Compatible for ArduinoRaghav Shetty
 
8 Channel Relay Board-Rs485
8 Channel Relay Board-Rs485 8 Channel Relay Board-Rs485
8 Channel Relay Board-Rs485 Raghav Shetty
 
Digitla Vibration Sensor
Digitla Vibration SensorDigitla Vibration Sensor
Digitla Vibration SensorRaghav Shetty
 
Digital Soil Moisture Sensor
Digital Soil Moisture SensorDigital Soil Moisture Sensor
Digital Soil Moisture SensorRaghav Shetty
 
Micro SD Memory Card Interface for 5V MCU
Micro SD Memory Card Interface for 5V MCUMicro SD Memory Card Interface for 5V MCU
Micro SD Memory Card Interface for 5V MCURaghav Shetty
 
Micro SD Memory Card Interface for 3.3V MCU
Micro SD Memory Card Interface for 3.3V MCUMicro SD Memory Card Interface for 3.3V MCU
Micro SD Memory Card Interface for 3.3V MCURaghav Shetty
 
Regulated Power Supply
Regulated Power Supply Regulated Power Supply
Regulated Power Supply Raghav Shetty
 
8 Channel Bi Directional Logic Level Converter
8 Channel Bi Directional Logic Level Converter8 Channel Bi Directional Logic Level Converter
8 Channel Bi Directional Logic Level ConverterRaghav Shetty
 
Plastic REED Float Switch
Plastic REED Float SwitchPlastic REED Float Switch
Plastic REED Float SwitchRaghav Shetty
 

Más de Raghav Shetty (20)

8 Channel Relay Board-Bluetooth
8 Channel Relay Board-Bluetooth8 Channel Relay Board-Bluetooth
8 Channel Relay Board-Bluetooth
 
4 Channel Relay Board 5V-Bluetooth Compatible for Arduino
4 Channel Relay Board 5V-Bluetooth Compatible for Arduino4 Channel Relay Board 5V-Bluetooth Compatible for Arduino
4 Channel Relay Board 5V-Bluetooth Compatible for Arduino
 
4 Channel Relay Board 12V-Compatible for Arduino
4 Channel Relay Board 12V-Compatible for Arduino4 Channel Relay Board 12V-Compatible for Arduino
4 Channel Relay Board 12V-Compatible for Arduino
 
8 Channel Relay Board-Rs485
8 Channel Relay Board-Rs485 8 Channel Relay Board-Rs485
8 Channel Relay Board-Rs485
 
Xbee X-CTU Software
Xbee X-CTU SoftwareXbee X-CTU Software
Xbee X-CTU Software
 
Digitla Vibration Sensor
Digitla Vibration SensorDigitla Vibration Sensor
Digitla Vibration Sensor
 
Thermal Printer
Thermal PrinterThermal Printer
Thermal Printer
 
Digital Soil Moisture Sensor
Digital Soil Moisture SensorDigital Soil Moisture Sensor
Digital Soil Moisture Sensor
 
Micro SD Memory Card Interface for 5V MCU
Micro SD Memory Card Interface for 5V MCUMicro SD Memory Card Interface for 5V MCU
Micro SD Memory Card Interface for 5V MCU
 
Micro SD Memory Card Interface for 3.3V MCU
Micro SD Memory Card Interface for 3.3V MCUMicro SD Memory Card Interface for 3.3V MCU
Micro SD Memory Card Interface for 3.3V MCU
 
Regulated Power Supply
Regulated Power Supply Regulated Power Supply
Regulated Power Supply
 
PIC Project Board
PIC Project BoardPIC Project Board
PIC Project Board
 
8 Channel Bi Directional Logic Level Converter
8 Channel Bi Directional Logic Level Converter8 Channel Bi Directional Logic Level Converter
8 Channel Bi Directional Logic Level Converter
 
LCD Keypad Shield
LCD Keypad ShieldLCD Keypad Shield
LCD Keypad Shield
 
L298 Motor Driver
L298 Motor DriverL298 Motor Driver
L298 Motor Driver
 
Joystick Shield
Joystick ShieldJoystick Shield
Joystick Shield
 
Force Sensor
Force SensorForce Sensor
Force Sensor
 
Plastic REED Float Switch
Plastic REED Float SwitchPlastic REED Float Switch
Plastic REED Float Switch
 
Flex Sensor
Flex SensorFlex Sensor
Flex Sensor
 
Serial EEPROM
Serial EEPROMSerial EEPROM
Serial EEPROM
 

Último

Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 

Último (20)

Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 

Barometric Digital pressure Sensor BMP085

  • 1. www.researchdesignlab.com Page 1 BAROMETRIC DIGITAL PRESSURE SENSOR BMP085 BAROMETRIC DIGITAL PRESSURE SENSOR BMP085
  • 2. www.researchdesignlab.com Page 2 BAROMETRIC DIGITAL PRESSURE SENSOR BMP085 Table of Contents OVERVIEW ................................................................................................................................... 3 INTRODUCTION ...................................................................................................................... 3 FEATURES ................................................................................................................................ 3 HARDWARE EXPLANATION ............................................................................................... 4 APPLICATIONS........................................................................................................................ 5 ARDUINO CODE ...................................................................................................................... 6 OUTPUT................................................................................................................................... 14 RELATED PRODUCTS .......................................................................................................... 15
  • 3. www.researchdesignlab.com Page 3 BAROMETRIC DIGITAL PRESSURE SENSOR BMP085 OVERVIEW INTRODUCTION This is a breakout board for the BMP085 high-precision, low-power digital barometer. The BMP085 offers a measuring range of 300 to 1100 hPa with accuracy down to 0.03 hPa in ultra- high resolution mode (that's 0.25m of altitude at sea level!) It's based on piezo-resistive technology for high accuracy, ruggedness and long term stability. These come factory-calibrated, with the calibration coefficients already stored in ROM. Writing your own code for it requires some math. This breadboard-friendly board breaks out every pin to a 6-pin 0.1" pitch header. VCC can be from 1.8V to 3.6V; we typically run it on a clean, regulated 3.3V supply. The analog and digital supplies (VDDD and VDDA) are tied to a single header pin, but are separately decoupled. It connects to a microcontroller via I²C bus . FEATURES  Digital two wire (I²C, TWI, "Wire") interface  Wide barometric pressure range  Flexible supply voltage range (1.8V to 3.6V)  Ultra-low power consumption  Low noise measurements  Factory-calibrated  Includes temperature sensor  Low-profile with a small footprint.
  • 4. www.researchdesignlab.com Page 4 BAROMETRIC DIGITAL PRESSURE SENSOR BMP085 HARDWARE EXPLANATION 'SDA', 'SCL', 'XCLR', 'EOC', 'GND,and'VCC.' VCC and GND are obviously the power pins. SDA and SCL are the I2 C communication lines. SDA being where the data is transmitted and SCL is the clock that keeps track of that data. The last two pins, XCLR and EOC, are a couple extra functions of the BMP085. XCLR acts as a master reset. It's active-low, so if it's pulled to GND it will reset the BMP085 and set its registers to their default state. EOC, standing for "end of conversion", is a signal generated by the BMP085 that's triggered whenever a pressure or temperature conversion has finished.
  • 5. www.researchdesignlab.com Page 5 BAROMETRIC DIGITAL PRESSURE SENSOR BMP085 BMP085 Pin Pin Function VCC Power (1.8V-3.6V) GND Ground EOC End of conversion output XCLR Master Clear (low-active) SCL Serial Clock I/O SDA Serial Data I/O APPLICATIONS 1. Pressure sensing 2. Altitude sensing 3. Flow sensing 4. Level / depth sensing
  • 6. www.researchdesignlab.com Page 6 BAROMETRIC DIGITAL PRESSURE SENSOR BMP085 ARDUINO CODE #include <Wire.h> #define BMP085_ADDRESS 0x77 // I2C address of BMP085 const unsigned char OSS = 0; // Oversampling Setting // Calibration values int ac1; int ac2; int ac3; unsigned int ac4; unsigned int ac5; unsigned int ac6; int b1; int b2; int mb; int mc; int md; // b5 is calculated in bmp085GetTemperature(...), this variable is also used in bmp085GetPressure(...) // so ...Temperature(...) must be called before ...Pressure(...). long b5; short temperature; long pressure;
  • 7. www.researchdesignlab.com Page 7 BAROMETRIC DIGITAL PRESSURE SENSOR BMP085 void setup() { Serial.begin(9600); Wire.begin(); bmp085Calibration(); } void loop() { temperature = bmp085GetTemperature(bmp085ReadUT()); pressure = bmp085GetPressure(bmp085ReadUP()); Serial.print("Temperature: "); Serial.print(temperature, DEC); Serial.println(" *0.1 deg C"); Serial.print("Pressure: "); Serial.print(pressure, DEC); Serial.println(" Pa"); Serial.println(); delay(1000); } // Stores all of the bmp085's calibration values into global variables // Calibration values are required to calculate temp and pressure // This function should be called at the beginning of the program
  • 8. www.researchdesignlab.com Page 8 BAROMETRIC DIGITAL PRESSURE SENSOR BMP085 void bmp085Calibration() { ac1 = bmp085ReadInt(0xAA); ac2 = bmp085ReadInt(0xAC); ac3 = bmp085ReadInt(0xAE); ac4 = bmp085ReadInt(0xB0); ac5 = bmp085ReadInt(0xB2); ac6 = bmp085ReadInt(0xB4); b1 = bmp085ReadInt(0xB6); b2 = bmp085ReadInt(0xB8); mb = bmp085ReadInt(0xBA); mc = bmp085ReadInt(0xBC); md = bmp085ReadInt(0xBE); } // Calculate temperature given ut. // Value returned will be in units of 0.1 deg C short bmp085GetTemperature(unsigned int ut) { long x1, x2; x1 = (((long)ut - (long)ac6)*(long)ac5) >> 15; x2 = ((long)mc << 11)/(x1 + md); b5 = x1 + x2; return ((b5 + 8)>>4);
  • 9. www.researchdesignlab.com Page 9 BAROMETRIC DIGITAL PRESSURE SENSOR BMP085 } // Calculate pressure given up // calibration values must be known // b5 is also required so bmp085GetTemperature(...) must be called first. // Value returned will be pressure in units of Pa. long bmp085GetPressure(unsigned long up) { long x1, x2, x3, b3, b6, p; unsigned long b4, b7; b6 = b5 - 4000; // Calculate B3 x1 = (b2 * (b6 * b6)>>12)>>11; x2 = (ac2 * b6)>>11; x3 = x1 + x2; b3 = (((((long)ac1)*4 + x3)<<OSS) + 2)>>2; // Calculate B4 x1 = (ac3 * b6)>>13; x2 = (b1 * ((b6 * b6)>>12))>>16; x3 = ((x1 + x2) + 2)>>2; b4 = (ac4 * (unsigned long)(x3 + 32768))>>15; b7 = ((unsigned long)(up - b3) * (50000>>OSS)); if (b7 < 0x80000000) p = (b7<<1)/b4;
  • 10. www.researchdesignlab.com Page 10 BAROMETRIC DIGITAL PRESSURE SENSOR BMP085 else p = (b7/b4)<<1; x1 = (p>>8) * (p>>8); x1 = (x1 * 3038)>>16; x2 = (-7357 * p)>>16; p += (x1 + x2 + 3791)>>4; return p; } // Read 1 byte from the BMP085 at 'address' char bmp085Read(unsigned char address) { unsigned char data; Wire.beginTransmission(BMP085_ADDRESS); Wire.write(address); Wire.endTransmission(); Wire.requestFrom(BMP085_ADDRESS, 1); while(!Wire.available()); return Wire.read(); } // Read 2 bytes from the BMP085 // First byte will be from 'address' // Second byte will be from 'address'+1 int bmp085ReadInt(unsigned char address)
  • 11. www.researchdesignlab.com Page 11 BAROMETRIC DIGITAL PRESSURE SENSOR BMP085 { unsigned char msb, lsb; Wire.beginTransmission(BMP085_ADDRESS); Wire.write(address); Wire.endTransmission(); Wire.requestFrom(BMP085_ADDRESS, 2); while(Wire.available()<2) ; msb = Wire.read(); lsb = Wire.read(); return (int) msb<<8 | lsb; } // Read the uncompensated temperature value unsigned int bmp085ReadUT() { unsigned int ut; // Write 0x2E into Register 0xF4 // This requests a temperature reading Wire.beginTransmission(BMP085_ADDRESS); Wire.write(0xF4); Wire.write(0x2E);
  • 12. www.researchdesignlab.com Page 12 BAROMETRIC DIGITAL PRESSURE SENSOR BMP085 Wire.endTransmission(); // Wait at least 4.5ms delay(5); // Read two bytes from registers 0xF6 and 0xF7 ut = bmp085ReadInt(0xF6); return ut; } // Read the uncompensated pressure value unsigned long bmp085ReadUP() { unsigned char msb, lsb, xlsb; unsigned long up = 0; // Write 0x34+(OSS<<6) into register 0xF4 // Request a pressure reading w/ oversampling setting Wire.beginTransmission(BMP085_ADDRESS); Wire.write(0xF4); Wire.write(0x34 + (OSS<<6)); Wire.endTransmission(); // Wait for conversion, delay time dependent on OSS delay(2 + (3<<OSS));
  • 13. www.researchdesignlab.com Page 13 BAROMETRIC DIGITAL PRESSURE SENSOR BMP085 // Read register 0xF6 (MSB), 0xF7 (LSB), and 0xF8 (XLSB) Wire.beginTransmission(BMP085_ADDRESS); Wire.write(0xF6); Wire.endTransmission(); Wire.requestFrom(BMP085_ADDRESS, 3); // Wait for data to become available while(Wire.available() < 3) ; msb = Wire.read(); lsb = Wire.read(); xlsb = Wire.read(); up = (((unsigned long) msb << 16) | ((unsigned long) lsb << 8) | (unsigned long) xlsb) >> (8- OSS); return up; }
  • 14. www.researchdesignlab.com Page 14 BAROMETRIC DIGITAL PRESSURE SENSOR BMP085 OUTPUT
  • 15. www.researchdesignlab.com Page 15 BAROMETRIC DIGITAL PRESSURE SENSOR BMP085 RELATED PRODUCTS PIC PROJECT BOARD PIC DEVELOPMENT BOARD ATMEL PROJECT BOARD ATMEL DEVELOPMENT BOARD