|
Re: RC and TAOS Color Sensor
Um, it'll be a bit of a pain to interface this to the RC, but not impossible.
The first step is understanding what this thing is giving you, which is a variable frequency square wave, frequency varies accoring to light brightness (Between about 8 and 24 kHz max at one scaling factor).
You first set two pins (s0 and S1) for the scaling factor. Likely these will be just jumpers to +5 or Gnd.
Then set two pins (S2/S3) to determine which "color" you are detecting. (For all 4 pins see the Taos sheet, Table 1)(You'll set these by software, using digital outputs of the RC, and change them real fast)
So, you want to detect of the color is Green. Strobe through all four colors (one 'color' is clear) and measure the output (=brightness =frequency) for each color, then use math to figure out the percentage of red/green/blue/white (brightness overall) to get the color.
Don
__________________
I am N2IRZ - What's your callsign?
|