Difference between revisions of "Ambient light color sensing"
From Mech
Jump to navigationJump to searchLine 6: | Line 6: | ||
== Circuit == |
== Circuit == |
||
Phototransitors can be purchased through [http://digikey.com/scripts/DkSearch/dksus.dll?Detail?name=OPB365N11-ND digikey]. |
|||
Color filters may be ordered [http://www.arborsci.com/detail.aspx?ID=37 here]. |
|||
== Code == |
== Code == |
Revision as of 08:19, 5 February 2008
Original Assignment
The goal of this project is to build a sensor that can detect the color of light produced by an LCD projector (such as the one in the lab). The sensor will consist of three tightly bundled phototransistors (e.g., the OP506B from digikey), each with its own color filter (see, for example, this description of color filters). Three analog inputs will read the sensed values and the program will print the RGB (or similar) values to an LCD screen (see, e.g., C_Example:_Serial_LCD or C_Example:_Parallel_Interfacing_with_LCDs). The demonstration will show these values changing as you move from one part of the projected image (a simple test pattern consisting of single-color blocks) to another.