Show Posts
Pages: [1]
1  Using Arduino / Displays / Re: 16*2 Serial Lcd (Itead Studio) display nothing on: November 30, 2012, 08:13:27 pm
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);
 
}

void loop()
{
  myLcdSerial.print("sc;");
  myLcdSerial.print("sb1;"); // set backlight, 0=off, 1=on (sb)
  myLcdSerial.print("sd0,2;"); //set coordinate (col 0,row 2)
  delay(10);
  myLcdSerial.print("ssHello World!;"); // Command IteadStudio for 'send string'
 
  myLcdSerial.print("sc;");
  myLcdSerial.print("sd1,0;"); // set coordinate (col 1,row 0)
  delay(500);
  myLcdSerial.print("ssBye World!;"); // Command IteadStudio for 'send string'
  delay(500);
}

THANX ALL !
2  Using Arduino / Displays / Re: 16*2 Serial Lcd (Itead Studio) display nothing on: November 29, 2012, 02:37:08 am
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/
3  Using Arduino / Displays / 16*2 Serial Lcd (Itead Studio) display nothing on: November 28, 2012, 03:20:00 pm
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

}
Pages: [1]