Sensor Link is a mobile application that turns your smartphone into a server, broadcasting IMU (Inertial Measurement Unit) sensor data over your local network at port 4040.
/exports/release/app-release.apk
- Creates a server within your smartphone
- Broadcasts IMU sensor data (accelerometer, gyroscope, magnetometer, absolute rotation)
- Supports data retrieval via HTTP requests or WebSocket connections
- Can run in the foreground for continuous operation
- Launch the app.
- The app will display the local IP address and port for connections.
- Send a GET request to http://:4040 to receive the latest sensor data. Or connect to the socket server through
ws://<phone-ip>:4040/ws
the app will continously broadcast sensor data after every 100ms.
The sensor data is returned in JSON format:
{
"accelerometer": {
"x": 0.01,
"y": -0.02,
"z": 9.81
},
"gyroscope": {
"x": 0.001,
"y": 0.002,
"z": -0.001
},
"magnetometer": {
"x": 0.001,
"y": 0.002,
"z": -0.001
},
"rotation": {
"x": 0.001,
"y": 0.002,
"z": -0.001
}
}
All 3 imu vector values are in radian. rotation vector value is returned in degree.
- Rotation values in radian.
- Serial communication.
- Socket transmission frequency modification.