{"id":33941635,"url":"https://github.com/rust-embedded-community/accelerometer.rs","last_synced_at":"2026-03-10T12:34:34.839Z","repository":{"id":34329874,"uuid":"177428050","full_name":"rust-embedded-community/accelerometer.rs","owner":"rust-embedded-community","description":"Generic Rust accelerometer support, including traits and types for taking readings from 2 or 3-axis accelerometers","archived":false,"fork":false,"pushed_at":"2024-07-24T18:31:21.000Z","size":146,"stargazers_count":28,"open_issues_count":5,"forks_count":12,"subscribers_count":4,"default_branch":"develop","last_synced_at":"2026-01-13T20:58:20.112Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/rust-embedded-community.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-03-24T14:46:42.000Z","updated_at":"2026-01-04T21:05:18.000Z","dependencies_parsed_at":"2024-10-27T01:11:57.487Z","dependency_job_id":null,"html_url":"https://github.com/rust-embedded-community/accelerometer.rs","commit_stats":{"total_commits":60,"total_committers":6,"mean_commits":10.0,"dds":0.1166666666666667,"last_synced_commit":"52470c63d16df83eb1f08498f2f208114d1e6600"},"previous_names":["neobirth/accelerometer.rs"],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/rust-embedded-community/accelerometer.rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-embedded-community%2Faccelerometer.rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-embedded-community%2Faccelerometer.rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-embedded-community%2Faccelerometer.rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-embedded-community%2Faccelerometer.rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rust-embedded-community","download_url":"https://codeload.github.com/rust-embedded-community/accelerometer.rs/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-embedded-community%2Faccelerometer.rs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30333557,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T05:25:20.737Z","status":"ssl_error","status_checked_at":"2026-03-10T05:25:17.430Z","response_time":106,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2025-12-12T16:38:05.861Z","updated_at":"2026-03-10T12:34:34.823Z","avatar_url":"https://github.com/rust-embedded-community.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"https://raw.githubusercontent.com/NeoBirth/accelerometer.rs/develop/img/cartesian-ferris.png\" width=\"150\" height=\"110\"\u003e\n\n# accelerometer.rs\n\n[![Crate][crate-img]][crate-link]\n[![Docs][docs-img]][docs-link]\n[![Build Status][build-image]][build-link]\n[![Safety Dance][safety-image]][safety-link]\n![MSRV][msrv-image]\n[![LGPL 3.0 licensed][license-image]][license-link]\n[![Gitter Chat][gitter-image]][gitter-link]\n\nGeneric Rust accelerometer support, including traits and types for taking\nreadings from 2 or 3-axis accelerometers, intended for use with\nplatform-agnostic accelerometer drivers written using [embedded-hal].\n\nUses `no_std`-oriented 2D and 3D vector types from the [micromath.rs] crate.\n\nAdditionally includes support for tracking device orientations using\naccelerometer data.\n\n[Documentation][docs-link]\n\n## Requirements\n\n- Rust 1.47+\n\n## Supported Crates\n\nThe following dependent crates providing platform-agnostic accelerometer\ndrivers built on `embedded-hal` which also implement the [`Accelerometer`]\nand/or the [`RawAccelerometer`] traits from this crate:\n\n| Device Name | Description | Crate + Docs |\n|-------------|-------------|--------------|\n| [ADXL313]   | Analog Devices 3-axis accelerometer | [![crates.io][adxl313-crate-img]][adxl313] [![docs.rs][adxl313-docs-img]][adxl313-docs] |\n| [ADXL343]   | Analog Devices 3-axis accelerometer | [![crates.io][adxl343-crate-img]][adxl343] [![docs.rs][adxl343-docs-img]][adxl343-docs] |\n| [ADXL355]   | Analog Devices 3-axis accelerometer | [![crates.io][adxl355-crate-img]][adxl355] [![docs.rs][adxl355-docs-img]][adxl355-docs] |\n| [LIS2DH12]  | ST 3-Axis MEMS Accelerometer | [![crates.io][lis2dh12-crate-img]][lis2dh12] [![docs.rs][lis2dh12-docs-img]][lis2dh12-docs] |\n| [LIS3DH]    | High Performance ST 3-Axis MEMS \"nano\" Accelerometer | [![crates.io][lis3dh-crate-img]][lis3dh] [![docs.rs][lis3dh-docs-img]][lis3dh-docs] |\n| [MMA7660FC] | Grove 3-Axis Digital Accelerometer  | [![crates.io][mma7660fc-crate-img]][mma7660fc] [![docs.rs][mma7660fc-docs-img]][mma7660fc-docs] |\n| [STK8BA58] | SENSORTEK 3-Axis MEMS Accelerometer | [![crates.io][stk8ba58-crate-img]][stk8ba58] [![docs.rs][stk8ba58-docs-img]][stk8ba58-docs] |\n| [KXTJ31057]   | Silicon Micromachined  3-axis accelerometer | [![crates.io][kxtj31057-crate-img]][kxtj31057] [![docs.rs][kxtj31057-docs-img]][kxtj31057-docs] |\n\n\n[adxl313]: https://github.com/mvniekerk/adxl313.rs\n[adxl313-crate-img]: https://img.shields.io/crates/v/adxl313.svg\n[adxl313-docs-img]: https://docs.rs/adxl313/badge.svg\n[adxl313-docs]: https://docs.rs/adxl313/\n\n[adxl343]: https://github.com/NeoBirth/ADXL343.rs\n[adxl343-crate-img]: https://img.shields.io/crates/v/adxl343.svg\n[adxl343-docs-img]: https://docs.rs/adxl343/badge.svg\n[adxl343-docs]: https://docs.rs/adxl343/\n\n[adxl355]: https://github.com/JitterCompany/adxl355-rs\n[adxl355-crate-img]: https://img.shields.io/crates/v/adxl355.svg\n[adxl355-docs-img]: https://docs.rs/adxl355/badge.svg\n[adxl355-docs]: https://docs.rs/adxl355/\n\n[lis2dh12]: https://github.com/tkeksa/lis2dh12\n[lis2dh12-crate-img]: https://img.shields.io/crates/v/lis2dh12.svg\n[lis2dh12-docs-img]: https://docs.rs/lis2dh12/badge.svg\n[lis2dh12-docs]: https://docs.rs/lis2dh12/\n\n[lis3dh]: https://github.com/BenBergman/lis3dh-rs\n[lis3dh-crate-img]: https://img.shields.io/crates/v/lis3dh.svg\n[lis3dh-docs-img]: https://docs.rs/lis3dh/badge.svg\n[lis3dh-docs]: https://docs.rs/lis3dh/\n\n[mma7660fc]: https://github.com/rahul-thakoor/mma7660fc/\n[mma7660fc-crate-img]: https://img.shields.io/crates/v/mma7660fc.svg\n[mma7660fc-docs-img]: https://docs.rs/mma7660fc/badge.svg\n[mma7660fc-docs]: https://docs.rs/mma7660fc/\n\n[STK8BA58]: https://gitlab.com/slusheea/stk8ba58/\n[stk8ba58-crate-img]: https://img.shields.io/crates/v/stk8ba58.svg\n[stk8ba58-docs-img]: https://docs.rs/stk8ba58/badge.svg\n[stk8ba58-docs]: https://docs.rs/stk8ba58/\n\n[kxtj31057]: https://github.com/p3zhy/kxtj3-1057/\n[kxtj31057-crate-img]: https://img.shields.io/crates/v/kxtj3-1057.svg\n[kxtj31057-docs-img]: https://docs.rs/kxtj3-1057/badge.svg\n[kxtj31057-docs]: https://docs.rs/kxtj3-1057/\n\n\n## Orientation Tracking (3-axis accelerometers only)\n\n![ezgif-1-16e98d9b86ad](https://user-images.githubusercontent.com/797/55564522-ebaf2b00-56ac-11e9-808f-9809e85c1bd2.gif)\n\nOne of the main features of this crate is device orientation tracking for\n3-axis accelerometers, which is gated under the `orientation` cargo feature\n(enabled-by-default). This provides smartphone-like device position sensing\nusing an accelerometer alone, returned as one of the variants of the\n[`accelerometer::Orientation`] enum.\n\nSee the [`accelerometer::Tracker`] documentation for more information.\n\n## Code of Conduct\n\nWe abide by the [Contributor Covenant][cc] and ask that you do as well.\n\nFor more information, please see [CODE_OF_CONDUCT.md].\n\n## License\n\nCopyright © 2019-2020 NeoBirth Developers\n\nDual licensed under your choice of either of:\n\n- Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)\n- MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)\n\n[//]: # (badges)\n\n[crate-img]: https://img.shields.io/crates/v/accelerometer.svg\n[crate-link]: https://crates.io/crates/accelerometer\n[docs-img]: https://docs.rs/accelerometer/badge.svg\n[docs-link]: https://docs.rs/accelerometer/\n[build-image]: https://github.com/neobirth/accelerometer.rs/workflows/Rust/badge.svg\n[build-link]: https://github.com/neobirth/accelerometer.rs/actions\n[safety-image]: https://img.shields.io/badge/unsafe-forbidden-success.svg\n[safety-link]: https://github.com/rust-secure-code/safety-dance/\n[msrv-image]: https://img.shields.io/badge/rustc-1.31+-blue.svg\n[license-image]: https://img.shields.io/badge/license-Apache2.0/MIT-blue.svg\n[license-link]: https://github.com/NeoBirth/accelerometer.rs/blob/develop/LICENSE-APACHE\n[gitter-image]: https://badges.gitter.im/NeoBirth/accelerometer.rs.svg\n[gitter-link]: https://gitter.im/NeoBirth/community\n\n[//]: # (general links)\n\n[embedded-hal]: https://docs.rs/embedded-hal/\n[micromath.rs]: https://github.com/NeoBirth/micromath\n[`Accelerometer`]: https://docs.rs/accelerometer/latest/accelerometer/trait.Accelerometer.html\n[`RawAccelerometer`]: https://docs.rs/accelerometer/latest/accelerometer/trait.RawAccelerometer.html\n[`accelerometer::Orientation`]: https://docs.rs/accelerometer/latest/accelerometer/orientation/enum.Orientation.html\n[`accelerometer::Tracker`]: https://docs.rs/accelerometer/latest/accelerometer/orientation/struct.Tracker.html\n[cc]: https://contributor-covenant.org\n[CODE_OF_CONDUCT.md]: https://github.com/NeoBirth/accelerometer.rs/blob/develop/CODE_OF_CONDUCT.md","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frust-embedded-community%2Faccelerometer.rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frust-embedded-community%2Faccelerometer.rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frust-embedded-community%2Faccelerometer.rs/lists"}