Question on Serial communication with a PBASIC
Drud0616
Posts: 26
Hey,·I am working on a project for a class of mine.· Basically it will be an "automatic bartender" and since I am a beginner with microcontrollers I decided to go with the Basic Stamp.· I have a couple of questions that I hope this forum can help me with.··How would I establish·a serial connection so the microcontroller can communicate with a pc user interface.· Is this done through the same connection that is used to program the BS2?· What methods or resources·can I use in order to make this process as painless as possible?· Keep in mind that I'm a beginner.
Post Edited By Moderator (Jon Williams) : 10/21/2004 4:51:08 PM GMT
Post Edited By Moderator (Jon Williams) : 10/21/2004 4:51:08 PM GMT
Comments
The BASIC Stamp is programmed with PBASIC.
Yes, serial communication with a PC can happen with the same pins used for programming. Start by reviewing the DEBUG and SERIN/SEROUT commands in the BASIC Stamp Manual. Even more importantly, take a look at the What's a Microcontroller projects. You can download the text for free.
There are also lots of neat serial port utilities to connect the Stamp to your PC for data display/datalogging. Check out StampDAQ (stream data into Excel) or StampPlot (graph data from a BASIC Stamp) as examples.
Of course, some customers prefer to write their own interface with VB, Delphi, etc but the chances are good that you can accomplish most of what you want to do either with our BASIC Stamp Windows editor or one of our free utilities.
What, exactly do you want to do with the PC as far as serial connections are concerned?
We can help!
Ken Gracey
Parallax, Inc.
the rescourses you told me about.