rwaldron/johnny-five

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

Open

#1 696 ouverte le 7 août 2020

Voir sur GitHub
 (2 commentaires) (0 réactions) (0 assignés)JavaScript (13 152 stars) (1 845 forks)batch import
BugClass:BarometerGood First IssueHardware Required

Description

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

Guide contributeur