Anyone used the Bosch BMP085 I2C baro sensor yet ?


Closed Thread
Results 1 to 40 of 52

Hybrid View

  1. #1
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default

    Sorry I missed the RAM part (even though it was in capitals...)

    If my memory serves me correctly, I think the only way to test your ram space is to create a large dummy array, and see how large you can make it. If you get an error, make it smaller, to see what you have left. Yes, it would be nice if MCS counted your RAM

  2. #2
    Join Date
    May 2010
    Posts
    3


    Did you find this post helpful? Yes | No

    Default Help to program BMP085 in assembler

    Hi... I'm new in this forum and I need your help about how to manage data from BMP085 in assembler... I need test it in a PIC16f84...

  3. #3
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by rore85 View Post
    Hi... I'm new in this forum and I need your help about how to manage data from BMP085 in assembler... I need test it in a PIC16f84...
    That sounds a bit like torture for most of us. The math is hard enough using the longs feature in PBP, and a more robust PIC18F device. You might try the Microchip forum, as they are into that kind of thing (assembly). Likely they will help, but not do it for you.

    Good luck,

    Walter

  4. #4
    Join Date
    Nov 2008
    Posts
    96


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by rore85 View Post
    Hi... I'm new in this forum and I need your help about how to manage data from BMP085 in assembler... I need test it in a PIC16f84...
    Hi, If you can get a PIC16F84 to read and process the data from a BMP085 into true pressure and temperature I'll eat my shorts !!

    My program has hit 5.5Kb in code size on an 18F PIC. Sure I know assembly is much much tighter, but by that much ?

    I will soon post (I hope so) the complete code to use this sensor on a PIC18FXXXX device with PBP. You can use the ASM file I guess to see how blocks of it are done in assembly.
    Cheers,
    Martin

  5. #5
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Default

    Hi, Sneezzy

    I Think , with little trickery, the 16F84 could fit ...

    let's think ...

    IF you calculate the linearisation OUTSIDE the Pic, and trunk it to the PRECISION claimed ( not the resolution, eh ...)
    ...

    I'm sure a lookup table, or a couple of " ax+b " regressions could be used.

    But that implies ... the sensor and the PIC are married for life !!!

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  6. #6
    Join Date
    Nov 2008
    Posts
    96


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Acetronics View Post
    Hi, Sneezzy

    I Think , with little trickery, the 16F84 could fit ...

    let's think ...

    IF you calculate the linearisation OUTSIDE the Pic, and trunk it to the PRECISION claimed ( not the resolution, eh ...)
    ...

    I'm sure a lookup table, or a couple of " ax+b " regressions could be used.

    But that implies ... the sensor and the PIC are married for life !!!

    Alain
    I did think of that early on. I think you need to map all possible pressure readings (at your needed precision) across your range, but then also map for every possible temperature change across all pressure readings in that range. I think it very quickly becomes an impressive size lookup table yes ?
    I suspect my shorts are safe, but if the poster above can do it I'll listen :-)

  7. #7
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Default

    Hi, Martin

    I had a look to your excel sheet and , of course, got THE problem ...

    solution was to unlock the sheet , select the "F16" place and click on " place a formula " ( Fx button ) ...

    it automatically corrects the written formula and then it rolls fine !!!

    Are the Calibration values in the sheet those of YOUR Sensor ???

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  8. #8
    Join Date
    Nov 2008
    Posts
    96


    Did you find this post helpful? Yes | No

    Smile

    Quote Originally Posted by Acetronics View Post
    Hi, Martin

    I had a look to your excel sheet and , of course, got THE problem ...

    solution was to unlock the sheet , select the "F16" place and click on " place a formula " ( Fx button ) ...

    it automatically corrects the written formula and then it rolls fine !!!

    Are the Calibration values in the sheet those of YOUR Sensor ???

    Alain
    Hi Alain, I suspect my friend didn't tell me that so I couldn't fiddle with his sheet

    Yes, that indeed is the calibration data out of my BMP085 sensor.

    Good news.
    Tonight I finished debugging the pressure calculations and got a correct result in Pascals. Boy it took some doing didn't it. :-)
    Tomorrow I'll tidy up the code and post the whole job after doing a little field testing.

    Now I need to find a sample of a 'good' way to do a look-up table to convert pressure to altitude without using Logs (as I understand is required)...

    Martin

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts