{"id":16162365,"url":"https://github.com/sunsided/serial-sensors","last_synced_at":"2026-01-12T02:09:37.039Z","repository":{"id":247007585,"uuid":"823053095","full_name":"sunsided/serial-sensors","owner":"sunsided","description":"Getting that data off your microcontrollers","archived":false,"fork":false,"pushed_at":"2025-01-06T07:39:12.000Z","size":1135,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-08T02:23:02.538Z","etag":null,"topics":["csv","data-export","embedded","rust","sensor-fusion","serial-port","stm32f3discovery","tui","uart","usb-cdc"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"eupl-1.2","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sunsided.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"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":"2024-07-02T10:34:15.000Z","updated_at":"2025-01-02T10:18:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"9a59919d-4324-47d6-8448-1b50e8203fbb","html_url":"https://github.com/sunsided/serial-sensors","commit_stats":null,"previous_names":["sunsided/serial-sensors"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunsided%2Fserial-sensors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunsided%2Fserial-sensors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunsided%2Fserial-sensors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunsided%2Fserial-sensors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sunsided","download_url":"https://codeload.github.com/sunsided/serial-sensors/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246802745,"owners_count":20836419,"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":["csv","data-export","embedded","rust","sensor-fusion","serial-port","stm32f3discovery","tui","uart","usb-cdc"],"created_at":"2024-10-10T02:29:53.473Z","updated_at":"2026-01-12T02:09:37.033Z","avatar_url":"https://github.com/sunsided.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Serial Sensors\n\nA simple utility program to fetch data off my microcontrollers over a serial connection.\nIts primary goal is to provide a host-side implementation of a semi-standardized\nprotocol for reading sensor data, such as IMU data (accelerometer, magnetometer, gyroscope),\ntemperature, etc.\n\nI'm currently using it for these projects:\n\n* [`stm32f3disco-rust`](https://github.com/sunsided/stm32f3disco-rust)\n  via [`serial-sensors-proto`](https://github.com/sunsided/serial-sensors-proto).\n\nAt the moment it doesn't do much: it simply dumps out the information as it comes.\n\n![A screenshot of the application in action](readme/picture.jpg)\n\n## Logging data streams to disk\n\nBy using the `dump` subcommand and the `--dir /path/to/log` arguments, data streams can be logged\nas CSV. The command creates one file per sensor and information type. The CSV will contain\nboth the device-side and host-side timestamps to allow for better inference of sensor data rates\nlater on.\n\nBy using the optional `--raw /path/to/file.bin` argument, the raw data stream can be logged.\n\n```shell\ncargo run -- dump --port /dev/ttyACM0 --raw stream.raw --dir dump/\n```\n\n## Analyzing data dumps\n\nTo analyze data dumps, use the `analyze-dump` command. To run it with the test data, use e.g.\n\n```shell\ncargo run --no-default-features --features=analyze -- analyze-dump \\\n  --dir test/2024-07-06/stm32f3discovery \\\n  --output test/2024-07-06/stm32f3discovery/output/ \\\n  --from 10 --to 25\n```\n\nHere is an example output for accelerometer measurements:\n\n![](readme/accelerometer.jpg)\n\nSensor cross-correlation suffers a bit from display issues, but it's a starting point:\n\n![](readme/cross-correlation.jpg)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsunsided%2Fserial-sensors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsunsided%2Fserial-sensors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsunsided%2Fserial-sensors/lists"}