Skip to content

unsalted/color_station

Repository files navigation

color station

Author: Nick Meehan
Year: 2014
Class: Lab C
Instructor: Luke Johnson

Synopsis

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.

Motivation

A single purpose device made up of a color sensors and gps coordinates to map the color of light at night in Los Angeles.

Installation:

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

  1. navigate to the directory with the script
  2. python csvtogpx.py './relative/directory/of/csv/files'
  3. navigate to a directory called '/xml' which is in the root of the processed directory
  4. 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.'

The Device

Arduino Mega 2560

http://arduino.cc/en/Main/arduinoBoardMega2560

Adafruit Color Sensor

Documentation: https://learn.adafruit.com/adafruit-color-sensors/programming

Dependencies: https://github.com/adafruit/Adafruit_TCS34725

Adafruit Ultimate GPS Sheild

Documentation: https://learn.adafruit.com/adafruit-ultimate-gps-logger-shield/sd-logging

Dependencies:

License

MIT License

About

A collection of sensors for collecting data on street lamps. #mdp

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages