The Wayback Machine - https://web.archive.org/web/20220411114315/https://github.com/rwaldron/johnny-five/issues/1696
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

BMP180 Temperature (and consequently Pressure) Error ( > about 40 °C ) #1696

Open
averelon opened this issue Aug 7, 2020 · 2 comments
Open

BMP180 Temperature (and consequently Pressure) Error ( > about 40 °C ) #1696

averelon opened this issue Aug 7, 2020 · 2 comments

Comments

@averelon
Copy link

@averelon averelon commented Aug 7, 2020

The uncompensated temperature of the BMP180 is incorrectly converted to a 16-bit signed value, instead of a 32-bit signed value (long). Since the data is 16-bits wide and can therefore not be negative, the easy fix would be to do the following:

sip.js(1128): uncompensated = uint16(data[0], data[1]);

Please see page 15 of the manual of the BMP180 chip:
https://ae-bst.resource.bosch.com/media/_tech/media/datasheets/BST-BMP180-DS000.pdf

@dtex
Copy link
Collaborator

@dtex dtex commented Aug 22, 2020

It appears @averlon is spot on, but I don't have the hardware to confirm. This is a great first issue for anyone who has access to a BMP180.

@Godplayer68
Copy link

@Godplayer68 Godplayer68 commented Oct 21, 2021

I want to create a utopia
with the BMP180

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment