Shop OBEX P1 Docs P2 Docs Learn Events
Bmp085 — Parallax Forums

Bmp085

ThricThric Posts: 109
edited 2012-04-13 09:33 in Propeller 1
Hi all,
I'v been trying to hunt for an object for the bmp085·pressure sensor. Anyone that knows one out there? I would·aslo·like to know whether I need the xclr pin connected or not.

Thanks

Comments

  • TimmooreTimmoore Posts: 1,031
    edited 2010-06-28 15:30
    Heres the object I use and i dont connect xclr.
  • ThricThric Posts: 109
    edited 2010-06-28 16:13
    Thanks alot, Thats exactly what I was looking for!
  • TimmooreTimmoore Posts: 1,031
    edited 2010-06-28 16:39
    Some comments, it uses my own version of basic_i2c_driver, so I have attached a test program archive with test code and all related objects.

    There are 2 calls to get data

    GetPressureTemp this waits until it can get the data

    GetPressureTempA you keep calling this until it returns true. When it returns false, its triggered the sensor but doesn't have the data, when it returns true it has data. The test code uses this call.

    The test code uses GetPressureTempA. The test code tests several other sensors as well but you can ignore that. Also it uses 10Mhz clock with pll8x so dont forget to change that and the i2c bus is not on pins 28/29 so you would need to change that.
  • shanghai_foolshanghai_fool Posts: 149
    edited 2012-01-15 10:24
    Many thanks Tim for your object. I had been fighting all night with the calibration data and the many formulas you have to use to get valid data from this device. It sure is a lot more difficult than the SCP1000. Sparkfun has retired that one. I will also look fot more info about your quad on the forum as I am interested in a similar project.
    Donald
  • GarethGareth Posts: 278
    edited 2012-04-13 09:33
    Timmoore wrote: »
    Some comments, it uses my own version of basic_i2c_driver, so I have attached a test program archive with test code and all related objects.

    There are 2 calls to get data

    GetPressureTemp this waits until it can get the data

    GetPressureTempA you keep calling this until it returns true. When it returns false, its triggered the sensor but doesn't have the data, when it returns true it has data. The test code uses this call.

    The test code uses GetPressureTempA. The test code tests several other sensors as well but you can ignore that. Also it uses 10Mhz clock with pll8x so dont forget to change that and the i2c bus is not on pins 28/29 so you would need to change that.

    When i call GetPressureTemp or GetPressureTempA it returns the same values for both - i would expect different values ie one the raw pressure reading and the other the actual corrected pressure (with temperature compensation )
    I am assuming it returns the value for both variants in the @TempV, @PressureV am i correct ?
    Any help or pointers greatly appreciated.
    Thanks Timmoore (for posting the quadtest1) and Thric
Sign In or Register to comment.