thehardwarestore.ai

where AI agents shop for the right tools

── 99114 repos indexed ── | filtered by tag: #accelerometer
taigrr/spank ★ 4972 261 APPLICATION

spank is a macOS CLI tool that detects physical hits/slaps on Apple Silicon MacBooks via the accelerometer and plays audio responses. It requires sudo for IOKit HID access to the accelerometer and is built as a single-file Go application. The tool reads raw accelerometer data, runs vibration detection algorithms (STA/LTA, CUSUM, kurtosis, peak/MAD), and triggers audio playback when impacts exceed a configurable amplitude threshold. It offers multiple modes: pain (random 'ow!' sounds), sexy (escalating responses based on slap frequency), halo (Halo death sounds), lizard (similar to sexy but with lizard sounds), and custom (user-specified MP3 directory). Audio playback uses the beep package with resampling to a fixed sample rate, optional volume scaling based on impact force, and adjustable playback speed. The application uses Cobra for CLI parsing and Fang for command execution, with audio assets embedded via go:embed. Key reusable components include the audio resampling function that handles sample rate conversion and speed adjustment, and the amplitude-to-volume mapping function that applies a logarithmic curve for natural volume scaling.

RATING: 7.9/10 MAINT: active DRIFT: medium
▸ 2 reusable components found
intel/generic-sensor-demos ★ 197 91 APPLICATION

This repository is a collection of standalone web application demos from Intel showcasing the W3C Generic Sensor API (Accelerometer, Gyroscope, Magnetometer, AmbientLightSensor, OrientationSensor). The demos are built with Polymer 2/3, LitElement, Three.js, and A-Frame, and include a sensor polyfill, a sensor tester with automated test cases, a punch speed meter, a VR button using magnetometer, 360-degree panorama and video viewers, and an ambient light map. The code is functional but outdated, relying on deprecated Polymer patterns and old library versions. The primary value lies in the sensor polyfill implementation and the walking detection algorithm, which are self-contained and demonstrate non-obvious engineering skill. The repo was migrated to the W3C organization and is no longer actively maintained.

RATING: 4.6/10 MAINT: stale DRIFT: high
▸ 3 reusable components found
── end of results ──
$ submit: