#pressure #sensor #spi #no-std #hal

no-std ms5611-spi

no_std driver for MS5611 and MS5607 barometer sensors

2 unstable releases

Uses old Rust 2015

0.2.0 Apr 2, 2020
0.1.0 Feb 27, 2019

#324 in Hardware support

28 downloads per month
Used in pixracer_bsp

MIT/Apache

19KB
372 lines

MS5611

no_std driver for the MS5611 (barometric pressure sensor)

The Device

The TE Connectivity MS5611 is a high resolution barometric pressure sensor. The device supports both SPI and I2C bus interfaces (this driver only supports SPI though).

More information and datasheet can be found at https://www.te.com/usa-en/product-CAT-BLPS0036.html#mdp-tabs-content

Status

  • SPI access
  • Measure Pressure
  • Measure Temperature
  • Get factory coefficients
  • Check Coefficients CRC
  • Basic tests (CRC, basic converstion)
  • I2C access
  • CI
  • Documentation

License

Licensed under either of

at your option.


lib.rs:

no_std driver for the MS5611 (barometric pressure sensor)

Usage

Use embedded-hal implementation to get SPI, NCS, and delay, then create a ms5611 handle

// Create handle
let ms5611 = Ms5611::new(spi, ncs, Delay)?;
// Get a second order compensated pressure (and thermo) sample,
let sample = ms5611.get_second_order_sample(Oversampling::OS_2048)?;
println!("{:?}", sample);

References

Dependencies

~82KB