Bar30 pressure sensor wrong but repeatable readings

Jeremy,

I took a look at the Python driver and it looks okay. The calculations all check out fine. There are a few differences that are good to note:

  1. They are using the lowest oversampling rate (256 samples instead of 8192), so the resolution will be much lower.

  2. They have a very long delay after requesting data (500 milliseconds). The maximum data reading time is only 20 milliseconds so this is unnecessarily long.

  3. They are not checking the checksum (CRC) so theoretically the calibration data could be coming in incorrectly. We aren’t checking it in our Arduino library either, but if the data was wrong that could indicate a communication issue.

We’ve very few cases of these sensors reporting incorrect data (possibly no cases). We also test each one after building them and verify that the pressure reading is accurate, so this sensor definitely reported correctly with the Arduino library when it was first tested.

I would recommend checking with the Arduino library as well, just to verify. If the sensor turns out to be damaged then we’ll be happy to replace it.

-Rusty