Go Down

Topic: 16*2 Serial Lcd (Itead Studio) display nothing (Read 2 times) previous topic - next topic

aainlithium

Nov 28, 2012, 09:20 pm Last Edit: Nov 28, 2012, 09:22 pm by aainlithium Reason: 1
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

}

liudr

That's too bad then. The only code sample they provide was tested by you and nothing works. Post some pictures on how you wired up the display with mega might help.

WinstonP

#2
Nov 29, 2012, 04:22 am Last Edit: Nov 29, 2012, 04:26 am by WinstonP Reason: 1
also, post a picture showing the back of the unit. from what I could read; it looks like it can use ICSP interface and I2C also.
And I know it's not your fault but that's a pretty piss-poor data sheet on the thing. it also looks like a standard LCD display and iteadstudio stuck on their own interface. I wonder if the interface chip can be reprogrammed to use a better protocol?
besides maybe trying other interfacing that's about all I can help with.

good luck to ya.

==========
never mind on the alternate interfacing. I just read a comment from Itead about them being a future addition.non-functional for now.

aainlithium


also, post a picture showing the back of the unit. from what I could read; it looks like it can use ICSP interface and I2C also.
And I know it's not your fault but that's a pretty piss-poor data sheet on the thing. it also looks like a standard LCD display and iteadstudio stuck on their own interface. I wonder if the interface chip can be reprogrammed to use a better protocol?
besides maybe trying other interfacing that's about all I can help with.

good luck to ya.

==========
never mind on the alternate interfacing. I just read a comment from Itead about them being a future addition.non-functional for now.


this is the link to the picture of lcd's back: http://www.flickr.com/photos/28931603@N04/8229440834/in/photostream

this is the link to picture of how I connect that ITeadStudio serial lcd:
http://www.flickr.com/photos/28931603@N04/8228374029/in/photostream/

floresta

You are indicating four connections here ...

-Lcd's Tx to Rx pin 0,
-Lcd's Rx to Tx pin 1,
-Vcc 5V & ground connect to Arduino

... but your photo only shows three wires (and we can't determine where they go).

Try connecting the Arduino Tx to the LCD's Tx and see what happens.


Don

Go Up