GLCD not printing properly

Hello everyone,

I am using WG12864C GLCD for a small project. When I try to print some data on it, for example the “Hello World” programme, it displays only some parts of the “Hello World!” message. I have inserted a photo of how it looks exactly.

Does anyone have any idea how to fix this ?

/*
 *  openGLCD Library - Hello World
 * 
 * This sketch prints "Hello World!" to the LCD
 * and shows the time in seconds since Arduino board was reset.
 * 
 *  2013-06-15 bperrybap   - updates for openGLCD
 *  2011-09-14 Bill Perry  - original creation
 *  	bperrybap@opensource.billsworld.billandterrie.com
 */

// include the library header
// no font headers have to be included
#include <openGLCD.h>

void setup()
{
  // Initialize the GLCD 
  GLCD.Init();

 // Select the font for the default text area
  GLCD.SelectFont(System5x7);

//  GLCD.print(F("hello, world!")); // keep string in flash on AVR boards with IDE 1.x
//  GLCD.Puts(F("hello, world!")); // Puts() supports F() with any version of IDE

  // print() below uses RAM on AVR boards but works
  // on any version of IDE with any processor
  // note: Same is true for Puts()
  GLCD.print("hello, world!"); 
}

void loop()
{
  // set the cursor to column 0, line 1
  // (note: line 1 is the second row, since counting begins with 0):
  GLCD.CursorTo(0, 1);

  // print the number of seconds since reset:
  GLCD.print(millis()/1000);
}

In order to get that far (displaying correct characters) things have to be pretty close.

There isn't much to go on, but 99% of the issues are related to wiring, or connections.
Most are incorrect wiring, but it can also be poor solder joints, broken wires,wires not making proper connection, or in some cases a display that needs a different configuration for its chip select pins.

If I were to guess, I'd suspect the chip select connections, but that is just a guess based on little input.

The best thing to run is the diagnostic sketch to test out the h/w.
It displays information on the display and on the serial port.
You can see the expected output in the documentation.

The information from the sketch can help narrow down the issue.
Run that sketch and report back what you see on the display, and post the serial output from the sketch.

--- bill