Connecting a PC and the BS2....
Catspaw
Posts: 49
This may be related to the thread about the PLX......
Tried searching the forum with not much luck.
I would like to use a netbook and Visual Basic as the brains and the BS2 as the functional module.
Everything I've read so far is about connecting the BS2 and using the programming editor (already written to handle the interfacing). But what about using my own app on the PC?
Is this just a hard coding thing where I have to learn my com ports and PC or does any one know of this setup already done here?
Let's say I'm just interested in something simple to learn. Like send a command to turn on one of four leds, then have the BS respond saying it has turned on [X] LED and the PC would tell me that the LED has been turned on.
In this case, I'm probably looking at using only USB based on what the netbook has available (no DB9 connector.).
Tried searching the forum with not much luck.
I would like to use a netbook and Visual Basic as the brains and the BS2 as the functional module.
Everything I've read so far is about connecting the BS2 and using the programming editor (already written to handle the interfacing). But what about using my own app on the PC?
Is this just a hard coding thing where I have to learn my com ports and PC or does any one know of this setup already done here?
Let's say I'm just interested in something simple to learn. Like send a command to turn on one of four leds, then have the BS respond saying it has turned on [X] LED and the PC would tell me that the LED has been turned on.
In this case, I'm probably looking at using only USB based on what the netbook has available (no DB9 connector.).
Comments
Have a look at StampPlot Pro on the Stamp Downloads webpage. There's also an Excel plug-in called PLX-DAQ. You could use Visual Basic and there are some examples using that, but I don't have links to them.
I think what I am supposed to do is use the USB/Serial interface. Then figure out any protocols/code in VB to establish my direct line of communication.
Either way, at least I know what and where to research now. I wasn't exactly sure what part of this type of system I should be looking at to do this.
Thanks.
link: http://forums.parallax.com/showthread.php?96973-VB-Express-to-Stamp-Template
Jeff T.
In this case, it is a serial interface through the DB9. So I will still need the USB to Serial interface. But at least that's just store-bought hardware. The column will set me up to establish my own line of communication through Visual Basic.
So...once you have your windows-based app sending data to the PIC, you could either use the I2C bus to communicate with your stamps, or make your own bus as theres a bucket load of I/O...
Just an idea...but If you want to know more just give me a shout.
I'm sure I'll go thru it very thouroghly.
I have been doing my reading, then, just got my stamp yesterday. So I can start applying what I've been reading about now. I know the interface is simple and once you have it, you're done messing about with it (more or less.) In that respect, As much as I enjoy writing code, I'm more about the h/w than the s/w. So, between the couple of threads on this now, all us noobs can get it understood and move on to the fun stuff.
My goal all along has been to do what it sounds like you're doing....a buss system allowing multiple PICs. So having the brains in a PC made sense (never wanted to recreate a PC with stamps...just wanted the slaves.)