Shop OBEX P1 Docs P2 Docs Learn Events
BS2 communicate with PC when running a program — Parallax Forums

BS2 communicate with PC when running a program

rh3drh3d Posts: 14
edited 2010-03-21 15:56 in BASIC Stamp
Hi,

I'm looking for a push in the right direction, or to know if this is even possible with a BS2. I have the full experiment board.

I have a circuit with 5 force sensitive resistors. There feedback sensitivity is dialed in with a trimpot and the feedback from bending the FSRs lights up a stack of LEDs. What I'm looking for is my min and max to be set with a GUI button on the PC and the feedback from the FSRs to to change numeric values on the PC? I'm looking at port, but I don't want to use debug and I still can't find how I might be able to set my limits variable from an out side GUI. Laptop only has USB. If anyone has any example of something being sent from the BS2 to cmd line and back I would love to see them.

Comments

  • stamptrolstamptrol Posts: 1,731
    edited 2010-03-18 13:53
    · There's no easy way, without some programming ,to go from Stamp to Command line and back.

    · However, heres a little interface that works well with Stamps. It gives two-way communication for 4 analog ins, 4 analog outs and·6 digital in/outs. It's available on my website.· www.siskconsult.com.

    http://www.youtube.com/watch?v=DdW2lWgXaNU

    ·Cheers,


    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Tom Sisk

    http://www.siskconsult.com
    ·
  • rh3drh3d Posts: 14
    edited 2010-03-21 06:13
    Thanks,
    I'm not too concerned about the GUI, I'm just having trouble figuring out how to send / recieve to a PC other than the debug terminal.. which shows me its possible, no. Any chance of sharing a small hello world chatter from the BS2?
  • UnsoundcodeUnsoundcode Posts: 1,532
    edited 2010-03-21 14:20
    Hi , there are various terminal programs you can use to send and receive data from a Stamp or you can make your own GUI .

    The communication between PC terminal and Stamp is usually done with a serial connection so it helps to get familiar with the PBasic instructions SERIN and SEROUT.

    If your running a Windows OS its not extremely difficult to create your own interface using one of the Visual Basic editions.

    This link http://forums.parallax.com/showthread.php?p=671804·may give a few pointers even if your not building a VB app .

    If the Visual Basic appeals to you and you need help tailoring something for your own application then I am sure I or others can probably help in some way.

    Jeff T.
  • rh3drh3d Posts: 14
    edited 2010-03-21 15:56
    This is perfect thank you Jeff! I happen to recently have started learning VB so your template will help a lot.
Sign In or Register to comment.