Shop OBEX P1 Docs P2 Docs Learn Events
Newbie needs a hand with new program please ? — Parallax Forums

Newbie needs a hand with new program please ?

docspawndocspawn Posts: 1
edited 2006-09-18 01:46 in BASIC Stamp
Hi All
I have got myself an enviromental project that has to start real soon, one of the
things i require is a means of getting a o/p trigger, from monitoring a continuous
i/p of RS232 hex codes, only triggering when a particular code is seen.
I'll note step by step what i need and would be for ever greatful if any one out
there can help me, as i said i have no experience with programming of the basic
stamp stuff.·So even any pointers will help me.
To start i have a BS2 module and below is the stages i think i'd need to do but
open to correction

1. Setup com port, baud rate
2. set up a·BS2·I/P pin·(only 1 I/P·required Receive and gnd) and O/P pin
··· for the trigger.
3. Monitor the I/P for any 'F2' (Think this is the Serin command)
4. When 'F2' seen , raise the o/p high for 5 sec's
5. After 10 sec's reset back to line 3.
6. The End

Please write,call,email or pop round for a beer·and help me in anyway !
Thanks in antip
················· D.S.



Post Edited By Moderator (Chris Savage (Parallax)) : 9/17/2006 9:17:13 PM GMT

Comments

  • RandyRandy Posts: 79
    edited 2006-09-18 01:06
    HI D.S.
    I am somewhere between beginer and medium myself as a pbasic programer, but have you looked at the "WAIT (Value)" formatter for SERIN? I have found that the answer to allmost all Basic Stamp questions, my own excluded of course, are in the the book or in help. You just have to read it several times before the light goes on.
    Randy
  • Kevin WoodKevin Wood Posts: 1,266
    edited 2006-09-18 01:46
    I posted a couple of example programs in response to another post that are close to what you're looking for. You can look at them as examples, and should be able to modify them easily enough with the Stamp Manual (downloadable) and Stamp IDE help file.

    Here's the link: http://forums.parallax.com/showthread.php?p=605784
Sign In or Register to comment.