rwaldron/johnny-five
View on GitHubBMP180 Temperature (and consequently Pressure) Error ( > about 40 °C )
Open
#1696 opened on Aug 7, 2020
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