Shop OBEX P1 Docs P2 Docs Learn Events
question about light to frequency chip — Parallax Forums

question about light to frequency chip

mleadermleader Posts: 8
edited 2009-12-10 18:54 in BASIC Stamp
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?

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2009-12-10 18:54
    Not really.

    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.
Sign In or Register to comment.