IdeaCredIdeaCred

olvvier/apple-silicon-accelerometer

78

reading the undocumented mems accelerometer + gyroscope on apple silicon macbooks via iokit hid

What's novel

reading the undocumented mems accelerometer + gyroscope on apple silicon macbooks via iokit hid

Code Analysis

9 files read · 3 rounds

Reads the undocumented MEMS accelerometer/gyroscope on Apple Silicon Macs via raw IOKit HID ctypes calls, provides a zero-dependency Python API with signal processing filters (Kalman, biquad, Mahony AHRS), and includes a terminal demo with vibration/heartbeat detection plus a vendored Objective-C ke

Strengths

Genuinely novel hardware access (undocumented SPU IMU via ctypes→IOKit) with zero external dependencies, proper lock-free shared memory ring buffers, and multiple real DSP algorithms (Kalman filter, Mahony AHRS, CUSUM, STA/LTA, wavelet decomposition) all implemented from scratch in pure Python.

Weaknesses

No test suite exists despite the mock/recording infrastructure being built for testing; some code duplication (Mahony AHRS implemented twice, shm_read_new vs shm_read_new_gyro are near-identical); the mock() method uses hash() which is non-deterministic across runs.

Score Breakdown

Innovation
7 (25%)
Craft
60 (35%)
Traction
80 (15%)
Scope
78 (25%)

Signal breakdown

Innovation

Not Fork+1
Code Novelty+2
Concept Novelty+2

Craft

Ci-1
Tests-1
Polish+0
Releases+3
Has License+5
Code Quality+20
Readme Quality+15
Recent Activity+7
Structure Quality+5
Commit Consistency+2
Has Dependency Mgmt+5

Traction

Forks+20
Stars+30
Hn Points+15
Watchers+6
Early Traction+5
Devto Reactions+0
Community Contribs+4

Scope

Commits+7
Languages+5
Subsystems+5
Bloat Penalty+0
Completeness+7
Contributors+7
Authored Files+12
Readme Code Match+3
Architecture Depth+7
Implementation Depth+8

Evidence

Commits

34

Contributors

4

Files

34

Active weeks

3

TestsCI/CDREADMELicenseContributing

Repository

Language

Python

Stars

978

Forks

49

License

MIT