Shop OBEX P1 Docs P2 Docs Learn Events
PINK and the Homework Board — Parallax Forums

PINK and the Homework Board

Joe MJoe M Posts: 45
edited 2006-03-03 04:44 in BASIC Stamp
Sorry about another PINK question... anyone have one working with the homework board? I can't get my serial communication working right. None of the samples in the pdf are working for me. Any help would be really appreciated.

Thanks!
-Joe

Comments

  • Joe MJoe M Posts: 45
    edited 2006-03-03 01:22
    Not sure if my problems were clerar enough, when I try to use serin/serout I get goofy characters.

    Here are some code samples, this is the code include in PINK-code-v1.0.zip that is on the parallax web site. If I run:
    ' PINK_01.bs2
    ' {$STAMP BS2}
    ' {$PBASIC 2.5}

    NBVAR VAR BYTE

    SEROUT 8,396,[noparse][[/noparse]"!NB0R06"]
    SERIN 7,396,[noparse][[/noparse]NBVAR]

    DEBUG DEC NBVAR

    END

    The output is 255

    if I run :
    ' PINK_02.bs2
    ' {$STAMP BS2}
    ' {$PBASIC 2.5}

    NBVAR VAR BYTE(16)

    SEROUT 8,396,[noparse][[/noparse]"!NB0R06"]
    SERIN 7,396,[noparse][[/noparse]STR NBVAR\16\CLS]

    DEBUG STR NBVAR

    END

    the output is a "~"

    Any help would be greatly appreciated.

    Thanks all.

    -Joe
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2006-03-03 03:51
    Joe,

    ·· Are you using a BASIC Stamp 2 or a different Stamp Model?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
  • Joe MJoe M Posts: 45
    edited 2006-03-03 04:08
    Chris- I am using the Parallax HomeWork Board revB with the on board bs2 chip. This is the board included with the Whats a Microcontroller book. http://www.parallax.com/detail.asp?product_id=28158

    The PINK is working fine with a normal BS2 chip hooked up to it, but its not working its mojo for me on the HomeWork Board...


    Thanks,
    -Joe
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2006-03-03 04:10
    I'm sorry joe, it just sounded like a baud problem and so I thought you were trying another Stamp Board...I haven't tested this on a H/W Board so I don't know if the 220 Ohm Resistors would cause any problems or not...One thing occurs to me though...How are you powering the PINK Module?· What Revision is your H/W Board?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
  • Joe MJoe M Posts: 45
    edited 2006-03-03 04:18
    Once again Chris thanks for your help.

    I am powering the PINK with a seperate 5v power source, its a guess because the power reqs aren't anywhere in the PDF.

    The HW board is a Rev B.

    But I also think its a baud problem...

    Thanks,
    -Joe
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2006-03-03 04:23
    Is there a common ground between the PINK Module and the H/W Board?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
  • Joe MJoe M Posts: 45
    edited 2006-03-03 04:44
    Chris- You area genius, no common ground, now we are in business.

    Thanks,
    -Joe
Sign In or Register to comment.