WebGyro

Web-based PWA | 2026

Browser-based motion sensor → OSC streaming tool
Live Demo  |  GitHub


About


WebGyro turns a smartphone's motion sensors into a real-time OSC controller through a web browser. It captures gyroscope, accelerometer, and rotation rate data and streams it via WebSocket to a lightweight server running on a computer, which converts the data into OSC messages. No dedicated mobile app is required.


The project grew out of a practical need during the development of Seascape Serenity, a multichannel electroacoustic composition that incorporated phone-based gesture control. WebGyro was developed as a free, publicly available alternative to proprietary sensor apps, compatible with OSC-enabled environments such as Max/MSP, Spat, TouchDesigner, and game engines.


Features


The interface is organized into four tabs designed for live performance. Connect handles server configuration, with a customizable OSC prefix and a live preview of OSC addresses. Sensors provides individual toggles for gyroscope, accelerometer, rotation rate, and shake detection, along with an adjustable streaming frequency. 3D visualizes the phone's orientation in real time with sensor readouts. Pads offers eight trigger pads for sending discrete OSC bang messages.


Additional features include automatic WebSocket host detection, persistent settings via localStorage, a lock mode that prevents accidental changes to settings during performance, and a responsive layout with safe-area support for mobile devices.

Phone Browser Sensors, pads WebSocket Node.js Server server.js UDP / OSC Any OSC Receiver DAW, VJ, game engine

Credits

Design & Development: Yu-Chia Kuo
Tech Stack: HTML, CSS, JavaScript (PWA), Node.js, WebSocket, OSC

← Previous Next →