Shop OBEX P1 Docs P2 Docs Learn Events
PC data transfer to the basic stamp — Parallax Forums

PC data transfer to the basic stamp

lordericolorderico Posts: 12
edited 2008-12-24 04:05 in BASIC Stamp
Is it possible to transfer information from the computer to the basic stamp using the usb connection that I use do download the program to it from my computer. If so, how? Can SERIN or SEROUT help here? I want to trigger a response in my vehicle from my computer.

Eric

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2008-12-24 01:52
    Read the chapters in the Stamp Basic Manual on the DEBUG and DEBUGIN statements. You can also use SERIN and SEROUT with I/O pin #16 (which uses the programming port). There are some limitations that are discussed in the manual.
  • $WMc%$WMc% Posts: 1,884
    edited 2008-12-24 01:57
    Eric

    Yes

    Take a look at the SERIN/SEROUT and the pin assignments.Also experiment#34 in the StampWorks Manuel using a RS232 DCE

    _______________$WMc%______________Merry Xmas

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    The Truth is out there
  • lordericolorderico Posts: 12
    edited 2008-12-24 02:28
    Thanks for the help. I am trying to use DEBUGIN right now. I copied this from the manual:

    ' {$STAMP BS2}
    
    ' {$PBASIC 2.5}
    
    myNum VAR Nib
    
    DEBUG CLS, "Enter a number (1-5)? --> "
    
    DEBUGIN DEC1 myNum
    
    IF ((myNum >= 1) AND (myNum <=5)) THEN
    
      DEBUG CLS, "You entered: ", DEC1 myNum
    
    ELSE
    
       DEBUG CLS, "Sorry, number out of range"
    
    ENDIF
    
    END
    
    



    Only problem is, I don't know how to flush my input to the basic stamp. I am running this in Ubuntu linux in the terminal. Pressing enter just goes to a new line. Any suggestions?

    Thanks,
    Eric
  • lordericolorderico Posts: 12
    edited 2008-12-24 02:51
    Never mind, it looks like that problem got fixed here:
    http://forums.parallax.com/forums/default.aspx?f=5&m=283117

    Eric
  • $WMc%$WMc% Posts: 1,884
    edited 2008-12-24 04:05
    Cool

    Glad Your up and running


    _____$WMc%________________Merry Xmas_

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    The Truth is out there
Sign In or Register to comment.