ms5637-rs

Crates.ioms5637-rs
lib.rsms5637-rs
version0.1.1
created_at2026-01-09 13:19:16.95683+00
updated_at2026-01-09 14:29:26.97383+00
descriptionno_std driver for the MS5637 barometric pressure sensor
homepage
repositoryhttps://github.com/Rechenmaschine/ms56xx
max_upload_size
id2032058
size12,453
Louis Schell (Rechenmaschine)

documentation

https://docs.rs/ms5637-rs

README

ms5637-rs

CI Docs.rs Crates.io

no_std driver for the TE Connectivity MS5637 barometric pressure sensor.

  • Supports I2C interface (fixed address 0x76)
  • Async and blocking APIs via embedded-hal traits
  • Extended oversampling range (256-8192)
  • Second-order temperature compensation
  • CRC validation of calibration data

Usage

Add this to your Cargo.toml:

[dependencies]
ms5637-rs = "0.1"

Example

use ms5637_rs::{Ms5637, Oversampling};

// I2C (fixed address 0x76)
let mut sensor = Ms5637::new_i2c(i2c);

// Initialize and measure (async)
sensor.init(&mut delay).await?;
let measurement = sensor.measure(Oversampling::Osr4096, &mut delay).await?;

// Or use blocking API
sensor.init_blocking(&mut delay)?;
let measurement = sensor.measure_blocking(Oversampling::Osr8192, &mut delay)?;

println!("Pressure: {} mbar, Temp: {} °C",
    measurement.pressure_mbar, measurement.temperature_c);

Cargo Features

  • defmt-03: Enables defmt::Format for all public types

Related Crates

License

MIT or Apache-2.0 license, at your option.

Commit count: 5

cargo fmt