Shop OBEX P1 Docs P2 Docs Learn Events
TCS230-DB Color Sensor for another microcontroller? — Parallax Forums

TCS230-DB Color Sensor for another microcontroller?

trilltrill Posts: 1
edited 2008-03-26 22:09 in BASIC Stamp
Can the TCS230-DB Color Sensor can be controlled by the Basic Atom Pro instead of the Basic Stamp? Has anybody tried the sensor with another microcontroller?
Note: we're using the Mini atom bot board for the microcontroller. Thanks.

Comments

  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2008-03-26 22:09
    Sure, it should work fine, so long as the processor you're using gives you a way to count pulses over a known time span. You will need a cable to connect the TCS230-DB to your Mini Atom board and can make one out of parts obtainable from DigiKey. It will allow the color sensor to connect neatly to one of the Mini Atom board's 3x4 header blocks. Here's a bill of materials:

    ···· 1 ea. H2024-ND Hirose DF11 12-pin crimp socket shell (This plugs into the TSC230-DB.)
    ····10 ea. H3BXT-10112-S4-ND wire and socket sets (These snap into the socket shell. You don't need 10, but that's the way they're sold.)
    ···· 2 ea. WM2520-ND 2x3 crimp connector housings (These plug into your Mini Atom board.)
    ····10 ea. WM2510-ND crimp socket terminals (These get crimped onto the ends of the wires and snap into the 2x3 shells.)

    You will need a crimp tool to install the crimps. Radio Shack's No. 276-1595 D-sub pin crimper will work fine.

    After stripping the ends of seven of the wires, crimp the socket terminals on. Then make the following connections by poking the crimps into their respective shells at the proper pin locations:

    TCS230-DB       Mini Atom
    ---------       ---------
     Vdd             +5V
     +5V             +5V
     Vss (Gnd)       Vss (Gnd)
     S2              Signal
     S3              Signal
     OUT             Signal
     LED             Signal      
    
    
    


    S0 and S1 control the output divider and do not need to be connected. If you need to lower the output frequency, this can be done using the jumper pads on the TCS230-DB circuit board. You may want to glue the two 2x3 shells together and label the assembly so you get it plugged in the same way every time. And be sure the jumper setting for the connector block is set to +5V, not Vin.

    Good luck!

    -Phil
Sign In or Register to comment.