BS2 communicate with PC when running a program
rh3d
Posts: 14
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.
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
· 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
·
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?
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.