PDA

View Full Version : controlling the stamp with VB



cplatt
09-21-2008, 10: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!!!

curtis

PJ Allen
09-21-2008, 10:45 PM
http://forums.parallax.com/showthread.php?p=740216

Unsoundcode
09-21-2008, 11: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.

http://forums.parallax.com/showthread.php?p=671804

Jeff T.

cplatt
09-22-2008, 08: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.
curtis

Unsoundcode
09-22-2008, 10: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

·http://www.parallax.com/Store/Microcontrollers/BASICStampModules/tabid/134/List/1/catpageindex/2/ProductID/378/Default.aspxtxtSearch=usb+to+serial&SortField=ProductName%2cProductName

Jeff T.

allanlane5
09-22-2008, 10: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.

cplatt
09-22-2008, 11:18 PM
roger and wilco
http://forums.parallax.com/images/smilies/smilewinkgrin.gif

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

http://store.nutsvolts.com/product.php?productid=16762&cat=0&page=1

-Stephen

offlanders
09-25-2008, 03: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.

http://www.youtube.com/watch?v=8XYr1g3zIjA

Bryan