Shop OBEX P1 Docs P2 Docs Learn Events
TCS230 how do you connect with the board of education!!!! — Parallax Forums

TCS230 how do you connect with the board of education!!!!

GaboGabo Posts: 10
edited 2007-10-09 21:57 in BASIC Stamp
·Hi, I need help with the connection and using the TCS230 with the Boe-Bot board the education, i know there are codes and etc in the page of parralax, but i haven`t found really how you can connect the TCS230 with the DB Expander into the Board of Education. thanx

Comments

  • D FaustD Faust Posts: 608
    edited 2007-10-07 23:32
    It looks like you need one of these: http://forums.parallax.com/showthread.php?p=525689· It doesn't go in the appmod header!



    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    LOOKDOWN ThisThread, [noparse][[/noparse]Your_?, My_?, Cool_Thing], looknum
    LOOKUP looknum, [noparse][[/noparse]1, 2, 3], subnum
    ON subnum GOTO Hope_this_helps, Thanks!, WOW!!
    END 
    

    Post Edited (D Faust) : 10/8/2007 6:10:30 PM GMT
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2007-10-08 02:16
    The docs for the DB-Expander show how it can plug into the breadboard area of the BOE. The TCS230-DB docs include a chart that maps the TCS230 signals to the lettered pins on the DB-Expander. If you need to have the color sensor more detached from the BOE, you can use a Daughterboard Extension Cable.

    -Phil
  • GaboGabo Posts: 10
    edited 2007-10-08 17:31
    What i`m asking for is like the circuit diagram of conection to the Board of Education of my Boebot. Yes, I a have the TCS230, DB-EXpander, and the DaugtherBoard Extension cable already plug between them, my problem is How do i connect the DB-Expander into the Boebot using a board of education??????
    ·
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2007-10-08 17:54
    I'm still not quite sure where the difficulty lies, but I'll try.

    In the docs for the DB-Expander, there's a diagram showing how to plug it into the wireless breadboard of the BOE and how to connect the power and ground leads. Each signal pin on the DB-Expander has a letter assigned to it. There are eight signal lines, so the letters range from A to H. In the doc for the TCS230-DB there's a chart that shows the correspondence between each of the TCS230-DB's signals and the letters on the DB-Expander. For example, to connect to the TCS230's output pin, you'd use pin C on the DB-Expander. Therefore you'd run a jumper wire from pin C to whichever BS2 pin (P0 - P15) you wanted to use to read the TCS230's output. To use the sample code posted in the docs, this would be P7. Likewise for S2 (E), S3 (F), and LED (D). These would connect to P1, P0, and P5, respectively, to use the sample code.

    Please let me know if this helped.

    -Phil

    Post Edited (Phil Pilgrim (PhiPi)) : 10/8/2007 6:00:00 PM GMT
  • D FaustD Faust Posts: 608
    edited 2007-10-08 17:55
    Look at the top of page 3 of·the SIP expander datasheet: http://www.parallax.com/dl/docs/prod/boards/DB-Expander_doc.pdf It explains what each pin of the SIP socket is for the TCS230.

    Sorry, I missed the part about you already having the necessary parts.blush.gif

    EDIT: I wrote as Phil posted.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    LOOKDOWN ThisThread, [noparse][[/noparse]Your_?, My_?, Cool_Thing], looknum
    LOOKUP looknum, [noparse][[/noparse]1, 2, 3], subnum
    ON subnum GOTO Hope_this_helps, Thanks!, WOW!!
    END 
    

    Post Edited (D Faust) : 10/8/2007 6:09:49 PM GMT
  • GaboGabo Posts: 10
    edited 2007-10-09 02:24
    yeah it help, I already had the connections made just want to make sure i have it right, my only doubt is in the code examples, what pin do i put in EN and A0, because the other`s i have already assign them.

    '{$PBASIC 2.5}
    'Define port pins
    EN· CON
    A0· CON
    S0· CON· 3
    S1· CON· 4
    S2· CON· 7
    S3· CON· 8
    nLED· CON· 6
    OUT· CON· 5
    'Define count periods for each color.
    'Adjust these for a reading just under 255
    '· for a white sheet of paper.
    pRED· CON· 12
    pGREEN· CON· 8
    pBLUE· CON· 6
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2007-10-09 02:56
    EN and A0 do not exist on the TCS230-DB. Those are signals that were used with the old AppMod TCS230 module, which is no longer produced. Also, nLED is now LED. However, I see that the color matching demo software on the TCS230-DB product page is for the old version. Attached below is the correct zip. I'll make sure to inform Parallax, so they can post it on the product page, too.

    -Phil
  • GaboGabo Posts: 10
    edited 2007-10-09 16:34
    thanx for the update, but no I have a new doubt what is Id and Owio ???

    'Define port pins

    S3 CON 8
    S2 CON 7
    Id CON ?
    LED CON 6
    Owio CON ?
    Out CON 5

    'Define variables for color results.
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2007-10-09 17:40
    You can safely remove any lines containing Id and Owio. Id is a vestige from an earlier version. Owio is the pin used by the MoBoStamp-pe that is used with OWOUT to set S0 and S1 HIGH for maximum output rate. But these lines are pulled up in the module, so don't need to be messed with. Just be sure to leave the S0 and S1 lines floating, and you should be okay.

    -Phil
  • D FaustD Faust Posts: 608
    edited 2007-10-09 18:28
    pins are defined as

    name PIN # not

    name CON #

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    LOOKDOWN ThisThread, [noparse][[/noparse]Your_?, My_?, Cool_Thing], looknum
    LOOKUP looknum, [noparse][[/noparse]1, 2, 3], subnum
    ON subnum GOTO Hope_this_helps, Thanks!, WOW!!
    END 
    
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2007-10-09 18:39
    It can be done either way. The PIN designator is just a fancy CON that gets special, context-dependent treatment in certain situations. These situations don't arise in the TCS230 code.

    -Phil
  • D FaustD Faust Posts: 608
    edited 2007-10-09 18:55
    I wasn't sure if it mattered or not. PIN is the "standard" way right?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    LOOKDOWN ThisThread, [noparse][[/noparse]Your_?, My_?, Cool_Thing], looknum
    LOOKUP looknum, [noparse][[/noparse]1, 2, 3], subnum
    ON subnum GOTO Hope_this_helps, Thanks!, WOW!!
    END 
    
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2007-10-09 21:57
    Yes, it is. I remember back several years ago when I wrote the original TCS230 code, I was having trouble getting PIN to do what I thought it should. It was probably my misunderstanding, but I gave up and used CON instead. And there it stands to this day.

    -Phil
Sign In or Register to comment.