Thursday, March 27, 2014

Data Logging for Nexus 7 flow with Android 4.4.2 and iPod touch 4G with ios 1.6.1.




When choosing a free app for recording data of your available sensors's device running either Android or iOS, one can have many options. Henceforth, I decided to post a half-backed review of different free application so as to record data from inertial sensors. What I have highlighted is the limitations and advantages of six applications which are rooted in the fact that data is easily available without any special file configuration in order to be used in further analysis.



On Nexus 7 Flo


sensor tester



Limitations
It does not run as a background app which means that only record data while is main app in use.

Advantages
Data is available in the directory with no special configuration but the use of semicolon as a separator.
Sensor that are available for recording are:
Lite-On Ambient Light Sensor
MPL Accelerometer
MPL Gyroscope
ALM Magnetic Field
Orientation
Battery Level
GPS


An example of the data file ( SensorLog_23227-3272014.csv) content is shown below:

TimeStamp[ms];Prox[Cm];Lux[lux];AccX[m/s^2];AccY[m/s^2];AccZ[m/s^2];GyroX[rad/s];GyroY[rad/s];GyroZ[rad/s];MagnX[uT];MagnY[uT];MagnZ[uT];OrienYaw[degrees];OrienPitch[degrees];OrienRoll[degrees];Press[Pa];Temp[C°];Batt[%];Lat;Lng;Speed[m/s]
1395909172781;-;-;0.35328674;-0.1293335;9.662216;0.0016326904;0.0076141357;0.0023651123;24.058533;13.619995;-24.839783;299.1707;0.73309547;2.0018258;-;-;-;-;-;-





Sensor Log



Limitations

Data file has got a rather incomprehensible configuration, see the example below, which it could be solved by prepossessing data.

statusId | label
21|cyclying
statusId|sensorName|value|timestamp
21|MPL Accelerometer|[1.586319,-0.72442627,9.574142]|2791717478754
21|MPL Accelerometer|[1.5291901,-0.76727295,9.916916]|2791717478759
21|MPL Accelerometer|[1.6767731,-0.74823,10.121628]|2791717478764
21|MPL Accelerometer|[1.7910309,-0.72680664,10.235886]|2791717478769
21|MPL Accelerometer|[1.8910065,-0.7149048,10.252548]|2791717478775
21|MPL Gyroscope|[0.1602478,-0.111190796,-0.05633545]|2791717478775
21|Linear Acceleration|[0.23933768,0.0011360645,0.54296875]|2791717478775
21|Orientation|[55.617004,4.217689,9.628358]|2791717478775
21|MPL Gyroscope|[0.1602478,-0.111190796,-0.05633545,0.0,0.0,0.0]|2791717478775
21|MPL Accelerometer|[1.9148102,-0.7053833,10.204941]|2791717478783
21|MPL Gyroscope|[0.1212616,-0.09410095,-0.041915894]|2791717478783
21|Linear Acceleration|[0.21233058,-8.763075E-4,0.4132719]|2791717478784
21|Orientation|[55.495453,4.115319,9.838491]|2791717478783
21|MPL Gyroscope|[0.1212616,-0.09410095,-0.041915894,0.0,0.0,0.0]|2791717478783
21|MPL Accelerometer|[1.9171906,-0.6911011,10.000229]|2791717478787
21|MPL Gyroscope|[0.09883118,-0.080215454,-0.034973145]|2791717478788
21|Linear Acceleration|[0.18060625,0.0070358515,0.17904377]|2791717478788
21|MPL Gyroscope|[0.09883118,-0.080215454,-0.034973145,0.0,0.0,0.0]|2791717478788
21|Orientation|[55.393433,4.066019,10.002679]|2791717478788
21|MPL Accelerometer|[1.9505157,-0.76013184,9.966904]|2791717478792
21|MPL Gyroscope|[0.079071045,-0.06686401,-0.025894165]|2791717478793
21|Linear Acceleration|[0.1839937,-0.058228612,0.12778759]|2791717478792
21|Orientation|[55.34503,4.080456,10.153219]|2791717478793
21|MPL Gyroscope|[0.079071045,-0.06686401,-0.025894165,0.0,0.0,0.0]|2791717478793
21|MPL Accelerometer|[1.964798,-0.85058594,10.002609]|2791717478796


Advantages

It would be of such usefulness when you are only interested in measuring one sensor activity.
Data is available at either a directory in a SD memory device or by attaching data to an email.
You can create a label for the activity, and you are also allowed which sensor can be recorded from the following list:
GPS,
WiFi (Useful for checking your street WiFi Activity Signal)
MPL Accelerometer
AKM Magnetic Field
Orientation
Lite-On Ambient Light Sensor
MPL Gyrposcope
AKM Magnetic Field
MPL Gyroscope
Gravity
Linear Acceleration
Rotation
Significant Motion
Game Rotation Vector








Sensor Data Logger
https://play.google.com/store/apps/details?id=com.cellbots.logger



Limitation
Front camera does not work and the back camera is inverted (upside down).

Advantages
Take pictures every N seconds, where N is a delay between shots which could be chosen from 1 to 30.

Data is available for the following sensors namely:

GpsLocation_26_Mar_2014_21-29-27_GMT
GpsNmea_26_Mar_2014_21-29-27_GMT
GpsStatus_26_Mar_2014_21-29-27_GMT
Significant_Motion_26_Mar_2014_21-29-27_GMT
AKM_Magnetic_Field_26_Mar_2014_21-29-27_GMT
Game_Rotation_Vector_26_Mar_2014_21-29-27_GMT
Gravity_26_Mar_2014_21-29-27_GMT
Linear_Acceleration_26_Mar_2014_21-29-27_GMT
Lite-On_Ambient_Light_Sensor_26_Mar_2014_21-29-27_GMT
MPL_Accelerometer_26_Mar_2014_21-29-27_GMT
MPL_Gyroscope_26_Mar_2014_21-29-27_GMT
Orientation_26_Mar_2014_21-29-27_GMT
Rotation_Vector_26_Mar_2014_21-29-27_GMT
BatteryLevel_26_Mar_2014_21-29-27_GMT
BatteryTemp_26_Mar_2014_21-29-27_GMT


Data from the Rotation_Vector_26_Mar_2014_21-29-27_GMT.txt file

1395869389891345422,3,-0.14715952,0.33295822,-0.7356954,
1395869389911548059,3,-0.14655288,0.33271033,-0.7361636,
1395869389971942346,3,-0.14357172,0.33430612,-0.73666584,
1395869390032336633,3,-0.14219482,0.3346834,-0.7369622,
1395869390052478235,3,-0.14236505,0.3343777,-0.7370699,
1395869390072650354,3,-0.14245851,0.33419824,-0.7371777,








On iPod Touch 4G

Movement Data Logger
https://itunes.apple.com/us/app/id527163720


Movement Data Logger






For my particular experiments, I think, Data Logger is the best option of those apps which are labeled as free. The only minor requirement is that you must have internet connection and an email account where you are going to receive your data. Data logger can be configurated for either recording gyroscope and accelerometer data or just one of the sensors, as well as having the option to chose the sampling frequency [10Hz, 33.33Hz and 100 Hz], and the maximum samples [1000, 10000, 20000 and 50000].


Data is available in a cvs file which has got the following format;

Timestamp,Accel-X,Accel-Y,Accel-Z,Gyro-X,Gyro-Y,Gyro-Z,Yaw,Pitch,Roll
2882.421989791667,-0.1140816584229469,-0.07689621299505234,0.2387514412403107,0.4416652917861938,-0.2592781782150269,-0.6462512016296387,-0.0353090234558778,0.6988848963746889,0.08704037200632098








SCraMP
https://itunes.apple.com/us/app/scramp/id456343416?mt=8



SCraMP


One of its advantage is that it has an audible warning which can be selected between a Pan sound and a Nag saying danger. Another thing that I have been checking is the logger functions which is limited to run while the app is running, hence if you want to record data in the background this is not the option. Regarding the data availability, this one creates a directory in iPod touch so as to access the data which has the following format.

(
    ",Time, Surge accel (g), Sway accel (g), Heave accel (g), Roll--Euler (rad), Pitch--Euler (rad), Yaw--Euler (rad), Roll--Tait-Bryan (rad), Pitch--Tait-Bryan (rad), Yaw--Tait-Bryan (rad), Latitude, Longitude, Speed (kts), Course (deg), Heading (deg), GPS Time,",
    ",515.179779,0.013771,0.007758,0.030415,0.117971,0.179721,2.257949,0.119884,0.178459,2.279329,0.000000,0.000000,0.000000,0.000000,0.000000,(null), ",
    ",569.553876,-0.000547,0.002512,-0.048713,-0.091916,0.231026,0.814814,-0.094410,0.230033,0.793226,0.000000,0.000000,0.000000,0.000000,0.000000,(null), "
)






DataLogger+
https://itunes.apple.com/us/app/id545893194


DataLogger+

It comes with useful exportation details such as decimal places which do not work, but once fixed would be helpful, CSV and XML format, column separator, and a filtering for sample size, in addition to that it has a selection among raw, average, standard deviation, minimum and maximum, and random sample formats.

The worst thing is that the data is only available by sending an email, and when one wants to work with a lot of data this is not working properly.




No comments:

Post a Comment