Shop OBEX P1 Docs P2 Docs Learn Events
Serial to Computer interface — Parallax Forums

Serial to Computer interface

christian_hahn13christian_hahn13 Posts: 30
edited 2005-08-12 04:11 in General Discussion
Hello,

I am in need of something a bit unusual.

What I need is a way to succesfully interface a PC and a BS2e Stamp module.

The tricky thing about his is that I want the PC to be the transmitter and the BS2e to be the recieving end.

Also, I am intending to output data through the serial COM and have it be perfectly understood by the Stamp Module.

I good thing I have discoverd is that both the PC and the Basic Stamp module use an asychronous signal (which mean there is only a signal and a ground not a clock wire).

Any wise ideas or solutions about this dilema would be gratefully appreciated.\

Thank you very much! smile.gif

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔


Post Edited (christian_hahn13) : 8/11/2005 6:47:37 PM GMT

Comments

  • Ryan ClarkeRyan Clarke Posts: 738
    edited 2005-08-08 00:25
    Christian,

    Can you be more specific on what you are doing? You can use serial communication either direction with a stamp (with certain limitations)-

    Read the docs on SERIN~

    Ryan

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Ryan Clarke

    Parallax Tech Support
    rclarke@parallax.com
  • christian_hahn13christian_hahn13 Posts: 30
    edited 2005-08-08 00:55
    What I meant was that I have an application on a computer that streams data through a serial port and I am thinking of making the Bs2e read the data and apply it for what I am trying to do.

    Also, the serin documentation mentions nothing about an interface where the reciever is a stamp and the sender is a Pc.

    Thanks!


    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔


    Post Edited (christian_hahn13) : 8/8/2005 12:59:14 AM GMT
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2005-08-08 01:33
    Hello,

    ·· The BASIC Stamp can monitor the programming port using SERIN 16, however, it does matter how fast the data will be coming in (How often) and what else the Stamp Module will be doing.· Can you be more specific?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-08-08 01:34
    This will help: http://www.parallax.com/dl/docs/cols/nv/vol3/col/nv89.pdf

    When the PC will be involved it's important to use flow-control so that the BASIC Stamp can be ready (sitting on SERIN)·before any data is sent.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
  • christian_hahn13christian_hahn13 Posts: 30
    edited 2005-08-08 01:38
    Thanks!

    I only have one last question:

    In the serin documentation it mentions the choice of using a line driver to boost the signal.

    Would that be necessary for me?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-08-08 01:48
    You should use a line driver to keep the signals clean and give you the ability to use flow control. If you data is sparce and simple and the Stamp is not likely to miss it, then you can connect direct -- but you need to keep the connections short, put a 22K resistor in the SERIN line, and use an Inverted baud mode (the MAX232 does that for us when we use it).

    Here's the thing ... serial ports seem to be very finicky anymore and aren't as easy to deal with as back in the "old days." The MAX232 circuit isn't expensive, and will probably save you a lot of trouble.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
  • christian_hahn13christian_hahn13 Posts: 30
    edited 2005-08-08 01:54
    Now that I have gone over the the link you provided me I think I am going to use the way described by you in the documentation of Nuts and Volts.

    Thanks for all the help!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
  • christian_hahn13christian_hahn13 Posts: 30
    edited 2005-08-08 02:26
    Is the software that you made with Visual Basic for download?

    ?Thanks?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
  • christian_hahn13christian_hahn13 Posts: 30
    edited 2005-08-08 02:37
    The application that I am going to be getting my information is not Visual Basic.

    But, I am still gonna be able to do the same in whatever other computer language. Correct?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-08-08 03:19
    You can use any computer language you want: VB, C+/C++, Delphi, Java, Python, Perl ... the output from the serial port is the same, electrically.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
  • christian_hahn13christian_hahn13 Posts: 30
    edited 2005-08-08 03:24
    That last reply you wrote really made me happy!!!

    Specifically, when you mentioned Python because that is exactly the one that I am using.l

    Thanks!!!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-08-08 12:21
    I'm learning Python too. Very interesting language and I like that it will work on any platform. I'm just getting started though, and have a long way to go....

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
  • christian_hahn13christian_hahn13 Posts: 30
    edited 2005-08-08 19:09
    Nice

    Good Luck!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
  • dandreaedandreae Posts: 1,375
    edited 2005-08-11 19:10
    Just out of curiosity, have you checked out eb500 Bluetooth modules?· The eb500 allows you to communicate by way of Bluetooth using the BASIC Stamp and the PC.· Here is a link for more information:· http://www.parallax.com/detail.asp?product_id=30068 and http://www.parallax.com/detail.asp?product_id=30069

    Dave

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Dave Andreae

    Tech Support
    dandreae@parallax.com
    Http://www.parallax.com

    ·
  • christian_hahn13christian_hahn13 Posts: 30
    edited 2005-08-12 04:11
    I have looked at the mods online, but I have found a wired interface to be more parctical.

    -Christian Hahn

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Sign In or Register to comment.