Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new BMP085 Module always the same result #1094

Closed
willwach opened this issue Feb 28, 2016 · 3 comments
Closed

new BMP085 Module always the same result #1094

willwach opened this issue Feb 28, 2016 · 3 comments

Comments

@willwach
Copy link

I'm trying to use the BMP085-Module from the following page:
http://nodemcu.readthedocs.org/en/dev/en/modules/bmp085/

sda on 1, scl on2

My code:
function readBmp(sdaPin, sclPin)
bmp085.init(sdaPin, sclPin)

local t = bmp085.temperature(1)
print(string.format("Temperature: %s.%s degrees C", t / 10, t % 10))

local p = bmp085.pressure(1)
print(string.format("Pressure: %s.%s mbar", p / 100, p % 100))

end

It always leads to:
Temperature: -13.2 degrees C
Pressure: -306.27 mbar

If I remove the BMP085 Module, its the same.
What am I doing wrong?

Or is this the also the result if the module is broken?

Would be nice if someone could help me.

@dvv
Copy link
Contributor

dvv commented Feb 28, 2016

Seems like I2C gives constant 0xFF values. Had such problem with one module.

@willwach
Copy link
Author

Could you tell me, how the module should react if nothing is connected to i2c?
Maybe its the default behavier if nothing is connected to answer with these values?

@TerryE
Copy link
Collaborator

TerryE commented Feb 29, 2016

See #719

@TerryE TerryE closed this as completed Feb 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants