Giter Club home page Giter Club logo

bmp180's Introduction

license-badge version stars hit-count github-issues

Bosch BMP180 & BMP085

This is an Arduino library for Bosch BMP180 & BMP085 barometric pressure & temperature sensor

  • Supply voltage: 1.8v - 3.6v
  • Range: 30,000Pa..110,000Pa at 0°C..+65°C
  • Typ. resolution: 1Pa / 0.1°C
  • Typ. accuracy: ±100Pa / ±1.0°C
  • Typ. relative accuracy: ±12Pa / xx°C

Supports all* sensors features & more:

  • Read & calculate compensated temperature**, in °C
  • Read & calculate compensated barometric pressure**, in Pa
  • Reset
  • Read chip ID
  • Read chip FW version
  • Calculate sea level pressure, in Pa
  • Convert barometric pressure to hPa, mmHg, inHg
  • Convert sea level pressure to hPa, mmHg, inHg
  • Simple forecast: thunderstorm, rain, cloudy, partly cloudy, clear, sunny

Important recommendations:

  • Measurement of atmospheric pressure depends on the ambient temperature. Avoid placing the BMP180 in front of a heat source.
  • Do not expose the BMP180 to airflow from a fan, as this may lead to unstable measurements.
  • The sensor is sensitive to moisture and is not recommended for direct contact with water.
  • BMP180 is sensitive to light. Do not expose the sensor to direct light.
  • Do not exceed the supply voltage.

Tested on:

  • Arduino AVR
  • Arduino ESP8266
  • Arduino STM32

*EOC pin is not used, shows the end of conversion

*XCLR pin is not used, reset pin

**Library returns 255, if there is a communication error has occurred

bmp180's People

Contributors

enjoyneering avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

bmp180's Issues

Constantly decreasing pressure ?

Hello.
I am stumbling upon the follow issue :
I am measuring the pressure each 1 second, and seems like the pressure readings constantly dropping.
What could be the cause of this issue ?

What about the temperature - 260 ℃

Hello @enjoyneering
Use BMP180 breadboard GY-68 I2C adress 0x77
Датчик давления и температуры BMP180
Is the sensor faulty or is the library configured incorrectly?
Скриншот 12-07-2023 20 45 57
I use example.
Just changed terrain height from 115 to 150.
I tried to add an include to the sketch, but nothing changes.

#include <BMP180.h>

But then I saw that the main header file was already added to #include <BMP180advanced.h>
maybe some coefficients need to be adjusted, or is the sensor defective / fake?
Does this sensor have a built-in temperature sensor?
I used to think that it was not inside, but I saw the meaning and was surprised.
Added information
When I used another library temperature is corrected
Скриншот 12-07-2023 21 43 00
compensation calculation B5 function in this library is

int32_t BMP180::computeB5(int32_t UT)
{
  int32_t X1 = ((UT - (int32_t)_calCoeff.bmpAC6) * (int32_t)_calCoeff.bmpAC5) >> 15;
  int32_t X2 = ((int32_t)_calCoeff.bmpMC << 11) / (X1 + (int32_t)_calCoeff.bmpMD);

  return X1 + X2;
}

compensation calculation B5 function in this library is

long BMP180::calculateB5(long UT) {
	long X1 = (UT - (long)_AC6) * (long)_AC5 >> 15;
	long X2 = ((long)_MC << 11) / (X1 + (long)_MD);
	return X1 + X2;
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.