UART Serial LCD Module

Character LCM screen is a common display device, we provide 16×2, 8×2, 20×4 with Yellow / Blue black light LCD on iStore. But these LCD need more than 6 pins for controlling and you need to know the control register and time series.

It’s a bit difficult for beginners to familiar registers and timing, so here we provide the UART Serial LCD module. It can be controlled easily by serial commands, and just need 2 data pins for connection.

We provide 7 commands to control the LCD display, Each command is composed by CMD+[Parameter]+’ ; ‘ . The [parameter] is optional but the ‘ ; ‘  is necessary.

1. Clean the Screen
CMD : sc  Parameter : Null;
Example : sc; [ Screen clean ]
 
2. Set backlight
CMD : sb  Parameter :1 or 0 [1: Set the backlight on; 0: Set the backlight off ]
Example :
sb1; [ Backlight on ]
sb0; [ Backlight off ]
 
3. Set coordinate
CMD : sd  Parameter :C,R [C: the column (C = [0:1]); R: the row (R = [0:15])]
Example :
sd0,0;  [ move the coordinate to column 0 and row 0 ]
sd1,15;  [ move the coordinate to column 1 and row 15 ]
 
4. Send string
CMD : ss  Parameter : Char String
Example:
ss12345;  [ Send the char string and display on LCD ]
 
5. Set the cursor on/off
CMD su Parameter: 0/1 [0: Set the cursor off, 1: Set the cursor on]
Example:
su0; [ Cursor off ]
su1; [ Cursor on ]
 
6. Set the cursor type
CMD sf, Parameter: 0/1 [0: Set the cursor blink off, 1: Set the cursor blink on]
Example:
sf0; [ Set the cursor blink off ]
sf1; [ Set the cursor blink on ]
 
7. Move the cursor
CMD sm  Parameter: 0/1 [0: Move the cursor left , 1: Move the cursor right ]
Example:
sm0; [ shift left ]
sm1; [ shift right ]

After you send the command, the LCD module will return the message of execution results – ‘O’ means action complete ; ‘E’ means command error. You should send the new command after you receiving the reply massage for LCD module.

It’s very easy to show the string on UART serial LCD module:

void setup()
{
  Serial.begin(9600);
  Serial.print("sc;");
  delay(10);
  Serial.print("sd0,0;");
  delay(10);
  Serial.print("ssItead Studio;");
  delay(10);
  Serial.print("sd1,0;");
  delay(10);
  Serial.print("ssSrial 1602 LCD;");
}

Download the datasheet of these UART Serial LCD module here.

Responses to “UART Serial LCD Module

  1. Hello, the example for clean the screen its correct? “Example : sb; [ Screen clean ]” ? Or its sc; [ Screen clean ] ? Great product!

    • Yes, it’s sc; : )
      You can see that we leave some other pads in the board like IIC and SPI interface, now this version just support UART serial, we will go on to release the IIC version.

  2. i have this 16*2 UART serial lcd 1.1, & have try that code on & interface it via Arduino Mega2560.
    -Lcd’s Tx to Arduino’s Rx pin 0,
    -Lcd’s Rx to Tx pin 1,
    -Vcc 5V & ground connect to Arduino
    The string “Serial LCD” always occur at initial during I plug the power into it.
    The problem is, I have tried many code, including the code above, but the lcd displays nothing, just a string “Serial LCD” (means nothing change)
    I have define my Rx,Tx port, have use library, still nothing change.
    Actually what should I do? seems like the lcd didn’t receive any serial data at all.
    thank you

    • If you use the software serial , you can not use the Pin0 and Pin1, just use the hardware UART, the D0 D1 can be used , so please change your code by using hardware UART or just change the pins to D2 D3 with software serial library. More support, you can send email to support@iteadstudio.com 

  3. Hello,

    I use this lcd on my robot. But I can’t print a variable on the lcd.
    I want to display the following variable.

    int testvar = 10;

    How can I do this with the few commands provided. I tried with the ss command….
    Thank you

  4. Dear Sir,
    I bought a UART Serial LCD Module. However, I have problems to control it. I think I need software serial library. Could you tell me where I can download the library? Thank you.

    Have a nice day!

    1:31 PM., Thursday
    March 27, 2014, Taiwan

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>