Authors: J. Torre, T. Zakian

Our project was to create a feedback loop for the color of a LED strip by basing the next color displayed upon the current color.

Below you will find a table of the colors and their approximate values: [to be published shortly] ; ; ; ; ; ; We used this information in conjunction with the milli function to create a Print Read Evaluate Loop. We began by displaying a random starting color then taking the reading the intensity input of the photo resistor.This was accomplished by using the millis function to coordinate the color display and color detection. The successor color was determined by taking the input intensity mod 100 and adding a random number from 0 to 50. We partion our range of 0 to 149 into 5 intervals which respectively were: red: 0-29 green:30-59 blue:60-89 white:90-119 no color: 120-149 The new color values were sent to the LED strip and entire loop was repeated. Challenges encountered were the inability to sense color directly, necessitating a coarse division of the color wheel, based on the intensity of the light produced as opposed to its hue. Additionally the environment in which the LED strip and photo resistor interacted had to be controlled via a paper plate clamshell. In development we encountered difficulties resulting from our infamiliarity with both the Arduino software and hardware, specifically ignorance of the millis and incorrect circuit construction.

Last modified: 2011/11/18 13:07