Shop OBEX P1 Docs P2 Docs Learn Events
Need to learn about LCD — Parallax Forums

Need to learn about LCD

T ChapT Chap Posts: 4,223
edited 2006-09-05 04:52 in BASIC Stamp
I am going to order a serial LCD this weekend and have a few questions. I was going to get the Parallax 2x16 Serial LCD (Backlit).

What I want to do is to be able to have several areas change on the display while other stay the same. Also, I want to be able to scroll to an area of text, i.e. a numerical value of 36,000 and then press an up or down button and have the value change, then press a write button and hold it for 4 seconds to write the change to eeprom. Hopefully this is just as easily done on a serial LCD with 2 lines, although I need 4 areas of text to change independently.

Does this make sense in a very oversimplified example to cursor through the 4 fields of data to change, then inc/dec the data, then write it:

'user programming slot 2 bs2p40

writebut var in2
cursorbut var in1
decrebut var in3
increbut var in4
position1 var word 'a position that will store a value of 1-65,000
position2 var word
position3 var word
position4 var word
position5 var word
speed var nib ' a value to hold the pause times between pulses to stepper
accelpos1 var nib 'a value to hold accel rates for position1
cursorpos1 var nib 'value for where the cursor is on the lcd
cursorpos2 var nib 'value for where the cursor is on the lcd
cursorpos3 var nib 'value for where the cursor is on the lcd
cursorpos4 var nib 'value for where the cursor is on the lcd

cursorpos1:
cursorpos = 1 'sets cursor to top field
"info here to change data with incre/dec but in field/position 1
if cursorbut = 1 then cursorpos2
goto cursorpos1

cursorpos2:
cursorpos = 2 'sets cursor to 2nd field
if cursorbut = 1 then goto cursorpos3
"info here to change data with incre/dec but in field/position 2
goto cursorpos2

cursorpos3:
cursorpos = 3 'sets cursor to 3rd field
if cursorbut = 1 then goto cursorpos4
"info here to change data with incre/dec but in field/position 3
goto cursorpos3

cursorpos4:
cursorpos = 4 'sets cursor to 4th field
if cursorbut = 1 then goto cursorpos1
"info here to change data with incre/dec but in field/position 4
goto cursorpos4
591 x 666 - 89K

Comments

  • PJAllenPJAllen Banned Posts: 5,065
    edited 2006-06-23 20:04
    The Parallax serial LCD is super-versatile.· There are special codes you send it to position the cursor anywhere (X,Y) you want it.
  • edited 2006-06-23 23:14
    There's a Stamps in Class tutorial entitled Getting Started with the Parallax Serial LCD. I think you will find it to be useful and helpful.
  • kingspudkingspud Posts: 128
    edited 2006-06-26 15:18
    Will this document apply to the 4 x 16 Serial LCD (Backlit) or is there another doc to cover this LCD?
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2006-06-26 15:32
    Hello,

    ·· If you're referring to the Parallax 4X20 Serial LCD, the concepts presented would be the same.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
  • kingspudkingspud Posts: 128
    edited 2006-06-26 15:46
    Sorry, the 4 x 20 is what I meant to say.

    Thanks Chris!!!
  • hvilla01hvilla01 Posts: 19
    edited 2006-09-05 00:53
    Hi all,

    Is there some thing like the example on Getting started with Parallax serial LCD but for parallel LCD (2x16 Parallel LCD· from Parallax) with pictures on how to connect it tio the BS2, I am just starting with robotics and I don't understand the schematics that came on the books from Parallax, If any one can help me it will be great.

    Thank's Humberto




    <!-- unit price -->
  • PJAllenPJAllen Banned Posts: 5,065
    edited 2006-09-05 01:22
    What is not understandable?
  • hvilla01hvilla01 Posts: 19
    edited 2006-09-05 01:31
    The schematics, I am looking for pictures of how ro connect the LCD to the BS2
  • T ChapT Chap Posts: 4,223
    edited 2006-09-05 03:26
    The lcd has only one wire to go to the Stamp, it is labeled on the lcd, pretty hard to mess it up.

    the lcd only has 2 other connections, + and GND. The data sheets show the info. Look up the lcd under accesseries.
  • hvilla01hvilla01 Posts: 19
    edited 2006-09-05 03:36
    Thats for a serial LCD but I have a parallel lcd and the connections are diferent
  • T ChapT Chap Posts: 4,223
    edited 2006-09-05 04:05
    my bad
  • hvilla01hvilla01 Posts: 19
    edited 2006-09-05 04:52
    No problem, what I am looking for is to see some pictures on how is connected and not the schematics (I have all the books the problem is that I am new in Robotics and electronics).
Sign In or Register to comment.