Platform agnostic Rust driver for the MCP3425 ADC.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
examples
src
.gitignore
CHANGELOG.md
Cargo.toml
LICENSE-APACHE
LICENSE-MIT
README.md
RELEASING.md
build-rpi0.sh

README.md

Rust MCP3425 Driver

CircleCI Crates.io Version Crates.io Downloads

This is a platform agnostic Rust driver for the MCP3425, based on the embedded-hal traits.

Docs: https://docs.rs/mcp3425

Introductory blogpost: https://blog.dbrgn.ch/2018/3/13/rust-mcp3425-driver/

The Device

The Microchip MCP3425 is a low-current 16-bit analog-to-digital converter.

The device has an I²C interface and an on-board ±2048mV reference.

Details and datasheet: http://www.microchip.com/wwwproducts/en/en533561

Status

  • Support one-shot measurements
  • Support continuous measurements
  • Configurable sample rate / resolution
  • Configurable gain (PGA)
  • Handle saturation values (high and low)
  • Docs

Feature Flags

The following feature flags exists:

  • measurements: Use the measurements crate to represent voltages instead of the custom Voltage wrapper

License

Licensed under either of

Contributing

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.