rwaldron/johnny-five
GitHub で見るBMP180 Temperature (and consequently Pressure) Error ( > about 40 °C )
Open
#1,696 opened on 2020年8月7日
BugClass:BarometerGood First IssueHardware Required
説明
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