adafruit / Adafruit_TCS34725

Arduino library driver for Adafruit's TCS34725 RGB Color Sensor Breakout
http://www.adafruit.com/products/1334
Other
151 stars 151 forks source link

Unit Data Methods #33

Open a18rhodes opened 5 years ago

a18rhodes commented 5 years ago

Added 'unit data' meaning the code change should be able to provide results in units of u2/m^2. Have not been able to test this exactly as I do not have a known light source. However I believe the math is right. This is useful when trying to using the sensor as a crude PAR sensor.

The functions work and have been successfully running using my ESP8266 for a few months. However to get accurate results, the sensor calibration values need to be changed by using a known light source. For example a box painted black on the inside with only a single Red, Green, and Blue LED of known wavelengths. Then using by the datasheet and reading out the values from the unit data methods, the sensitivity and and the reference values for RGB channels can be set, and the results should be accurate.

Thank you for creating a pull request to contribute to Adafruit's GitHub code! Before you open the request please review the following guidelines and tips to help it be more easily integrated:

Thank you again for contributing! We will try to test and integrate the change as soon as we can, but be aware we have many GitHub repositories to manage and can't immediately respond to every request. There is no need to bump or check in on a pull request (it will clutter the discussion of the request).

Also don't be worried if the request is closed or not integrated--sometimes the priorities of Adafruit's GitHub code (education, ease of use) might not match the priorities of the pull request. Don't fret, the open source community thrives on forks and GitHub makes it easy to keep your changes in a forked repo.

After reviewing the guidelines above you can delete this text from the pull request.