Author: Nick Meehan
Year: 2014
Class: Lab C
Instructor: Luke Johnson
This is a combination of two sets of code. The first part is the code is a Arduino Mega needed to log GPS and color data. The second is a series of Python scripts I wrote to process the data in to various formats, which was necessary to visualize the project.
A single purpose device made up of a color sensors and gps coordinates to map the color of light at night in Los Angeles.
this doc assumes you have recent versions of bower and python on your computer
Run bower install
to automatically load dependencies.
Move components e.g. (Adafruit_TCS34725) to your Arduino library.
###csvtogpx
I wrote a python script that converts a directory of .csv log files to .gpx waypoint coordinates that can be mapped in other programs.
It is a command line script... to use it
- navigate to the directory with the script
python csvtogpx.py './relative/directory/of/csv/files'
- navigate to a directory called '/xml' which is in the root of the processed directory
- marvel your fancy new gpx files
So you might be wondering why I didn't just generate the gpx file on the device. How thoughtful of you. I was trying to limit the amount of parsing that needed to be done on the device, csv files are light weight and don't require complicated headers etc.'
http://arduino.cc/en/Main/arduinoBoardMega2560
Documentation: https://learn.adafruit.com/adafruit-color-sensors/programming
Dependencies: https://github.com/adafruit/Adafruit_TCS34725
Documentation: https://learn.adafruit.com/adafruit-ultimate-gps-logger-shield/sd-logging
Dependencies:
MIT License