Shop OBEX P1 Docs P2 Docs Learn Events
Programming a 2px on a homework board — Parallax Forums

Programming a 2px on a homework board

QAHQAH Posts: 13
edited 2008-01-09 02:50 in BASIC Stamp
I have a Basic Stamp Homework Board, and I also have a Basic Stamp 2px module. As you may know, the homework board has a basic stamp built into it, so I can't stick my 2px module on it. I was wondering though, can I program my homework board to send signals to the 2px module to program it? If this is possible please let me know.

Thanks

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2008-01-08 03:26
    There's a document describing the download protocol for all the Stamps except the BS2px here: www.parallax.com/BASICStampTokenizer/tabid/390/Default.aspx. The BS2px likely uses the identical protocol with only the initial identification character being different (and not yet publicly documented). It ought to be possible to use the Homework Board to monitor a download to the BS2px from the Stamp Editor to see what the identification character is, then write a download program using that.
  • QAHQAH Posts: 13
    edited 2008-01-08 17:16
    So I guess it would be possible to program a basic stamp module using some SEROUT commands huh?
  • Mike GreenMike Green Posts: 23,101
    edited 2008-01-08 17:21
    It's a bit more complicated than that ... read the document, but most of the communication is serial I/O.
  • UnsoundcodeUnsoundcode Posts: 1,532
    edited 2008-01-08 17:27
    Hi QAH, do you just want to program the BS2px or do you specifically want to use the homework board to program it. The easiest way would be to connect a 9 pin connector as described in this document

    http://www.parallax.com/Portals/0/Downloads/docs/prod/schem/BS2px24SchematicRevA.pdf

    and program the BS2px using the PBasic IDE.

    If you want to use the homework board it becomes more complex but this link gives an excellent description of how to set about it.

    http://www.emesys.com/BS2clone.htm

    whichever way you choose is going to use serial commands.

    Jeff T.
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2008-01-08 18:22
    Since the BS2px programs at 19200 bps you cannot use the BS2 on the H/W Board for programming. You can, however, use the breadboard area to connect power and serial connections (through an independent serial connection) to facilitate programming. Take care.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • QAHQAH Posts: 13
    edited 2008-01-09 02:05
    Well, can I program my Homework Board to recive SERIN commands from the PBASIC editor·and output them to the 2px through the bread board and the pinouts? Kinda like a pass through setup.
  • Mike GreenMike Green Posts: 23,101
    edited 2008-01-09 02:50
    Chris did mention that the BS2px requires 19200 Baud for programming and the Homework Board's Stamp can't handle that (maximum 9600 Baud) so I guess you can't use the Homework Board for pass through.
Sign In or Register to comment.