In High School Chem Labs, Every Cameraphone Can Be a Spectrometer
wired.com
wired.com
The way it worked was to instead to use a 96-well plate (indexed, by blotting out certain wells) that would allow the software to key the matrix of wells and determine 'circles' to sample optical density based on the rgb values of the resulting jpg image - averaging across the entire circle. The experimenter would set up a 'calibration curve' in certain pre-indiced wells.
Typically you would have to have a color filter - i.e. if the color being evolved was yellow then you would take the photograph in blue light.
Could it also do anything related to measuring contaminants in air or water? I live by the Baltic sea, which is very badly eutrophied, and have for some time had the idea of a network of floating sensors that would measure with high detail the nutrient levels. If one could pinpoint sources down to individual agricultural fields, I think huge reductions in fertilizer runoff would be possible.
One of the other problems was I couldn't figure out how to do nonlinear fitting in perl... The RGB density:concentration was a polynomial of order -3/2 (IIRC) Got too lazy with proprietary mathematica fitting to figure out how to do it myself.
If you're really looking to do real-time floating sensors (which I suspect is overkill) you wouldn't want to use what I developed... I bet I know people who might be able to help though, that sounds like a real project with a real need.
Tangentially related.. someone on Twitter just convinced me to buy "Instant Heart Monitor" which turns at least iPhones and Android phones into heart rate monitors. In my case it used the flash on the iPhone 4 to light up your finger and works out your heartbeat from fluctuations in its color. My first test proved accurate.
Is there a bill of materials and a schematic on how the setup looks from above?