I’m having a strange problem with the pressure sensor and I’m wondering if anyone has seen anything similar. Basically, whenever I sample the MS5837 at a “high” rate (10Hz), the readings start going haywire.
After it starts returning bogus data, I can reset, power down, change sampling rate, or whatever, and it is still bogus. However, if I only sample slowly, I can watch as the values for both temperature and pressure slowly drift back to normal values. I’ve got a logic analyzer hooked up to the I2C bus and have confirmed its not a firmware glitch in the calibration code.
Anyone else see this behavior? I’m also curious to see if other folks are successfully using this at sampling rates > 10Hz.
Attached graph shows what I mean. Just left the sensor alone and it starts drifting towards bogus values. Eventually, I think a bug in my code caused a reduced sampling rate, and the values then trend back towards the expected 1000 mbar / 22C range.