Control your Mac by knocking on the desk (iPhone accelerometer) A developer built Desk Knock, a project that uses an iPhone's accelerometer to detect desk knocks and send commands to a Mac over Wi-Fi, with Claude assisting in the build. The iPhone sits on the desk, counts the knocks, and maps them to actions: 2 knocks pause, 3 skip to the next track, and 4 turn the screen off. The setup requires no installed app, running entirely in a Safari page. 🤯 I wanted to use my iPhone's sensors to control my Mac in a way I hadn't seen before. Claude helped me build this, I called it Desk Knock The phone sits on the desk, picks up the tiny shake when I knock, counts the knocks and sends them to my Mac over Wi-Fi. No app, just a Safari page. 2 knocks = pause 3 = next 4 = screen off