Skip to content
Tech News
← Back to articles

Steam Controller Auto-Charge – pilot to magnetic charging puck using CV

read original more articles

Steam Controller Auto-Charge

Steam Controller Auto-Charge is an open-source web application designed to automatically pilot a Steam Controller into its magnetic charging puck using optical flow computer vision and WebHID telemetry.

Features

Optical Flow Tracking: Utilizes OpenCV.js to track user-selected points on the controller and the charging puck via an overhead camera.

Utilizes OpenCV.js to track user-selected points on the controller and the charging puck via an overhead camera. WebHID Telemetry & Haptic Navigation: Connects to the Triton Controller natively via WebHID, streaming input and telemetry (Report 67). Navigates the controller towards the puck by firing 70Hz asymmetric haptic pulses through the internal dual Linear Resonant Actuators (LRAs).

Connects to the Triton Controller natively via WebHID, streaming input and telemetry (Report 67). Navigates the controller towards the puck by firing 70Hz asymmetric haptic pulses through the internal dual Linear Resonant Actuators (LRAs). Proximity Creep Mode: Automatically cuts haptic pulse frequency by 50% when the controller is within 150 pixels of the puck to ensure a gentle magnetic dock.

Automatically cuts haptic pulse frequency by 50% when the controller is within 150 pixels of the puck to ensure a gentle magnetic dock. Battery Status Polling: Intercepts Report ID 121 ( 0x79 ) to confirm successful magnetic charging, and parses Report ID 67 ( 0x43 ) to display live battery percentage and battery cell voltage (mV).

Setup

Requirements

Nix Package Manager : The only build dependency you need. It works seamlessly on Windows, Mac, and Linux. A Chromium-based browser supporting the WebHID API. An overhead webcam pointing down at your desk.

... continue reading