View Single Post
  #3   Spotlight this post!  
Unread 21-12-2006, 19:20
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 6,998
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
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?