Shop OBEX P1 Docs P2 Docs Learn Events
LCD 2x18 display NOT WORKING — Parallax Forums

LCD 2x18 display NOT WORKING

ShanePShaneP Posts: 12
edited 2010-04-25 20:06 in General Discussion
I have the LCD 2x18 display and it just stopped working after probably a hour of use cry.gif all it does is show the cursor or if I unplug it flip the switches and plug it back in it'll say Parallax, inc. www.parallax.com and then show pacman eating the words, I've checked my connections 23 times (I counted) and still have the same problem. Here is my code if you need it, my LCD is in p15. my switches
are ON ON meaning baud19200

' {$STAMP BS2}
' {$PBASIC 2.5}

TxPin     CON    15
Baud19200    CON    32
HIGH TxPin    ' Set pin high to be a serial port
PAUSE 100    ' Pause for Serial LCD to initialize
SEROUT TxPin, Baud19200, [noparse][[/noparse]"Hello, My name is Shane"]

END





Please reply
Shane

Comments

  • hover1hover1 Posts: 1,929
    edited 2010-04-15 03:12
    The BS2 will not run at 19200. Try 9600 baud. I use that speed all the time on my Parallax 4x20 LCD.
  • ShanePShaneP Posts: 12
    edited 2010-04-15 23:14
    now what is baud19200 supposed to be in my code instead of 32?
  • RavenkallenRavenkallen Posts: 1,057
    edited 2010-04-16 18:44
    I have not used a basic stamp in a while, but i think the line
    Baud19200 CON 32

    will turn baud19200 to the decimal val 32. You could try not declaring the constant and just put the desired baud rate next to the serout command. Try this code sample instead of declaring the constants

    Serout 15, T9600, [noparse][[/noparse]"hello world"]

    you will need to flip the switch to 9600baud and you will need to keep the initial delay. Hope it helps.
  • hover1hover1 Posts: 1,929
    edited 2010-04-16 19:18
    Shane,

    I'm sorry I steered you down the wrong road. The BS2 will communicate with the LCD module at 19,200 baud. I have had trouble with that speed on other projects.

    I tried your code and it works fine on my LCD. Since you get a cursor when SW 1 and 2 are on, means the LCD is probably working. I would just double check if you have the RX pin of the LCD connected to Pin 15 on your BS2.

    Jim
  • RavenkallenRavenkallen Posts: 1,057
    edited 2010-04-17 15:42
    AH, It finally worked. I am not sure what that line-

    Baud19200 CON 32

    -does, but i figured out how to get it to work by reading the syntax manual. This code does work but only at 9600baud

    ' {$STAMP BS2}
    ' {$PBASIC 2.5}

    TxPin CON 15
    DO
    HIGH TxPin ' Set pin high to be a serial port
    PAUSE 100 ' Pause for Serial LCD to initialize
    SEROUT TxPin, 84, [noparse][[/noparse]"Hello, My name is Shane"]

    LOOP


    Unlike other micros, the basic stamp does not allow you to chose the baudmode directly. you must enter some kind of code that represents several different parameters. Like for instance this is also taken from the book.


    Baud rate 8-bit, no parity, inverted 8-bit, no parity, true 7-bit, even parity, inverted 7-bit, even parity, true

    300 19697 3313 27889 11505
    600 18030 1646 26222 9838
    1200 17197 813 25389 9005
    2400 16780 396 24972 8588
    9600 16468 84 24660 8276


    So you enter in the corresponding code for the baudmode variable. I know there is higher baud rates, but the stamp syntax manual doesn't cover them...... OR your display might be damaged in some way...
  • ShanePShaneP Posts: 12
    edited 2010-04-20 21:25
    I'm calling parallax right now, cause nothing has worked NOTHING, and it was a brand new screen from parallax online.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    I don't have a basic stamp, I AM The basic stamp 2
  • RavenkallenRavenkallen Posts: 1,057
    edited 2010-04-21 03:07
    The display might be damaged
  • ShanePShaneP Posts: 12
    edited 2010-04-25 20:06
    Parallax Gave me a new one with Express Shipping smile.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    I don't have a basic stamp, I AM The basic stamp 2
Sign In or Register to comment.