Read android phone sensors in Matlab via UDP stream using Sensorstream IMU+GPS app.
- Download the repository files by clicking here
- Save the file "androidSensor2Matlab.m" in the MATLAB path or add your current path to the paths list. More details: help path.
- Download the Sensorstream IMU+GPS app in your phone
- Connect phone and notebook to the same wifi network
- Set phoneIP and port in androidSensor2Matlab.m
- Set notebook IP and target port in Sensorstream IMU+GPS app
- Choose the desired sensors in the Toggle Sensors pane.
- Switch Stream ON
- Run from command window:
androidSensors2Matlab
Supported sensors (androidSensor2Matlab.m)
- Accelerometer
Sensors available from app.
- Accelerometer
- Gyroscope
- Magnetic Field
- GPS position
- Orientation
- Linear Accel.
- Gravity
- Rotation Vect.
- Pressure
- Battery Temp.