RobTillaart / MS5611

Arduino library for MS5611 temperature and pressure sensor
MIT License
17 stars 5 forks source link

Reading temperature compensated values #32

Closed roque-canales closed 1 year ago

roque-canales commented 1 year ago

Hello,

in your examples you not use the ms5611.reset function… while is the only one that read the calibration tables on the ms5611 memory.

can you tell me how to simple get temperature compensated pressure values?

For that we need to code this below?

in the setup: Ms5611.begin Ms5611.reset

in the main loop: Ms5611.read Ms5611.get temperature Ms5611.get pressure

?

Does I forgot one thing?

thank you for for help.

rgds

RobTillaart commented 1 year ago

Thanks for the issue, I moved it to the appropriate repository.

roque-canales commented 1 year ago

Hello Rob, thanks for marking this issue, can you send back an example that output temp compensated pressure values?

RobTillaart commented 1 year ago

Please note that begin() calls reset()

bool MS5611::begin(TwoWire * wire)
{
  if ((_address < 0x76) || (_address > 0x77)) return false;
  _wire = wire;
  _wire->begin();
  if (! isConnected()) return false;

  return reset();   <<<<<<<<<<<<<<<<<<<<<<<<,
}
roque-canales commented 1 year ago

Sory to have missed that.

thank you !

RobTillaart commented 1 year ago

You're welcome!