Here is my VB6 to Basic Stamp 2 "guide lights" prototype project!
LittleTyke
Posts: 34
Following all the very useful advice I have received from other members in this forum over the past week or so, I have now produced my first prototype to experiment with sending data from a VB6 program to a Basic Stamp 2. See my new web site at http://www.littletyke.myzen.co.uk/vb6tobasicstamp2/index.html
Many thanks for all your support!
Many thanks for all your support!
Comments
this is william, and i am a newbie to programming... i am currently trying out VB6 and BASIC Stamp 2 too in a project...
i wish to learn more about this 2 software, i went to your link too, thus i have this question in mind... you circuit board will send signal/data to the LED right? like from the VB6 form, when i run it, and if i select the number (eg: LED1), the circuit board will then light light the LED right? but using what component (i refering to your circuit borad which link to the LED? is it a microcontroller?
and one more question... the BASIC Stamp is used to make sure there is communication between the computer and your LED circuit board right? when i use the BASIC Stamp, and type the letters a-h to switch off LED and also A-H to switch on LED correct? but how do i use BASIC Stamp and at the same time be shown in the VB6 when i run it? is it possible to show both BASIC Stamp terminal together with the VB6 form that you bhave created???
sorry to asked so many things.. jus wanted to know more... thanks...
will*
The Stamp 2 microcontroller runs the program shown on my web page. The VB6 program runs the other program shown on the same page. When I select one of the option buttons on the VB6 form, the code transmits a byte to the Stamp 2, whose program then determines which LED to light up.
In the first program, the VB6 side sends a single character A through H or a through h. The uppercase character switches on the corresponding LED, e.g. "A" switches on LED0, "B" switches on LED1 etc, while the lowercase character switches its associated LED off.
This is not the most elegant way of doing it! But I wanted to see something happening in this initial prototype.
The second program is somewhat more sophisticated and uses Boolean logic working at the bit level to determine which LED to switch on. Thus I need only 4 bits in the byte that is sent from the VB6 program to the Stamp 2. Note that the Stamp 2 has to be running its second program to receive and respond to the data from VB6.
http://www.parallax.com/detail.asp?product_id=602-00010
http://www.parallax.com/detail.asp?product_id=602-00009
and they tell you how to use it
http://www.parallax.com/dl/docs/books/sw/Web-SW-v2.1.pdf
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Have Fun
TR