Since each color of light has a different frequency could this be used to make the boe bot do different programs when it senses different colors of light?
The light to frequency chip has a light intensity sensor that essentially puts out a higher voltage when the light intensity is greater. A bright light puts out a higher voltage and a dim light puts out a lower voltage. The chip also has a voltage controlled oscillator that puts out a series of low frequency pulses with the frequency greater if the voltage is greater and the frequency less if the voltage is less. You could use a series of optical filters for different colors and use the light to frequency chip to measure the light intensity getting through the filters and determine the color of the light that way. The filters have some overlap and have a relatively broad response which helps. You'd need to compensate for the overall ambient light level by looking at the light level through all the filters. The BoeBot could use the chip output to control what it does.
The new Parallax ColorPAL works somewhat that way by using different colored light sources rather than filters and measuring how much light of each color is reflected back from a colored object. Have a look at the documentation and sample code on the webstore page.
Comments
The light to frequency chip has a light intensity sensor that essentially puts out a higher voltage when the light intensity is greater. A bright light puts out a higher voltage and a dim light puts out a lower voltage. The chip also has a voltage controlled oscillator that puts out a series of low frequency pulses with the frequency greater if the voltage is greater and the frequency less if the voltage is less. You could use a series of optical filters for different colors and use the light to frequency chip to measure the light intensity getting through the filters and determine the color of the light that way. The filters have some overlap and have a relatively broad response which helps. You'd need to compensate for the overall ambient light level by looking at the light level through all the filters. The BoeBot could use the chip output to control what it does.
The new Parallax ColorPAL works somewhat that way by using different colored light sources rather than filters and measuring how much light of each color is reflected back from a colored object. Have a look at the documentation and sample code on the webstore page.