View Full Version : controlling the stamp with VB

09-21-2008, 09:35 PM
Hello Everyone

I am a newbie that would like to control the output of the stamp with my computer via the USB port through a VisualBasic program. Does anyone have a good article to point me to? Suggestions/Opions welcome too. Thank you so much!!!


PJ Allen
09-21-2008, 09:45 PM

09-21-2008, 10:39 PM
Hi Curtis, here's a link to a post that gives a few ideas on setting up communications with a Stamp/SX/Prop using the Express versions of VB.


Jeff T.

09-22-2008, 07:51 PM
Thank you gents for all the help. I noticed though all the links dealt with serial communication and the serial port, not the USB port. Am I mistaken?
Thanks in advance.

09-22-2008, 09:28 PM
Hi Curtis, programming and communication with a Stamp is done via a serial link which can be RS232 , TTL or both. The programming port to which the DB9 connector from the PC attaches (P16 )has a line driver and can accept RS232 signals (+12 / -12 volts ), the rest of the Stamps I/O (P0 to P15 ) must use a TTL (5 volt) signal which can be direct or achieved using a seperate line driver such as the MAX 232 chip. To accomodate USB Parallax sell a USB to serial adapter·with a·USB driver that the PC sees as a regular serial port. So when you program your VB app the instructions you code would be for serial communications. The same goes for Parallax products that already have the usb connector attached, the connector is an interface to a USB to serial chip.

adapter link


Jeff T.

09-22-2008, 09:32 PM
Yup, the easiest way to interface to the BS2 using USB is through a USB to serial adapter. The Driver for the adapter makes it look like a 'local' serial port to the PC side software.

09-22-2008, 10:18 PM
roger and wilco

09-24-2008, 10:42 PM
There is a book/kit about this:



09-25-2008, 02:48 AM
I posted a Video on youtube of something along those lines, you might check it out and see if it's an good.