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
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.
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.
WinstonP:
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.
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
Yeah now I know whats wrong with my sketch & connection. The solution is:
1- If use SoftwareSerial, DO NOT use pin 0 & pin 1...
Those are h/w serial pins connected to Serial Monitor. Use another pins.
2- Connecting Ardunio Tx to LCD's Tx. It is WORKS !
below is my basic sketch. LCD will print "Hello world" at topline, "Bye World!" at bottomline, & looping continuously.
#include <SoftwareSerial.h> #define txLCDPin 8
const byte txLcdPin = 8; // will connect to LCD's Tx
const byte rxLcdPin = 7; // not connected to anywhere
SoftwareSerial myLcdSerial = SoftwareSerial(rxLcdPin, txLcdPin);
void setup()
{
pinMode(txLcdPin, OUTPUT); // Arduino's Tx as transmitter to LCD
pinMode(rxLcdPin, INPUT); //
myLcdSerial.begin(9600);
myLcdSerial.print("sc;"); //command IteadStudio for 'screen clear'
delay(10);
Now, about your sketch....
The LCD display does not have to be refreshed. Once you display a message on it that message will remain until it is overwritten or until power is removed.
For your current sketch the steps that you have in loop() really belong in setup(), and loop() should be empty.