Code Monkey home page Code Monkey logo

bmp180_breakout's Introduction

NOTE: This product has been retired from our catalog. If you are looking for more up-to-date info, please check out some of these resources to see how other users are still hacking and improving on this product.

BMP180_Breakout

Breakout board and example code for the Bosch BMP180 barometric pressure sensor.

BMP180 Breakout

Product page: www.sparkfun.com/products/11824

Datasheet: github.com/sparkfun/BMP180_Breakout/blob/master/BMP180 Datasheet V2.5.pdf

Github repository: github.com/sparkfun/BMP180_Breakout

Arduino library installation:

This archive contains an Arduino library and example sketch showing how to use this sensor. The library must be installed onto your computer in order for the example code to work correctly.

If you haven't, install the free Arduino IDE (Integrated Development Environment), available at www.arduino.cc. This code was written using Arduino version 1.0.5. and updated to be used with the Arduino library manager of version 1.6.3.

To install without the manager, download the Arduino folder then use the Arduino IDE to add it. From the IDE, go Sketch->Include Library->"Add .ZIP Library", then choose the Arduino folder that was downloaded. The IDE will pick proper names from the library.properties file and put the libraries in your user sketch folder.

Teensy library installation:

A. Faruk was kind enough to create a version of this library for the Teensy microcontroller family. You can find information on installation and use of this library at: https://github.com/sparkfun/BMP180_Breakout/tree/master/Libraries/Teensy

Running the example sketch:

  1. Connect the BMP180 breakout board to your Arduino. You can solder wires, use jumper wires and headers, etc.

    "-" (GND) to GND
    "+" (VDD) to 3.3V

    (WARNING: do not connect "+" to 5V or the sensor will be damaged!)

    You will also need to connect the I2C pins (SCL and SDA) to your Arduino. These pins are different on different Arduino models:

    Any Arduino SDA  SCL
    Uno, Redboard, Pro/Mini  A4 A5
    Mega2560, Due 20 21
    Leonardo, Pro/Micro 2 3

    Leave the IO (VDDIO) pin unconnected. This pin is for connecting the BMP180 to systems with lower logic levels such as 1.8V.

  2. Connect your Arduino to your computer.

  3. Start the Arduino IDE. Select the proper COM port and board type.

  4. In the Arduino IDE, go to the File menu, and down to Examples/SFE_BMP180/SFE_BMP180_example. If you do not see this item, you likely did not install the library properly. See above.

  5. Upload the sketch to your Arduino.

  6. Open the Serial Monitor window (magnifying glass icon un upper right of IDE).

  7. Set the Serial Monitor to 9600 baud (menu in bottom right).

You should now be seeing pressure measurements in the Serial Monitor window. If you see errors, you may not have connected the BMP180 Breakout Board to your Arduino properly. See step 1 above.

If you have questions, don't hesistate to contact us at [email protected].

Have fun! Your friends at SparkFun.

License Informatiom

Software and hardware license information can be found at: https://github.com/sparkfun/BMP180_Breakout/blob/master/LICENSE.md

Authors

  • Mike Grusin, SparkFun Electronics

Acknowledgements

Changelog

  • Release V_1.1.0

    • Restructred for arduino IDE
    • Pulled in library
  • hardware V10 (release)

    • Minor updates
    • Library fork from SFE_BMP085
  • hardware V02 (proto)

    • Rearranged header: put VDD/GND/SDA/SCL in "standard" order
    • I2C pullups to VDDIO
  • hardware V01 (review)

bmp180_breakout's People

Contributors

altaohms avatar grahldg avatar marshalltaylorsfe avatar mhord avatar nkolban avatar patrice-sparkfun avatar robert-hunke avatar unalfaruk avatar victordiges avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bmp180_breakout's Issues

Possible error in ReadInt

The code is:

char SFE_BMP180::readInt(char address, int &value)
// Read a signed integer (two bytes) from device
// address: register to start reading (plus subsequent register)
// value: external variable to store data (function modifies value)
{
unsigned char data[2];

    data[0] = address;
    if (readBytes(data,2))
    {
            value = (((int)data[0]<<8)|(int)data[1]);
            //if (*value & 0x8000) *value |= 0xFFFF0000; // sign extend if negative
            return(1);
    }
    value = 0;
    return(0);

}

I believe the line writing value should be

value = (int) ((data[0] << 8) | (data[1]));

Certainly the cast ((int) data[1]) is wrong -- if the msb of data[1] is 1, then this cast will sign extend which you don't want.

Not loading library

I think you should include a note for anyone downloading the zip file that you must go to the Library/Arduino directory and only copy the 6 files there (examples etc )to leave under SFE_BMP180 otherwise its a ballsup with all the other stuff you have in there!

Can you send the data from 1 BMP180 sensor to 2 different Arduino Unos?

Can you send the data from 1 BMP180 sensor to 2 different Arduino Unos? This is so I can simulate the data in 2 different ways using 2 different serial ports. There would only by 1 3.3V power supply and the grounds would all be connected together properly, but the SDA and SCL pins would be connected to both Arduino Unos on the same pins (A4 & A5). I'm not sure if it's possible, but I thought I would ask. Thank you!

how to add 2 bmp180 sensors to one arduino board?

Hi,

I need to add 2 BMP180 pressure sensor to one arduino board.
sensors will place in different pressure conditions.
Would you please tell me which changes should be done in the program to read data from both simultaneously?
in case of hardware, to which pins the second one should be connected?
I connected 1 sensor and read the measurement.

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.