Shop OBEX P1 Docs P2 Docs Learn Events
Stamp to PC or MAC — Parallax Forums

Stamp to PC or MAC

ArchiverArchiver Posts: 46,084
edited 2002-04-01 14:15 in General Discussion
Hello,

I am trying to interface a Basic Stamp 2 to a 386 box via the serial
port. I'm using Turbo Pascal to program the PC. (yeah, old stuff)

I'd like to have the PC request data from the Stamp and the Stamp
reply. At some point I'd like two-way communication, but at this point
I'll be glad to have a way of capturing data from the Stamp.

I'm not looking to program a GUI, just text prompts and text input.
Just want to grab the data, save it to a text file, and display some
graphs. The only help I need is the code to talk to the serial
port. Can't find anything helpful in the old Turbo Pascal docs.

I also want to do this with Lightspeed Pascal on an old MacOS laptop.
Once again, I'm not interested in using the GUI, just having trouble
wading through Inside the Macinstosh Vol II. If anyone has any code
snippets to setup serial port, and grab the incoming data and save it to
a character array, I'd be grateful.

I know I can use a telcom program or StampPlotLite, etc. But, I'm really
interested in having the flexibility of writing my own application.

Any help you can provide would be appreciated.

Thanks, Pete.


_________________________________________________________
Peter W. Houlihan, (413) 538-3091, phouliha@m...
Mellon Postdoctoral Fellow, Center for Environmental Literacy
Mount Holyoke College, South Hadley, MA 01075

Visit our website at:
http://www.mtholyoke.edu/proj/cel/index.html
__________________________________________________________

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2002-04-01 04:46
    Hi,

    Sorry for the delay in replying to this, but we've had Easter Holidays over
    here.

    For the Mac side:
    Go to www.realbasic.com and download a demo version of RealBasic. It is
    very easy to use! I have written a couple of programs already for the Mac
    which communicate with my BS2. There are samples on my site
    www.lennard.net.nz

    Also, if you want, I can email you (off list) sample code for RealBasic.

    I have recently modified one program, which now has a window that displays
    any characters going to or from the stamp.

    regards,

    Ben, Wellington, New Zealand.

    --
    http://www.lennard.net.nz/
    Ben Lennard, NCEE, Dip EE

    Web Hosting and Electronics R&D
    Club Coordinator, Victoria University of Wellington Hockey Club

    Hm: +64 4 972 7567
    Mb: +64 21 536 627
    87 Spencer Street
    Crofton Downs
    Wellington
    New Zealand

    "To the optimist, the glass is half full. To the pessimist, the glass is
    half empty. To the engineer, the glass is twice as big as it needs to be."

    No animals were harmed in the transmission of this email, although the
    Dog next door is living on borrowed time, let me tell you! Those of you
    with an overwhelming fear of the unknown will be gratified to learn that
    there is no hidden message revealed by reading this warning backwards.




    >From: Peter W Houlihan <phouliha@m...>
    >To: basicstamps@yahoogroups.com
    >Subject: [noparse][[/noparse]basicstamps] Stamp to PC or MAC
    >Date: Mon, 1 Apr 2002 5:02 AM
    >

    > Hello,
    >
    > I am trying to interface a Basic Stamp 2 to a 386 box via the serial
    > port. I'm using Turbo Pascal to program the PC. (yeah, old stuff)
    >
    > I'd like to have the PC request data from the Stamp and the Stamp
    > reply. At some point I'd like two-way communication, but at this point
    > I'll be glad to have a way of capturing data from the Stamp.
    >
    > I'm not looking to program a GUI, just text prompts and text input.
    > Just want to grab the data, save it to a text file, and display some
    > graphs. The only help I need is the code to talk to the serial
    > port. Can't find anything helpful in the old Turbo Pascal docs.
    >
    > I also want to do this with Lightspeed Pascal on an old MacOS laptop.
    > Once again, I'm not interested in using the GUI, just having trouble
    > wading through Inside the Macinstosh Vol II. If anyone has any code
    > snippets to setup serial port, and grab the incoming data and save it to
    > a character array, I'd be grateful.
    >
    > I know I can use a telcom program or StampPlotLite, etc. But, I'm really
    > interested in having the flexibility of writing my own application.
    >
    > Any help you can provide would be appreciated.
    >
    > Thanks, Pete.
    >
    >
    > _________________________________________________________
    > Peter W. Houlihan, (413) 538-3091, phouliha@m...
    > Mellon Postdoctoral Fellow, Center for Environmental Literacy
    > Mount Holyoke College, South Hadley, MA 01075
    >
    > Visit our website at:
    > http://www.mtholyoke.edu/proj/cel/index.html
    > __________________________________________________________
    >
    >
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed. Text in the Subject and
    > Body of the message will be ignored.
    >
    >
    > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
    >
    >
  • ArchiverArchiver Posts: 46,084
    edited 2002-04-01 14:15
    Hello Peter,
    I have a data acquisition program that used to work on 286, 386 & 486.
    Even, if I remember correctly, on a little HP200.
    The reason I had used Pascal then was that in it compiled programs are
    relatively very small. I'll email you the program directly because I
    suspect that most stampers have forgotten that Pascal used to be regarded as
    THE language...
    Regards,
    dovy

    > Stamp to PC or MAC
    > Hello,
    >
    > I am trying to interface a Basic Stamp 2 to a 386 box via the serial
    > port. I'm using Turbo Pascal to program the PC. (yeah, old stuff)
    >
    > I'd like to have the PC request data from the Stamp and the Stamp
    > reply. At some point I'd like two-way communication, but at this point
    > I'll be glad to have a way of capturing data from the Stamp.
    >
    > I'm not looking to program a GUI, just text prompts and text input.
    > Just want to grab the data, save it to a text file, and display some
    > graphs. The only help I need is the code to talk to the serial
    > port. Can't find anything helpful in the old Turbo Pascal docs.
    >
    > I also want to do this with Lightspeed Pascal on an old MacOS laptop.
    > Once again, I'm not interested in using the GUI, just having trouble
    > wading through Inside the Macinstosh Vol II. If anyone has any code
    > snippets to setup serial port, and grab the incoming data and save it to
    > a character array, I'd be grateful.
    >
    > I know I can use a telcom program or StampPlotLite, etc. But, I'm really
    > interested in having the flexibility of writing my own application.
    >
    > Any help you can provide would be appreciated.
    >
    > Thanks, Pete.
    >
    >
    > _________________________________________________________
    > Peter W. Houlihan, (413) 538-3091, phouliha@m...
    > Mellon Postdoctoral Fellow, Center for Environmental Literacy
    > Mount Holyoke College, South Hadley, MA 01075
    >
    > Visit our website at:
    > http://www.mtholyoke.edu/proj/cel/index.html
    > __________________________________________________________
    >
    >
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed. Text in the Subject and
    Body of the message will be ignored.
    >
    >
    > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
    >
    >
Sign In or Register to comment.