mcp3425

Crates.iomcp3425
lib.rsmcp3425
version1.1.0
sourcesrc
created_at2018-03-11 00:11:14.440611
updated_at2024-01-11 22:55:52.091457
descriptionPlatform agnostic Rust driver for the Microchip MCP3425/6/7/8 ADC.
homepage
repositoryhttps://github.com/dbrgn/mcp3425-rs
max_upload_size
id54927
size61,186
Danilo Bargen (dbrgn)

documentation

https://docs.rs/mcp3425

README

Rust MCP3425/6/7/8 Driver

GitHub Actions Crates.io Version Crates.io Downloads

This is a platform agnostic Rust driver for the MCP3425 (and newer variants MCP3426/MCP3427/MCP3428 as well), 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: https://ww1.microchip.com/downloads/aemDocuments/documents/OTH/ProductDocuments/DataSheets/22072b.pdf

Variants MCP3426/7/8 are very similar, but support multiple input channels. They are supported as well, but require to enable one of the following Cargo features:

  • dual_channel for MCP3426/7

  • quad_channel for MCP3428

Status

  • Support one-shot measurements

  • Support continuous measurements

  • Configurable sample rate / resolution

  • Configurable gain (PGA)

  • Configurable channel (only MCP3426/7/8)

  • Handle saturation values (high and low)

  • Docs

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.

Commit count: 51

cargo fmt