Skip to content
This repository has been archived by the owner on Sep 12, 2019. It is now read-only.

bmp180 pressure only sea level ? #2

Open
alienos opened this issue Feb 2, 2015 · 2 comments
Open

bmp180 pressure only sea level ? #2

alienos opened this issue Feb 2, 2015 · 2 comments

Comments

@alienos
Copy link

alienos commented Feb 2, 2015

How to set the altitude and the real pressure?
I use nodemcu latest.bin error not enough memory
nodemcu_20150123.bin working fine.
Sorry for my english

@javieryanez
Copy link
Owner

Hi,

the read pressure is the absolute pressure. In the datasheet of the bmp180 (https://www.adafruit.com/datasheets/BST-BMP180-DS000-09.pdf) is indicated how calculate the relative pressure (sea level) and the altitude. But this needs floating point, and the floating point support in NodeMcu has only a few days. You can try calculate it using the information of the datasheet.

I don't test the module with the last version. Is very possible that with the introduction of the floating point the module fails. I have not tested yet. I have already corrected the module to DHT22. I have to find time to review the BMP180 module.

Sorry for my english ;)

@jtheires
Copy link

Javier,
Thanks for posting this Lua code for the BMP180.
I'm new to Lua script - are there any parts of the bmp180.lua source code which need to be modified for my particular implementation? Do you have a tutorial or other "how-to" information that may help me get started?
I wish to connect my 8266 esp-01 module to my bmp180 (no Arduino) and send temp/press values to thingspeak.
Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants