{"id":16603346,"url":"https://github.com/dbrgn/mcp3425-rs","last_synced_at":"2025-09-28T17:31:05.099Z","repository":{"id":57637307,"uuid":"124306102","full_name":"dbrgn/mcp3425-rs","owner":"dbrgn","description":"Platform agnostic Rust driver for the MCP3425 ADC.","archived":false,"fork":false,"pushed_at":"2024-01-11T22:58:09.000Z","size":66,"stargazers_count":5,"open_issues_count":2,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-12T10:42:20.480Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dbrgn.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-07T23:16:13.000Z","updated_at":"2023-12-11T17:20:10.000Z","dependencies_parsed_at":"2023-01-30T20:46:08.968Z","dependency_job_id":null,"html_url":"https://github.com/dbrgn/mcp3425-rs","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbrgn%2Fmcp3425-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbrgn%2Fmcp3425-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbrgn%2Fmcp3425-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbrgn%2Fmcp3425-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dbrgn","download_url":"https://codeload.github.com/dbrgn/mcp3425-rs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234452074,"owners_count":18834740,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-12T00:49:36.048Z","updated_at":"2025-09-28T17:31:04.812Z","avatar_url":"https://github.com/dbrgn.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rust MCP3425/6/7/8 Driver\n\n[![GitHub Actions][github-actions-badge]][github-actions]\n[![Crates.io Version][crates-io-badge]][crates-io]\n[![Crates.io Downloads][crates-io-download-badge]][crates-io-download]\n\nThis is a platform agnostic Rust driver for the MCP3425 (and newer variants\nMCP3426/MCP3427/MCP3428 as well), based on the\n[`embedded-hal`](https://github.com/rust-embedded/embedded-hal) traits.\n\nDocs: https://docs.rs/mcp3425\n\nIntroductory blogpost: https://blog.dbrgn.ch/2018/3/13/rust-mcp3425-driver/\n\n\n## The Device\n\nThe Microchip MCP3425 is a low-current 16-bit analog-to-digital converter.\n\nThe device has an I²C interface and an on-board ±2048mV reference.\n\nDetails and datasheet: https://ww1.microchip.com/downloads/aemDocuments/documents/OTH/ProductDocuments/DataSheets/22072b.pdf\n\nVariants [MCP3426/7/8](https://ww1.microchip.com/downloads/en/DeviceDoc/22226a.pdf)\nare very similar, but support multiple input channels. They are supported as\nwell, but require to enable one of the following Cargo features:\n\n- `dual_channel` for MCP3426/7\n- `quad_channel` for MCP3428\n\n\n## Status\n\n- [x] Support one-shot measurements\n- [x] Support continuous measurements\n- [x] Configurable sample rate / resolution\n- [x] Configurable gain (PGA)\n- [x] Configurable channel (only MCP3426/7/8)\n- [x] Handle saturation values (high and low)\n- [x] Docs\n\n\n## License\n\nLicensed under either of\n\n * Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or\n   http://www.apache.org/licenses/LICENSE-2.0)\n * MIT license ([LICENSE-MIT](LICENSE-MIT) or\n   http://opensource.org/licenses/MIT) at your option.\n\n\n### Contributing\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in the work by you, as defined in the Apache-2.0 license, shall\nbe dual licensed as above, without any additional terms or conditions.\n\n\n\u003c!-- Badges --\u003e\n[github-actions]: https://github.com/dbrgn/mcp3425-rs/actions/workflows/ci.yml\n[github-actions-badge]: https://github.com/dbrgn/mcp3425-rs/actions/workflows/ci.yml/badge.svg\n[crates-io]: https://crates.io/crates/mcp3425\n[crates-io-badge]: https://img.shields.io/crates/v/mcp3425.svg?maxAge=3600\n[crates-io-download]: https://crates.io/crates/mcp3425\n[crates-io-download-badge]: https://img.shields.io/crates/d/mcp3425.svg?maxAge=3600\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbrgn%2Fmcp3425-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdbrgn%2Fmcp3425-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbrgn%2Fmcp3425-rs/lists"}