Pressure Sensor



  • @hek when I run the pressure sensor on arduino mini I just get rubbish on the serial monitor why will this be the case? When I compile the sketch it gives me a warning about low memory and this can cause stability problems. However the sketch still compiles. Do you think this will be the problem?

    If I run the example Adafruit_BMP085 sketch the sensor do work.


  • Admin

    Is it the original example sketch?

    Try turning off DEBUG in MyConfig.h an recompile/upload to see if this improves the memory situation..



  • @hek thanks for that it work. Where do I put my local barometric pressure into the sketch?


  • Admin

    @Francois said:

    Where do I put my local barometric pressure into the sketch?

    To get altitude or what do you mean?



  • @hek as per the spec sheet of the BMP085 you have to put your local altitude in.


  • Hero Member

    @hek in fact the sensor car report the altitude, but nothing is meant for that in the 1.4 lib today


  • Admin

    @Francois

    Ok, you'll have to look at the library-api to fine-tune this.


  • Hero Member

    Regarding the low memory warning - at the time of the compile, sometimes the compiler does not know exactly how much memory will be needed by the program when it runs, as it doesn't know how deeply you may nest function calls or how much heap memory your code or the libraries you use may request. But if there's not much memory left for heap and stack, it will warn your about that even if it still compiles.


Log in to reply
 

Looks like your connection to MySensors Forum was lost, please wait while we try to reconnect.