{"id":51421898,"url":"https://github.com/firechip/clickscope","last_synced_at":"2026-07-05T00:17:24.042Z","repository":{"id":369195503,"uuid":"1288785911","full_name":"firechip/clickscope","owner":"firechip","description":"Live oscilloscope for MikroElektronika Click-board accelerometer telemetry (Ubuntu/Yaru, Flutter)","archived":false,"fork":false,"pushed_at":"2026-07-04T02:46:50.000Z","size":163,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-07-04T04:29:17.171Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/firechip.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-07-04T01:07:50.000Z","updated_at":"2026-07-04T02:46:53.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/firechip/clickscope","commit_stats":null,"previous_names":["firechip/clickscope"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/firechip/clickscope","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firechip%2Fclickscope","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firechip%2Fclickscope/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firechip%2Fclickscope/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firechip%2Fclickscope/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/firechip","download_url":"https://codeload.github.com/firechip/clickscope/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firechip%2Fclickscope/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35140187,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-04T02:00:05.987Z","response_time":113,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2026-07-05T00:17:23.489Z","updated_at":"2026-07-05T00:17:24.022Z","avatar_url":"https://github.com/firechip.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Clickscope\n\n**A live oscilloscope for MikroElektronika Click-board accelerometer telemetry.**\n\nClickscope is an Ubuntu-native (Flutter + [Yaru](https://pub.dev/packages/yaru))\ndesktop app that connects to a board running the\n[clickforge](https://github.com/firechip) firmware, decodes its COBS/CRC\ntelemetry off USB CDC-ACM, and shows the 3-axis accelerometer stream live —\nscrolling X/Y/Z (+ magnitude) plot, a bubble-level tilt view, numeric readouts,\nlink-quality stats, a device console, and CSV recording.\n\n## What it shows\n\nThe firmware (Zephyr, FreeRTOS, RT-Thread, TinyGo, Rust, MicroPython, Ruby,\nForth, …) streams the onboard LIS2DH12 as **COBS-framed binary telemetry**:\n\n```\nframe   = COBS(payload) + 0x00                                (≤ 10 bytes)\npayload = [X int16 LE][Y int16 LE][Z int16 LE][CRC16-CCITT LE]  (8 bytes)\n```\n\nX/Y/Z are already in **milli-g** (the firmware sends `raw16 \u003e\u003e 4`), and each\nframe is CRC-16/CCITT-FALSE checked. Clickscope decodes with the published\n[`cobs_codec`](https://pub.dev/packages/cobs_codec) package + a matching CRC,\nso a corrupted frame is dropped, not plotted.\n\n## Features\n\n- **Auto-discovery** of the board over USB, labelled by firmware (VID:PID → RTOS).\n- **Real-time chart** (fl_chart, animation-free) — X/Y/Z + derived magnitude,\n  per-axis toggles, 10 / 20 / 60 s windows.\n- **Tilt indicator** — a bubble-level driven by the gravity vector.\n- **Live stats** — streaming rate (Hz), `WHO_AM_I` health, and a rolling\n  CRC-error rate bar.\n- **Console** — the device's ASCII banner and any text lines.\n- **Record to CSV** — one click writes `~/clickscope-\u003ctimestamp\u003e.csv`.\n- **Yaru look \u0026 feel** — light/dark/system, Ubuntu accent, CSD title bar.\n\n\u003e **Safety:** Clickscope always opens at **115200 baud**. It will never open at\n\u003e 1200 baud — on these boards that is the \"touch\" that reboots into the UF2\n\u003e bootloader.\n\n## Run from source\n\n```bash\nflutter pub get\nflutter run -d linux        # or: flutter build linux --release\n```\n\nRequires the Flutter Linux desktop toolchain and `libusb-1.0`. Reading a serial\ndevice needs permission — add yourself to the `dialout` group once:\n\n```bash\nsudo usermod -aG dialout $USER   # then log out / back in\n```\n\n## Install on Ubuntu\n\n**Snap** (see `snap/snapcraft.yaml`):\n\n```bash\nsnapcraft                                   # builds clickscope_*.snap (uses LXD)\nsudo snap install --dangerous clickscope_*.snap\nsudo snap connect clickscope:raw-usb        # grant raw USB (libusb) access\n```\n\nClickscope talks to the board over **libusb** (it opens the CDC device directly\nand detaches the kernel driver), so the interface that matters is `raw-usb`,\nnot `serial-port`.\n\n**Portable tarball** (no packaging tools):\n\n```bash\nflutter build linux --release\ntar czf clickscope-linux-x64.tar.gz -C build/linux/x64/release/bundle .\n# unpack anywhere and run ./clickscope\n```\n\n## Layout\n\n```\nlib/\n  main.dart            entry, Yaru theme, master-detail shell\n  src/telemetry.dart   Sample + COBS (cobs_codec) / CRC decode + firmware-id map\n  src/providers.dart   Riverpod controller: serial IO, framing, ring buffer, CSV\n  src/widgets.dart     ScopeChart, TiltIndicator, readouts\n  src/pages.dart       Dashboard, Console, Settings\ntest/telemetry_test.dart   decode / CRC / label unit tests\n```\n\n## License\n\nMIT © Firechip / Alexander Salas Bastidas\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirechip%2Fclickscope","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffirechip%2Fclickscope","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirechip%2Fclickscope/lists"}