Basic Stamp II and Bob 2
Archiver
Posts: 46,084
Hi...
I just joined the group. I have a fairly extensive electronic service
background, but only recently discovered the wonderful world of the
Basic Stamp.
I have a question, if anyone has run into this before. It's a
combination Stamp programming and Bob 2 programming problem:
I am building a surveillance camera switcher and have all the
programming basically done. I'm using the Bob 2 O.S.D. board from
Decade Engineering to overlay camera and operational information onto
the selected camera video. All is well, except I would like to
represent the Bob 2 screen position data with a variable. Currently,
to talk to the Bob 2 from the stamp you use the serout statement. The
format is:
SEROUT (pin #),(baud rate),[noparse][[/noparse]"{Cxxyy","DATA"]
Where "DATA" would be the displayed information, "xx" is a two digit
number representing the column position(0-27), and "yy" is a two
digit number representing the row position (0-10). I'd like to
substitute a variable into the xx and yy positions, but I've tried
everything I can think of and haven't been successful yet. And the
programming examples out there for the Bob 2 are practically non-
existant. I'd appreciate word from anyone who has been able to do
this.
Thanks
Craig Latta
I just joined the group. I have a fairly extensive electronic service
background, but only recently discovered the wonderful world of the
Basic Stamp.
I have a question, if anyone has run into this before. It's a
combination Stamp programming and Bob 2 programming problem:
I am building a surveillance camera switcher and have all the
programming basically done. I'm using the Bob 2 O.S.D. board from
Decade Engineering to overlay camera and operational information onto
the selected camera video. All is well, except I would like to
represent the Bob 2 screen position data with a variable. Currently,
to talk to the Bob 2 from the stamp you use the serout statement. The
format is:
SEROUT (pin #),(baud rate),[noparse][[/noparse]"{Cxxyy","DATA"]
Where "DATA" would be the displayed information, "xx" is a two digit
number representing the column position(0-27), and "yy" is a two
digit number representing the row position (0-10). I'd like to
substitute a variable into the xx and yy positions, but I've tried
everything I can think of and haven't been successful yet. And the
programming examples out there for the Bob 2 are practically non-
existant. I'd appreciate word from anyone who has been able to do
this.
Thanks
Craig Latta
Comments
I've never done this, but I think the answer is something like:
SEROUT (pin #),(baud rate),[noparse][[/noparse]"{C", dec2 Xvar, dec2 Yvar, "DATA"]
Where Xvar and Yvar are your column and row position variables. Please let
us know if this works for you!
I would like to offer additional BOB-II programming examples at our web
site... So, to anyone who may have written BOB-II applications for the
BASIC Stamp, please let me know if you have something that Decade
Engineering could publish. Full credit will be given, of course.
>I have a question, if anyone has run into this before. It's a
>combination Stamp programming and Bob 2 programming problem:
>I am building a surveillance camera switcher and have all the
>programming basically done. I'm using the Bob 2 O.S.D. board from
>Decade Engineering to overlay camera and operational information onto
>the selected camera video. All is well, except I would like to
>represent the Bob 2 screen position data with a variable. Currently,
>to talk to the Bob 2 from the stamp you use the serout statement. The
>format is:
>
>SEROUT (pin #),(baud rate),[noparse][[/noparse]"{Cxxyy","DATA"]
>
>Where "DATA" would be the displayed information, "xx" is a two digit
>number representing the column position(0-27), and "yy" is a two
>digit number representing the row position (0-10). I'd like to
>substitute a variable into the xx and yy positions, but I've tried
>everything I can think of and haven't been successful yet. And the
>programming examples out there for the Bob 2 are practically non-
>existant. I'd appreciate word from anyone who has been able to do
>this.
Mike Hardwick, for Decade Engineering -- <http://www.decadenet.com>
Manufacturer of the famous BOB-II Serial Video Text Display Module!
That was it exactly. Thanks much! Just what I needed.
I had forgotten about the "dec2" (dec1-5) modifier to format the variable.
Should've gone back and studied the debug modifier list more carefully.
I would be happy to let you post my program when it's finished.
Craig Latta
>
>
Original Message
> From: Mike Hardwick [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=c3HS2fqERWbNt0GlTNfRwewqGjVqXO4yf7yPncga5T5XHD0q8VHwm0_4vI4ExKqZz3A4v4Jl-V1R-FMIqKXb]decade@w...[/url
> Sent: Thursday, July 06, 2000 11:53 AM
> To: basicstamps@egroups.com
> Subject: Re: [noparse][[/noparse]basicstamps] Basic Stamp II and Bob 2
>
>
> Craig,
>
> I've never done this, but I think the answer is something like:
>
> SEROUT (pin #),(baud rate),[noparse][[/noparse]"{C", dec2 Xvar, dec2 Yvar, "DATA"]
>
> Where Xvar and Yvar are your column and row position variables. Please let
> us know if this works for you!
>
> I would like to offer additional BOB-II programming examples at our web
> site... So, to anyone who may have written BOB-II applications for the
> BASIC Stamp, please let me know if you have something that Decade
> Engineering could publish. Full credit will be given, of course.
>
> >I have a question, if anyone has run into this before. It's a
> >combination Stamp programming and Bob 2 programming problem:
> >I am building a surveillance camera switcher and have all the
> >programming basically done. I'm using the Bob 2 O.S.D. board from
> >Decade Engineering to overlay camera and operational information onto
> >the selected camera video. All is well, except I would like to
> >represent the Bob 2 screen position data with a variable. Currently,
> >to talk to the Bob 2 from the stamp you use the serout statement. The
> >format is:
> >
> >SEROUT (pin #),(baud rate),[noparse][[/noparse]"{Cxxyy","DATA"]
> >
> >Where "DATA" would be the displayed information, "xx" is a two digit
> >number representing the column position(0-27), and "yy" is a two
> >digit number representing the row position (0-10). I'd like to
> >substitute a variable into the xx and yy positions, but I've tried
> >everything I can think of and haven't been successful yet. And the
> >programming examples out there for the Bob 2 are practically non-
> >existant. I'd appreciate word from anyone who has been able to do
> >this.
>
> Mike Hardwick, for Decade Engineering -- <http://www.decadenet.com>
> Manufacturer of the famous BOB-II Serial Video Text Display Module!
>
>
>
>
>