Shop OBEX P1 Docs P2 Docs Learn Events
BS2sx LCD...HELP!!! — Parallax Forums

BS2sx LCD...HELP!!!

ArchiverArchiver Posts: 46,084
edited 2004-05-08 17:55 in General Discussion
I'm a new user to the BS2sx, and I cannot get it to work correctly
with my LCD screen. When I power up the stamp, the LCD shows its
test screen, and then fills the screen with all right triangles. I
try to run code to send "Hello World" to the screen, but it just
flashes some characters and returns to the right triangles. I have
changed the baudmode to be $40F1 as stated on the LCD's webpage. I
have no idea what to do from here. I need help [noparse]:)[/noparse]

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2004-05-07 08:28
    At 03:33 AM 5/7/04 +0000, whatchooneed2000 wrote:
    >I'm a new user to the BS2sx, and I cannot get it to work correctly
    >with my LCD screen. When I power up the stamp, the LCD shows its
    >test screen, and then fills the screen with all right triangles. I
    >try to run code to send "Hello World" to the screen, but it just
    >flashes some characters and returns to the right triangles. I have
    >changed the baudmode to be $40F1 as stated on the LCD's webpage. I
    >have no idea what to do from here. I need help [noparse]:)[/noparse]
    If you'd like us to help you, we need help too. Perhaps you could pass on the
    LCD's web page so we too could learn more about it, in order to help you.

    Regards,

    Bruce Bates
  • ArchiverArchiver Posts: 46,084
    edited 2004-05-07 14:30
    --- In basicstamps@yahoogroups.com, Bruce Bates <bvbates@u...> wrote:
    > At 03:33 AM 5/7/04 +0000, whatchooneed2000 wrote:
    > >I'm a new user to the BS2sx, and I cannot get it to work correctly
    > >with my LCD screen. When I power up the stamp, the LCD shows its
    > >test screen, and then fills the screen with all right triangles.
    I
    > >try to run code to send "Hello World" to the screen, but it just
    > >flashes some characters and returns to the right triangles. I
    have
    > >changed the baudmode to be $40F1 as stated on the LCD's webpage.
    I
    > >have no idea what to do from here. I need help [noparse]:)[/noparse]
    > If you'd like us to help you, we need help too. Perhaps you could
    pass on the
    > LCD's web page so we too could learn more about it, in order to
    help you.
    >
    > Regards,
    >
    > Bruce Bates


    sorry bout that, www.seetron.com
  • ArchiverArchiver Posts: 46,084
    edited 2004-05-07 14:44
    At 01:30 PM 5/7/04 +0000, whatchooneed2000 wrote:
    >--- In basicstamps@yahoogroups.com, Bruce Bates <bvbates@u...> wrote:
    >> At 03:33 AM 5/7/04 +0000, whatchooneed2000 wrote:
    >> >I'm a new user to the BS2sx, and I cannot get it to work correctly
    >> >with my LCD screen. When I power up the stamp, the LCD shows its
    >> >test screen, and then fills the screen with all right triangles.
    >I
    >> >try to run code to send "Hello World" to the screen, but it just
    >> >flashes some characters and returns to the right triangles. I
    >have
    >> >changed the baudmode to be $40F1 as stated on the LCD's webpage.
    >I
    >> >have no idea what to do from here. I need help [noparse]:)[/noparse]
    >> If you'd like us to help you, we need help too. Perhaps you could
    >pass on the
    >> LCD's web page so we too could learn more about it, in order to
    >help you.
    >>
    >> Regards,
    >>
    >> Bruce Bates
    >
    >
    >sorry bout that, www.seetron.com

    We're getting there, slowly but surely. Which SEETRON LCD are you trying to use?

    Bruce
  • ArchiverArchiver Posts: 46,084
    edited 2004-05-07 15:21
    --- In basicstamps@yahoogroups.com, Bruce Bates <bvbates@u...> wrote:
    > At 01:30 PM 5/7/04 +0000, whatchooneed2000 wrote:
    > >--- In basicstamps@yahoogroups.com, Bruce Bates <bvbates@u...>
    wrote:
    > >> At 03:33 AM 5/7/04 +0000, whatchooneed2000 wrote:
    > >> >I'm a new user to the BS2sx, and I cannot get it to work
    correctly
    > >> >with my LCD screen. When I power up the stamp, the LCD shows
    its
    > >> >test screen, and then fills the screen with all right
    triangles.
    > >I
    > >> >try to run code to send "Hello World" to the screen, but it
    just
    > >> >flashes some characters and returns to the right triangles. I
    > >have
    > >> >changed the baudmode to be $40F1 as stated on the LCD's
    webpage.
    > >I
    > >> >have no idea what to do from here. I need help [noparse]:)[/noparse]
    > >> If you'd like us to help you, we need help too. Perhaps you
    could
    > >pass on the
    > >> LCD's web page so we too could learn more about it, in order to
    > >help you.
    > >>
    > >> Regards,
    > >>
    > >> Bruce Bates
    > >
    > >
    > >sorry bout that, www.seetron.com
    >
    > We're getting there, slowly but surely. Which SEETRON LCD are you
    trying to use?
    >
    > Bruce


    BPI-216 Serial LCD module, non backlit.
  • ArchiverArchiver Posts: 46,084
    edited 2004-05-07 15:52
    --- In basicstamps@yahoogroups.com, "whatchooneed2000"
    <rjherbst32@a...> wrote:
    > --- In basicstamps@yahoogroups.com, Bruce Bates <bvbates@u...>
    wrote:
    > > At 01:30 PM 5/7/04 +0000, whatchooneed2000 wrote:
    > > >--- In basicstamps@yahoogroups.com, Bruce Bates <bvbates@u...>
    > wrote:
    > > >> At 03:33 AM 5/7/04 +0000, whatchooneed2000 wrote:
    > > >> >I'm a new user to the BS2sx, and I cannot get it to work
    > correctly
    > > >> >with my LCD screen. When I power up the stamp, the LCD shows
    > its
    > > >> >test screen, and then fills the screen with all right
    > triangles.
    > > >I
    > > >> >try to run code to send "Hello World" to the screen, but it
    > just
    > > >> >flashes some characters and returns to the right triangles.
    I
    > > >have
    > > >> >changed the baudmode to be $40F1 as stated on the LCD's
    > webpage.
    > > >I
    > > >> >have no idea what to do from here. I need help [noparse]:)[/noparse]
    > > >> If you'd like us to help you, we need help too. Perhaps you
    > could
    > > >pass on the
    > > >> LCD's web page so we too could learn more about it, in order
    to
    > > >help you.
    > > >>
    > > >> Regards,
    > > >>
    > > >> Bruce Bates
    > > >
    > > >
    > > >sorry bout that, www.seetron.com
    > >
    > > We're getting there, slowly but surely. Which SEETRON LCD are you
    > trying to use?
    > >
    > > Bruce
    >
    >
    > BPI-216 Serial LCD module, non backlit.


    Here's a copy of the code I used with it:

    '{$STAMP BS2sx}

    N9600 con $40F1

    serout 0,N9600,[noparse][[/noparse]"Hello World"]
  • ArchiverArchiver Posts: 46,084
    edited 2004-05-07 17:07

    From: "whatchooneed2000" <rjherbst32@a
    > When I power up the stamp, the LCD shows its
    >test screen, and then fills the screen with all right triangles.
    >try to run code to send "Hello World" to the screen, but it just
    >flashes some characters and returns to the right triangles.
    >I have changed the baudmode to be $40F1 as stated on the LCD's webpage.
    > BPI-216 Serial LCD module, non backlit.
    >
    > Here's a copy of the code I used with it:
    >
    > '{$STAMP BS2sx}
    >
    > N9600 con $40F1
    >
    > serout 0,N9600,[noparse][[/noparse]"Hello World"]

    The LCD needs to start with the Serial line low,
    and have time to initialize after power-up before writing to it.

    Try something like:

    '($STAMP BS2sx)
    N9600 con 40F1
    Outs=%0000000000000000 ' Define starting levels for P15-P0
    'FEDCBA9876543210
    Dirs=%0000000010110101 ' Define which of P15-P0 are in-0 or out-1

    Pause 999 ' Give LCD time to initialize (750mS minimum)

    serout 0,N9600,[noparse][[/noparse]"Hello World"]
  • ArchiverArchiver Posts: 46,084
    edited 2004-05-07 17:11
    Hi,

    Here is what I use with my Basic Stamp II and an older
    Seetron 4x20 LCD with the serail backpack.

    The PAUSE 1000 allows the LCD to wake up when you
    first turn it on. This is very important.

    The value for N96N is $4054 but that may be more
    specific to the BSII and/or the LCD I am using. The
    manual for your LCD may give a different value.

    The ClrLCD does just that, clears the LCD. You would
    only need that at first and of course anytime you need
    the LCD cleared. The value 254 is used by my LCD to
    put it into instruction mode, again your values may be
    different.

    I CON 254
    ClrLCD CON 1
    N96N CON $4054
    LOW 15
    PAUSE 1000
    SEROUT 15,N96N,[noparse][[/noparse]I,ClrLCD]
    SEROUT 15,N96N,[noparse][[/noparse]" Temperature C & F"]

    Hope this helps and have a great day.

    James E. Merritt

    --- whatchooneed2000 <rjherbst32@a...> wrote:
    > > BPI-216 Serial LCD module, non backlit.
    >
    >
    > Here's a copy of the code I used with it:
    >
    > '{$STAMP BS2sx}
    >
    > N9600 con $40F1
    >
    > serout 0,N9600,[noparse][[/noparse]"Hello World"]





    __________________________________
    Do you Yahoo!?
    Win a $20,000 Career Makeover at Yahoo! HotJobs
    http://hotjobs.sweepstakes.yahoo.com/careermakeover
  • ArchiverArchiver Posts: 46,084
    edited 2004-05-08 17:55
    --- In basicstamps@yahoogroups.com, "whatchooneed2000"
    <rjherbst32@a...> wrote:
    > I'm a new user to the BS2sx, and I cannot get it to work correctly
    > with my LCD screen. When I power up the stamp, the LCD shows its
    > test screen, and then fills the screen with all right triangles. I
    > try to run code to send "Hello World" to the screen, but it just
    > flashes some characters and returns to the right triangles. I have
    > changed the baudmode to be $40F1 as stated on the LCD's webpage. I
    > have no idea what to do from here. I need help [noparse]:)[/noparse]

    Hello,

    Make sure that you are using the correct baud rate, which is 16624
    for 9600 and 16884 for 4800.
Sign In or Register to comment.