Shop OBEX P1 Docs P2 Docs Learn Events
Vex TX and RX ports communincating with BS2px — Parallax Forums

Vex TX and RX ports communincating with BS2px

Technic-R-CTechnic-R-C Posts: 117
edited 2008-03-22 14:45 in BASIC Stamp
Hello everyone

I am currently trying to interface the BS2px on the BOE with the Vex TX and RX ports.· I want the BS2px to perform calculations and receive sensor input and then communicate the information to my Vex system through the TX and RX ports.· (TX and RX is·a TTL serial port to the micro-processor).· However, I have no idea where to start or what to do.· I have been looking through this forum and I know that there are much more intellectual people that can help me.·

Here is some info on the Vex TX and RX ports
http://www.vexforum.com/showthread.php?t=1454

Thanks for the help, I really appreciate it.

Technic-R-C

·

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2008-03-21 15:56
    The SERIN and SEROUT statements provide a TTL-level serial port on Stamp I/O pins that you select. Look at the Stamp Basic manual chapters on these statements for details. As with any microcontroller to microcontroller hookup, I recommend using a resistor between the two microcontroller pins to protect against programming mistakes that could make both I/O pins outputs of opposite polarity. A 220 to 1K resistor would work fine.

    Please delete your other message on this topic (use the X in the upper right corner of the message box). It's against forum rules to post the same message or topic in more than one forum.
  • Technic-R-CTechnic-R-C Posts: 117
    edited 2008-03-21 20:36
    Thanks Mike Green

    Does anyone know how to wire the BS2px to the TX and RX ports on the Vex controller.

    Technic-R-C
  • PJAllenPJAllen Banned Posts: 5,065
    edited 2008-03-22 00:25
    Technic-R-C asked...
    Does anyone know how to wire the BS2px to the TX and RX ports on the Vex controller.
    Are you seeking info from someone who's done a Vex-to-Stamp kluge before or just some tips to get you on your way?

    Do you know which pin is RX and which is TX?· The link with the sparing info stated that the VEX data is TTL, anyway.· What's the VEX format, 8-N-1, and what's the baudrate?

    Vex TX (VEX data out) should go to the Stamp pin that you designate as SERIN, Vex RX (VEX data in) should go the the Stamp pin that you designate as SEROUT.

    A series resistor, in both instances, as Mike Green advised, would likely prove beneficial.

    Post Edit --
    What's the object here?

    Found:
    http://www.chiefdelphi.com/forums/archive/index.php/t-37660.html
    There's a pin-out, some related info.


    Post Edited (PJ Allen) : 3/22/2008 12:40:13 AM GMT
  • Bruce BatesBruce Bates Posts: 3,045
    edited 2008-03-22 03:56
    Folks -

    It's my understanding that there are two solutions for utilizing a Vex R/C Control System. One uses an SX microcontroller, and the other can use a PBASIC Stamp. Jon Williams (formerly of Parallax) has developed the SX microcontroller solution to the problem. One place this solution is found is on the All Electronics web site, in PDF format.

    Jon's SX solution can be found at the link below. The PDF is a second link on that web page:
    http://www.allelectronics.com/cgi-bin/item/JS-6/search/6-CHANNEL_TRANSMITTER_AND_RECEIVER_.html

    The solution that is suitable for use with a PBASIC Stamp can be found at the link below: forums.parallax.com/forums/default.aspx?m=193601&f=10&p=3#m226393

    Thanks go to Beau at Parallax, and a few others who helped, for that solution.

    Regards,

    Bruce Bates

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Involvement and committment can be best understood by looking at a plate of ham and eggs. The chicken was involved, but the pig was committed. ANON
  • PJAllenPJAllen Banned Posts: 5,065
    edited 2008-03-22 14:45
    VEX, an aptly named product.

    http://www.merriam-webster.com/dictionary/vex
Sign In or Register to comment.