View Full Version : BS2 communicate with PC when running a program

03-18-2010, 11:11 AM

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.

03-18-2010, 08:53 PM
· 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.siskconsult.com).



Tom Sisk


03-21-2010, 01:13 PM
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?

03-21-2010, 09:20 PM
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.

03-21-2010, 10:56 PM
This is perfect thank you Jeff! I happen to recently have started learning VB so your template will help a lot.