Shop OBEX P1 Docs P2 Docs Learn Events
Need help with serial LCD display — Parallax Forums

Need help with serial LCD display

pbrady73pbrady73 Posts: 4
edited 2011-01-02 12:56 in BASIC Stamp
Ok I'm stuck. I haven't played with this stuff since the late 90's (the 8051 READS board days)....:smhair:

here's the display data sheet

http://www.lcd-module.de/eng/pdf/doma/dip204-4e.pdf

I have it configured for serial data and the contrast is working. For the life of me, i can't remember what to do. I've tried sending it data holding various pins high and low, but no luck. I simply cannot remember how to initialize a display. What do i need to do to make this work?

Thanks,
PMB

Comments

  • ChetChet Posts: 150
    edited 2010-11-11 13:07
    have a look at the basic stamp syntax and reference manual page 250 for the hookup (fig 5.14)
  • pbrady73pbrady73 Posts: 4
    edited 2010-11-12 22:22
    Excellent! I have it wired up and ready to go, but I'm using a BS2 and it doesn't want any part of the LCDCMND. What should i use for this vesion of the stamp? I swiched the LCD back to 4 bit mode insted of serial and it's wired up as per the manual
  • electrosyselectrosys Posts: 212
    edited 2010-11-13 02:17
    The LCD commands (LCDCMD, LCDIN & LCDOUT) are only for BS2P, BS2PE & BS2PX to interface to standard LCD(HD44780) or compatible,
    for BS2, you can look at Stamp Work
    Experiment #11, #12 and #13, page:73 -
  • arkturarktur Posts: 31
    edited 2010-12-09 09:57
    ROD-426.jpg
    COUNTER-1.jpg
    COUNTER-2.jpg
    encoder-phase.gif
    Page-67.JPG
    electrosys wrote: »
    The LCD commands (LCDCMD, LCDIN & LCDOUT) are only for BS2P, BS2PE & BS2PX to interface to standard LCD(HD44780) or compatible,
    for BS2, you can look at Stamp Work
    Experiment #11, #12 and #13, page:73 -

    Hi!

    We too have problems with LCD and BS-1 (BS-2).

    We want to make the reversal counter for calculation of pulses from
    HEIDENHAIN Encoder 426 , Model 1250 pulses, OUT - TTl, 5V.

    http://iseepdf.com/preview/aHR0cDovL3d3dzgudGZlLnVtdS5zZS9mb3Jza25pbmcvQ29udHJvbF9TeXN0ZW1zL0NvdXJzZXMvREJUL01vdGlvbl9Db250cm9sL0hlaWRlbmhhaW4lMjAtJTIwUm90YXJ5JTIwRW5jb2RlcnMlMjAoZXhjZXJwdCkucGRm

    For the visual control we want to use the indicator 2x16 RAYSTAR
    RC1602E-YKY-CSX (is made on a basis Hitachi 44780 controller IC).

    http://www.microchip.ua/LCD/Raystar/pdf/RC1602E.pdf

    In the INTERNET we have found the information on production to your firm.

    In the description BS1-appnotes.pdf we have found ways of connection
    BS-1 with LCD Hitachi 44780, Keypad, Servo and other variants.
    We have decided(solved), that for the decision of our task quite will
    consult(cope) BS-1 or BS-2.

    http://www.parallax.com/Portals/0/Downloads/appnt/stamps/bs1appnotes.pdf


    We have bought BASIC Stamp 1 Module, BASIC Stamp 2 Module, Super
    Carrier Board, BASIC Stamp 1 Serial Adapter, the indicator 16x2
    RAYSTAR RC1602E-YKY-CSX, HEIDENHAIN Encoder 426 1250, Model 1250
    pulses, OUT - TTl, 5V.

    http://www.parallax.com/Store/Microcontrollers/BASICStampModules/tabid/134/CategoryID/12/List/0/SortField/0/Level/a/ProductID/3/Default.aspx

    http://www.parallax.com/Store/Microcontrollers/BASICStampModules/tabid/134/CategoryID/12/List/0/SortField/0/Level/a/ProductID/1/Default.aspx

    http://www.parallax.com/Store/Microcontrollers/BASICStampModules/tabid/134/CategoryID/12/List/0/SortField/0/Level/a/ProductID/44/Default.aspx

    http://www.parallax.com/Store/Microcontrollers/BASICStampDevelopmentBoards/tabid/137/CategoryID/12/List/0/SortField/0/Level/a/ProductID/122/Default.aspx

    http://www.parallax.com/tabid/441/Default.aspx

    Have collected in a box.
    Have loaded BASIC Stamp Windows Editor v2.5 (R2) - (Supports Windows
    2K/XP/Vista/7) Includes software, USB driver, example code and help
    for all BASIC Stamp modules.

    Have invited the Programmer Man. When he has seen, has said, that
    BASIC Stamp 1 Module, BASIC Stamp 2 Module it is impossible to program
    on job with 16x2 RAYSTAR RC1602E-YKY-CSX (is made on a basis Hitachi
    44780 controller IC)!!!

    Whether correctly to us has said of the Programmer Man?

    Really we can not decide(solve) on these elements a simple task: to
    make the reversal counter for calculation of pulses from HEIDENHAIN
    Encoder 426 1250, Model 1250 pulses, OUT - TTl, 5V.., For the visual
    control we to use the indicator 16x2 RAYSTAR RC1602E-YKY-CSX (is made
    on a basis Hitachi 44780 controller IC).

    Have switched on the counter, have reset in "0"

    1. We rotate HEIDENHAIN Encoder to the right - counter summarizes
    pulses and shows us on the indicator of number, which are increased.

    2. We rotate HEIDENHAIN Encoder to the left - counter subtracts pulses
    and shows us on the indicator of number, which decrease.

    We can replace the indicator 2x16 RAYSTAR RC1602E-YKY-CSX (is made on a basis Hitachi 44780 controller IC) on 7-segment LED displays. On Page 67 · StampWorks we have found EXPERIMENT *10: A DIGITAL CLOCK. There are used 4 DIGIT x 7-segment LED displays. It approaches me, but it is necessary to add a POINT and to make the counter reversal. Here for calculation the pulse from PULSE GENERATOR is used which comes on contact 15. And I need to make so: if the pulse "A" comes by first, and the pulse "B" by second (left rotation) - then goes summation and the indication on the display is increased; If the pulse "B" comes by first, and pulse "A" by second (right rotation), then the indications on the display should decrease. A pulse "A" we can connect on contact 15, then on what contact to connect a pulse "B"?

    Prompt as it to make?.
    1024 x 768 - 80K
    1024 x 768 - 97K
    1024 x 768 - 86K
    550 x 320 - 5K
    539 x 576 - 42K
  • arkturarktur Posts: 31
    edited 2010-12-23 14:07
    Parallel_LCD_2X16-NIKOPOL.bs2
    Decoder diagram.jpg
    Encoder-PIC-01.jpg
    COUNTER-4.jpg
    I probably is vain has addressed behind the help on this forum.
    Similar that nobody wants or can not help me.

    I have found the program and I managed to connect the indicator 2x16 RAYSTAR
    RC1602E-YKY-CSX (is made on a basis Hitachi 44780 controller IC) under BS-2.
    The indicator works normally. One problem is decided(solved).

    The Programmer Man can not write the program for definition of a direction
    Rotations HEIDENHAIN Encoder 426 1250, Model 1250 pulses, OUT - TTl, 5V.
    I have applied the circuit decision on microcircuits (decoder). She works simply.
    If Encoder rotates to the right, the pulses go only on the channel "A", and the channel "B" has a constantly low level.
    If Encoder rotates to the left, the pulses go only on the channel "B", and the channel "A" has a low level.
    The second problem is decided(solved).

    There was one problem - to write the program of the counter.
    We want to connect two HEIDENHAIN Encoder 426 1250, Model 1250 pulses, OUT - TTl, 5V.
    Everyone Encoder should work independently.
    The Encoders are connected to BS-2 so:

    E1 "A" - pin 13 BS-2
    E1 "B" - pin 14 BS-2
    E2 "A" - pin 10 BS-2
    E2 "B" - pin 11 BS-2

    One pulse corresponds(meets) 0,01 mm.

    The indication about a condition owes first Encoder (E1) is deduced in the top line, and
    The indication about a condition second Encoder (E2) should be deduced(removed) on the bottom line on the indicator 2x16 RAYSTAR
    RC1602E-YKY-CSX (is made on a basis Hitachi 44780 controller IC) under BS-2.

    I.e. the indication should be in a format:

    Encoder1_00,00mm
    Encoder2_00,00mm

    The digital indication should vary according to changes of a rule(situation) any Encoders and specify true meaning(importance).

    Can someone help me to write this program???
    1024 x 552 - 46K
    1024 x 770 - 63K
    1024 x 768 - 56K
  • arkturarktur Posts: 31
    edited 2010-12-25 14:50
    COUNTER-5.jpg
    In such kind I want to receive indication from encoders.
    1024 x 443 - 42K
  • Buck RogersBuck Rogers Posts: 2,161
    edited 2010-12-26 00:28
    Hello!
    Please note that without more information then the dribs and drabs that you have provided, we can not even begin to help you. For example what do you want the display to show you? And is this encoder collecting data in a particular format? And what is it doing with this format? That sort of thing. Including what kind of encoder is it. There are as many varieties of encoders out there as there are methods of making them work.
  • arkturarktur Posts: 31
    edited 2011-01-02 10:10
    Dear sirs!
    I do not know English.
    I use the electronic program the interpreter.
    Really this program so badly translates, what you can not me understand?
  • Mike GreenMike Green Posts: 23,101
    edited 2011-01-02 11:13
    1) It is considered impolite to "hijack" someone else's thread for a different question, particularly when your question is complicated. Start your own thread with a proper subject, one that will clearly identify your problem. Also, do not "cross-post". If you have one thread on one forum, do not start another thread on the same or different forum on the same subject. This is against forum rules.

    2) It is very difficult to understand what you want and what you are trying to do. At least mention your native language. There may be someone on the forums who is fluent in it.
  • arkturarktur Posts: 31
    edited 2011-01-02 12:56
    Yes, I understand, that in an another's theme залазить it is indecent.
    Simply so it has turned out - at us similar problems with LCD.
    I bring the apologies.
    My theme here:

    http://forums.parallax.com/showthread.php?127759-Need-HELP-We-want-to-make-the-reversal-counter

    Language - RUSSIAN.
Sign In or Register to comment.