rwaldron/johnny-five

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

Open

#1.696 geöffnet am 7. Aug. 2020

Auf GitHub ansehen
 (2 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (13.152 Stars) (1.845 Forks)batch import
BugClass:BarometerGood First IssueHardware Required

Beschreibung

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

Contributor Guide