i have 16*2 UART serial lcd 1.1, & have try to program it via Arduino Mega2560.
the lcd is:
http://blog.iteadstudio.com/uart-serial-lcd-module/The connection is:
-Lcd’s Tx to 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 plugin the power into it.
The problem is, I have tried many code, but the lcd displays nothing, just a string “Serial LCD” (means nothing change)
I have define my Rx,Tx port, have useSoftwareSerial library, but still nothing change.
Actually what should I do? seems like the lcd didn’t receive any serial data at all.
thank you
------------------------------------------------------------------------------------------------
#include <SoftwareSerial.h>
#define txPin 1
#define rxPin 0
void setup()
{
pinMode(rxPin, INPUT);
pinMode(txPin, OUTPUT);
Serial.begin(9600);
Serial.print("sc;"); //screen clear
delay(10);
Serial.print("sb0;"); // set backlight, 0=off, 1=on
Serial.print("sd0,3;"); //set coordinate col,row: col 0 and row 0
delay(10);
Serial.print("ssItead Studio;"); //send string (char string)
delay(10);
Serial.print("sd1,0;"); // set coordinate col 1,row 0
delay(10);
Serial.print("ssSrial 1602 LCD;"); // send string
}
void loop()
{
Serial.print("ssSrial 1602 LCD;");
delay(10);
}
-----------------------------------------------------------------------------------------
#include <SoftwareSerial.h>
#define txPin 1
#define rxPin 0
SoftwareSerial serial(10, 11);
void setup()
{
pinMode(rxPin, INPUT);
pinMode(txPin, OUTPUT);
Serial.begin(9600);
}
void loop()
{
Serial.print("$CLEAR\n"); //clear screen
delay(2000);
Serial.print("$GO 1 1\n"); //cursor movement
Serial.print("$PRINT Hello World!\n"); //print string
Serial.print("$GO 2 4\n");
Serial.print("$PRINT Hello World again!\n");
Serial.print("$CURSOR 1 1\n"); //set effect of cursor
}