Quantcast
Channel: ArduinoDev.com
Viewing all articles
Browse latest Browse all 77

Data2KML – a conversion utility for Arduino data loggers

$
0
0

Data2KML is a command line program which takes in data log files generated by the MEGA logger, an Arduino sketch developed for Arduino OBD-II Data Logger Kit, and outputs KML file for viewing the logged data with Google Earth. A data log file is originally recorded in CSV format by MEGA logger, in which, each line represents a record with time, data type and data value(s) like this:

[Time Elapsed],[Data Type],[Data Value]

Time Elapsed is the time elapsed in milliseconds since previous data record. Data type is based on the HEX number of standard OBD-II PIDs (e.g.  0x10C is engine RPM), as well as some extensions for GPS and sensor data (refer to the MEGA Logger source code). Here is an example data clip:

169,10D,0
171,111,12
170,143,21
165,10B,30
175,10C,705
169,10D,0

This KMZ file (KMZ is zipped KML file) is an example which was generated by Data2KML and shows in Google Earth like following.

Wollongong Mount Dash

The source code and Windows build of the utility is available here.


Viewing all articles
Browse latest Browse all 77

Trending Articles