Shop OBEX P1 Docs P2 Docs Learn Events
BS2 as a rs232 multiplexor???? — Parallax Forums

BS2 as a rs232 multiplexor????

ArchiverArchiver Posts: 46,084
edited 2000-10-16 00:46 in General Discussion
I am trying to create an automated flight system. It will have 4 inputs
(gps, compass, joystick, and a altimeter) and two outputs to control two
strong servos via two motor minds. Is it possible to program a BS2 to act as
a rs-232 multiplexor to handle the incoming data streams and send the
information it gets the a program I am making. I'm a little out of my league
with the stamp and was hoping you could help. I have a long time to
implement this so I also have a while to learn. Any help would be greatly
appreciated.

Tim Dale
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at
http://profiles.msn.com.

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2000-10-15 16:20
    I don't believe the stamp will be able to function as an RS-232
    multiplexer. The stamp is not capable of recieving simultanious serial
    streams. (it is single threaded, and only capable of one task at a
    time.)

    However, if you can apply flow control to all the devices which will
    send the stamp data, then you may be able to use the stamp. Every
    device will have to buffer it's data, until the stamp signals the device
    with the appropriate flow control line. (sorry, i'm a bit rusty on my
    rs-232.) This setup may not be as responsive.

    joshua

    Excerpts from Stamp_List: 15-Oct-100 [noparse][[/noparse]basicstamps] BS2 as a rs23.. by
    Tim·Dale@h...
    > I am trying to create an automated flight system. It will have 4 inputs
    > (gps, compass, joystick, and a altimeter) and two outputs to control two
    > strong servos via two motor minds. Is it possible to program a BS2 to act as
    > a rs-232 multiplexor to handle the incoming data streams and send the
    > information it gets the a program I am making. I'm a little out of my league
    > with the stamp and was hoping you could help. I have a long time to
    > implement this so I also have a while to learn. Any help would be greatly
    > appreciated.
  • ArchiverArchiver Posts: 46,084
    edited 2000-10-16 00:46
    Long long ago, I used some level shifters on either side of a mux and demux.
    The mux and demux gave me 8 to 1 and then 1 to 8. The stamp can provide the
    control lines to select the port. You only need the 8 to 1.

    Richard
Sign In or Register to comment.