Sunday, February 3, 2008

[oopic] Re: SerLCD1 (Kronos Robotics) With OOPic-R

Ok, I connected the Piggy Back's serial line to I/O line 15 on my R
board. When I downloaded the code I displayed in my previous message
to my OOPic and ran it, every character in the first and third lines
became a dark rectangle, while the second and fourth lines stayed
completely blank. If the problem could be that I need to convert to
ASCII characters, how would I do that? Do you think there's anything
else that could be causing this problem?

Thanks again,

Jason


--- In oopic@yahoogroups.com, ooPIC Tech Support <dennis.clark@...> wrote:
>
> See below:
>
> destroyerx5 wrote:
> > Thanks for replying. I found that the Piggy Back matched the pin
> > order (Ground, +5v, Signal) of each I/O line on the 56-pin I/O
> > connector on my R board, so I connected the Piggy Pack to I/O line 1.
> >
> >
> I recommend that you use an IOline from IO8-IO15 instead. You
need to
> go through some pushups to use the analog lines for digital, which
> aren't worth it if you don't have to. On the other hand, with a sharp
> implement you can change the pinout on your connector and plug it into
> the serial LCD line on the R board.
> > I read through the code samples provided for other microcontrollers in
> > the Piggy Back manual ( http://tinyurl.com/2mhqau ), but I still don't
> > fully understand how to control the Piggy back with an OOPic. To
> > display "Hello" at position 1 on line 2 using a BASIC Stamp, the
code is:
> >
> > SEROUT 2,84,[2,1,"Hello"]
> >
> >
> The two controllers are different - It would be different yet for
> every other micro in use out there.
> > To achieve this same result with an OOPic, would I need to do
> > something like this where I change the Value property three
> > consecutive times (the last one is a String):
> >
> > Dim display As New oSerialL
> >
> > Sub Main()
> > display.IOLineS = 1
> > display.Baud = cv9600
> > display.Operate = cvTrue
> > display.Value = 2 'Line 2
> > display.Value = 1 'Position 1
> >
> I'm not hip to Stamp programming - are those '2' and '1' ASCII
> characters or binary numbers? The answer to that question will
> determine what you need to send. If they need binary numbers then what
> yo have written is so, if ASCII then you need to convert to ASCII.
> Other than that, you are correct.
> > display.String = "Hello" 'Text
> > End Sub
> >
> > If not, would you happen to know what code I should use instead?
> >
> > Also, I have one other question:
> >
> > I haven't tested this code yet; as long as I have the Piggy Back's +5v
> > and Ground wires connected properly to the OOPic, do I run any risk of
> > damaging the Piggy Back or the LCD as I test out different code?
> >
> >
> As long as the +5V and ground are correct then you are OK.
>
> DLC
> > Thank you again for your time,
> >
> > Jason
> >
> > --- In oopic@yahoogroups.com, ooPIC Tech Support <dennis.clark@>
wrote:
> >
> >> The oLCDSE is for some selected models of the Scott Edwards serial
> >> LCD's. Your best bet is to use an oSerialL object since you are
only
> >> sending data to it. You will have to do your own formatting, but
the
> >> .String ="This is a test" and .String = str$(number) methods are
dead
> >> useful here.
> >>
> >> DLC
> >>
> >> destroyerx5 wrote:
> >>
> >>> Hello,
> >>>
> >>> I recently purchased a 4x20 Mark III parallel LCD (
> >>> http://www.junun.org/MarkIII/Info.jsp?item=36 ), along with a Kronos
> >>> Robotics Serial LCD Deluxe Piggy Back ( http://tinyurl.com/2n68jb ),
> >>> the latter of which allows a microcontroller to control the LCD
> >>> through a serial interface. I am planning on connecting the Piggy
> >>> Back to the designated Serial LCD I/O pins (line 16, +5v, and
Gnd) on
> >>> my OOPic-R. Does anyone happen to know what OOPic object I
should use
> >>> to control my setup? Could I use oLCDSE and change the baud rate to
> >>> 9600 (that of the SerLCD1 chip)? Or should I use one of the various
> >>> oSerial objects? Also, is the Serial LCD I/O connector the best
place
> >>> to be connecting the Piggy Back to my board?
> >>>
> >>> Thanks for your help,
> >>>
> >>> Jason Quint
> >>>
> >>>
> >>>
> >>>
> >>> Yahoo! Groups Links
> >>>
> >>>
> >>>
> >>>
> >>>
> >> --
> >> ------------------------------------------------------
> >> Dennis Clark ooPIC Tech Support
> >> www.oopic.com
> >> ------------------------------------------------------
> >>
> >>
> >
> >
> >
> >
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
>
> --
> ------------------------------------------------------
> Dennis Clark ooPIC Tech Support
> www.oopic.com
> ------------------------------------------------------
>
>
>
> [Non-text portions of this message have been removed]
>



Yahoo! Groups Links

<*> To visit your group on the web, go to:

http://groups.yahoo.com/group/oopic/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:

http://groups.yahoo.com/group/oopic/join

(Yahoo! ID required)

<*> To change settings via email:
mailto:oopic-digest@yahoogroups.com
mailto:oopic-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
oopic-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:

http://docs.yahoo.com/info/terms/

No comments:

Post a Comment