Shop OBEX P1 Docs P2 Docs Learn Events
interfacing tcs230 with msr1 prop — Parallax Forums

interfacing tcs230 with msr1 prop

p00ndawgp00ndawg Posts: 70
edited 2010-06-15 13:43 in Accessories
http://www.w-r-e.de/robotik/data/opt/tcs230.pdf
http://www.parallax.com/Store/Microcontrollers/PropellerDevelopmentBoards/tabid/514/CategoryID/73/List/0/SortField/0/Level/a/ProductID/584/Default.aspx

I enclosed datasheet of the actual color sensor circuit I have.

I am not quite sure how to interface the two.

The prop motor board has 3 pins, ground, signal, and power. On the color sensor from what I've seen I have 9 pins, but I can reduce the number to 5 pins for use, but that still leaves me with two pins too many.

any help/ideas? Or have I completely missed something?

EDIT:

one thing I was thinking was

vdd -> power
vss -> ground
s1&s2&out -> signal

im not sure if that would work however.

Post Edited (p00ndawg) : 6/14/2010 6:59:42 PM GMT

Comments

  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2010-06-14 19:22
    Assuming you're using the older AppMod version of the TCS230 module (as your PDF indicates), you need separate lines for the following signals: Vdd (+5V), Gnd, S2, S3, /LED and OUT. They cannot be combined in any fashion. This can be done using four of the three-pin headers on the MSR1: one for each of the signal lines, and any or all of the four for power and ground.

    For those interfacing the newer daughterboard version to the MSR1, the daughterboard's Vdd and +5V pins can be tied together and supplied with +5V.

    In both situations, you will need to use the MSR1's voltage translators.

    -Phil

    Post Edited (Phil Pilgrim (PhiPi)) : 6/14/2010 7:27:16 PM GMT
  • p00ndawgp00ndawg Posts: 70
    edited 2010-06-14 20:20
    oh ok so s2, s3, /led, and out will be connected to for example, to the singal pin of p0,p1,p2, and p3 correct? vdd and gnd can be connected to any of the pins?
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2010-06-14 20:30
    Yes, Vdd to any +5V pin and Gnd to any Gnd (Vss) pin.

    -Phil
  • p00ndawgp00ndawg Posts: 70
    edited 2010-06-14 21:41
    well thats a little worrying! Is there anyway to get more pins onto the msr1 board? Im almost out [noparse]:([/noparse]
  • hover1hover1 Posts: 1,929
    edited 2010-06-15 13:43
    You can add an I/O Expander such as a Microchip MCP23017. With as little as two Propeller pins, you could add 16 ports. They could be inputs or outputs, they can run from 1.8-5.5 volts. I2C or SPI interface. You can cascade up to 8 chips, (using 5 Prop pins), for a total of 128 I/O's. It comes in DIP, SOIC, SSOP, or QFN.

    Jim
    p00ndawg said...
    well thats a little worrying! Is there anyway to get more pins onto the msr1 board? Im almost out [noparse]:([/noparse]
Sign In or Register to comment.