fs3000 0.1.0

Basic embedded-hal-based I2C driver for the FS3000-1005 and FS3000-1015 air velocity sensors
Documentation
  • Coverage
  • 0%
    0 out of 19 items documented0 out of 10 items with examples
  • Size
  • Source code size: 8.25 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.21 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 14s Average build duration of successful builds.
  • all releases: 14s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • besselfunct/fs3000
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • besselfunct

fs3000

Basic I2C driver for the Renesas FS3000-1005 and FS3000-1015 Air Velocity Sensors

! This crate is a WIP. Reading of sensors is supported, but the checksum is not calculated for the resulting data !

Currently the following features are implemented:

  • Reading bytes from the sensor
  • Converting bytes to counts
  • Calculating the checksum
  • Converting counts to m/s via interpolation

TODO:

  • Add checksum calculation to get_measurement function
  • Add custom error type and error handling if checksum calculation fails

Example use:

use fs3000::*;

// Change ChipType based on the range of the sensor you're using
let mut sensor = FS3000::new(i2c, DeviceAddr::Default, ChipType::Type1005)?;

loop {
  let measurement = sensor.get_measurement();
  println!("Air Velocity is: {:?} m/s", measurement);
  // Add some delay function here.
  // The response time of the sensor is 125 ms
}