Reply to topic  [ 33 posts ]  Go to page 1, 2, 3, 4  Next
12864B Parallel/Serial Graphic LCD Module (HCMODU0032) 
Author Message
Site Admin

Joined: Sun Aug 05, 2012 4:02 pm
Posts: 650
Post 12864B Parallel/Serial Graphic LCD Module (HCMODU0032)
Image
Image

Description:

The 12864B Graphic LCD module is a 128 x 64 pixel LCD display with a blue backlight and white foreground. The display is fully programmable and can display a combination of both graphics and text. It can operate in both parallel and serial (SPI) modes which can be configured by the external pin PSB (please see note below). In SPI mode only 3 data pins are required to drive this display. No potentiometer is required to set the contrast as this is pre set by the factory to optimum level.

This item can be purchased here.

1)Encapsulation:COB(Chip-on-Board)
2)Display Format:128x64 dots
3)Display Type:STN, Transflective, Positive, Blue
4)Controller: ST7920
5)Interface:8-bit parallel interface or serial SPI modes
6)Backlight:Blue/Bottom light
7)Viewing Direction:6 O’clock
8)Driving Scheme:1/64 Duty Cycle, 1/9 Bias
9)Power Supply Voltage:5.0 V
10)VLCD Adjustable For Best Contrast:9.0 V (VOP.)
11)Operation temperature:-20°C to +70°C
12)Storage temperature :-30°C to +80°C


Dimensions:

Image


NOTE:

Image

Some versions of this LCD are shipped with the PSB (parallel/serial select) pin shorted to VDD by a 0 ohm resistor fitted to R9 on the back of the LCD (see image above). This fixes the LCD in parallel mode. If this resistor is fitted and you wish to use the LCD in serial mode you will either need to move the resistor to R10 or completely remove it and ground the PSD pin.

Arduino Connections In Serial (SPI) Mode:

For Arduino Uno

MODULE..........................UNO
K (backlight cathode).........GND
A (backlight anode)..........+5V
PSD (SPI Mode).................GND (SEE NOTE)
E (SCK)..........................D13
R/W (MOSI)....................D11
RS (CS)..........................D10*
VDD.............................+5V
VSS..............................GND

For Arduino Mega

MODULE..........................MEGA
K (backlight cathode).........GND
A (backlight anode)..........+5V
PSD (SPI Mode).................GND (SEE NOTE)
E (SCK)..........................D52
R/W (MOSI)....................D51
RS (CS)..........................D53*
VDD.............................+5V
VSS..............................GND

*This pin is configured in software, see '#define CS_PIN 10' line in example sketch below.

Arduino Library:

There are a number of pre-written libraries available for this module. For the Arduino example sketch shown below we have chosen to use the u8glib library. You can download a snapshot of this library here:

Attachment:
u8glib_arduino_v1.12.zip

The latest version and AVR versions of this library can be downloaded here


Arduino Example Sketch:

Code:
/* FILE:    ARD_12864_Graphic_LCD_Module_HCMODU0015_SPI_Example
   DATE:    19/07/13
   VERSION: 0.1
   
REVISIONS:

02/07/13 Created version 0.1

This is an example of how to use the 12864 128x64 graphics LCD module (HCMODU0015).
This example sketch uses the U8glib library to output text and graphics to the
screen in SPI mode.

PINOUT:

MODULE`                UNO
K (backlight cathode)  GND
A (backlight annode)   +5V
PSD (SPI Mode)          GND (SEE NOTE)
E (SCK)                D13
R/W (MOSI)             D11
RS (CS)                D10
VDD                    +5V
VSS                    GND

Connection to the V0 pin (contrast) is not required.

Note: Some versions of this LCD are shipped with the PSB (parallel/serial select) pin
shorted to VDD by a 0 ohm resistor fitted to R9 on the back of the LCD. This fixes the
LCD in parallel mode. If this resistor is fitted and you wish to use the LCD in serial
mode you will either need to move the resistor to D10 or completely remove it and
ground the PSD pin.

You may copy, alter and reuse this code in any way you like, but please leave
reference to HobbyComponents.com in your comments if you redistribute this code.
This software may not be used for the purpose of premoting or selling products
that directly compete with Hobby Components Ltd's own range of products.

THIS SOFTWARE IS PROVIDED "AS IS". HOBBY COMPONENTS MAKES NO WARRANTIES, WHETHER
EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, ACCURACY OR LACK OF NEGLIGENCE.
HOBBY COMPONENTS SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR ANY DAMAGES,
INCLUDING, BUT NOT LIMITED TO, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY
REASON WHATSOEVER.

U8glib library copywrite notice:

  Universal 8bit Graphics Library, http://code.google.com/p/u8glib/
 
  Copyright (c) 2012, olikraus@gmail.com
  All rights reserved.
*/



/* Include the U8glib library */
#include "U8glib.h"

/* Define the SPI Chip Select pin */
#define CS_PIN 10

/* Create an instance of the library for the 12864 LCD in SPI mode */
U8GLIB_ST7920_128X64_1X u8g(CS_PIN);

void setup()
{
}

/* Main program */
void loop()
{
  /* Start of a picture loop */
  u8g.firstPage(); 
 
  /* Keep looping until finished drawing screen */
  do
  {
    /* Set the font */
    u8g.setFont(u8g_font_courB14);
   
    /* Display some text */
    u8g.drawStr( 35, 26, "HOBBY");
    u8g.drawStr( 8, 46, "COMPONENTS");
   
    /* Draw a simple border */
    u8g.drawFrame(5,5,117,54);
    u8g.drawFrame(3,3,121,58);
 
  }while(u8g.nextPage());
}


Datasheet:
Attachment:
st7920.pdf


You do not have the required permissions to view the files attached to this post.


Fri Jul 19, 2013 12:54 pm
Profile
Post Re: 12864B Parallel/Serial Graphic LCD Module (HCMODU0032)
I have bought this module and can not get it to work in serial mode. it is not the same as in the image above. 12864ZW instead of 12864B. i have owned a 12864B before and have wired this one exactly the same but can not get the 'hello world' from u8glib to work. any help would be appreciated.


Wed Sep 18, 2013 4:04 pm
Site Admin

Joined: Sun Aug 05, 2012 4:15 pm
Posts: 658
Post Re: 12864B Parallel/Serial Graphic LCD Module (HCMODU0032)
We have checked our stocks and it would seem we have been supplied this variant without us knowing about it. However we have now connected one up and we can confirm that it works with the above sketch without modification. Could you elaborate on what you mean by when you say it doesn't work ? Do you see anything on the screen? Do you see a backlight? Have you tired using the sketch and library found in the first post of this forum? Please also reference the comments within this sketch for correct connection.

_________________
Comments made by this poster do not necessarily reflect the views of Hobby Components Ltd.


Thu Sep 19, 2013 10:43 am
Profile
Post Re: 12864B Parallel/Serial Graphic LCD Module (HCMODU0032)
the problem vas on my side. the module i had previously worked even on software SPI ports but this one works just on the hardware one. nice screen, great contrast.


Fri Sep 20, 2013 5:02 pm
Site Admin

Joined: Sun Aug 05, 2012 4:15 pm
Posts: 658
Post Re: 12864B Parallel/Serial Graphic LCD Module (HCMODU0032)
Glad you managed to get it working.

_________________
Comments made by this poster do not necessarily reflect the views of Hobby Components Ltd.


Sat Sep 21, 2013 9:51 am
Profile

Joined: Sat Nov 02, 2013 3:43 pm
Posts: 2
Post Re: 12864B Parallel/Serial Graphic LCD Module (HCMODU0032)
Just a quick question before i plug this in.

I can't find a datasheet for the module, but perhaps you will know the answer to this one.

Do I need a current limiting resistor for the backlight if I am using 5v? Looking at the display it already has 34ohm of ,limiting resistor there (R13 and R14 are 68ohm in Parallel), so i am guessing I don't need one?


Sat Nov 02, 2013 3:52 pm
Profile
Site Admin

Joined: Sun Aug 05, 2012 4:15 pm
Posts: 658
Post Re: 12864B Parallel/Serial Graphic LCD Module (HCMODU0032)
That's right, you don't need a current limiting resistor when applying 5V to the backlight.

_________________
Comments made by this poster do not necessarily reflect the views of Hobby Components Ltd.


Sun Nov 03, 2013 6:35 pm
Profile

Joined: Sat Nov 02, 2013 3:43 pm
Posts: 2
Post Re: 12864B Parallel/Serial Graphic LCD Module (HCMODU0032)
Thanks. I kinda found out for myself.

What persuaded me to make the leap was when I found the solder jumpers that connect Vss and K, Vdd and A and PSB to Vss (or Vdd for parallel operation). Made sense that the Led accepted 5v if the jumpers are there.

I really think you should document the jumpers here, it is a selling point for the display. The contrast and brightness is superb on the display.


Sun Nov 03, 2013 7:06 pm
Profile

Joined: Thu Dec 12, 2013 7:11 am
Posts: 7
Post Re: 12864B Parallel/Serial Graphic LCD Module (HCMODU0032)
Hi good morning. I recently purchased a 12864B LCD (128 x 64 Dots Graphic Blue Color Backlight LCD Display Controller module ST7920). I followed this guide, both the Sketch as wiring. After reviewing several times, the screen lights up but shows no text. Besides connecting "PS (SPI Mode) to GNDFund" I short-circuits feeding. In fact I checked with multimeter that there is connection between PSB and VDD. As if to be ready for connection in parallel. Is there any need to remove the bridge? I would appreciate any help.


Thu Dec 12, 2013 7:24 am
Profile
Site Admin

Joined: Sun Aug 05, 2012 4:15 pm
Posts: 658
Post Re: 12864B Parallel/Serial Graphic LCD Module (HCMODU0032)
I have just pulled one of our current batch out of stock and it looks like the factory have fitted a zero ohm resistor to R9 which does indeed apply VDD to the PSB pin and therefore configuring the screen to parallel mode. To put the screen into serial mode it looks like you will need to either move the resistor to R10 which grounds the PSD pin, or completely remove the R9 resistor and ground the PSD pin yourself.

We will confirm this and update our information to include this variation of screen.

_________________
Comments made by this poster do not necessarily reflect the views of Hobby Components Ltd.


Thu Dec 12, 2013 11:13 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 33 posts ]  Go to page 1, 2, 3, 4  Next

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Thank you to phpBB.com & phpBB.ro.
Design created by Florea Cosmin Ionut.
© 2011 All contents of this site are © Hobby Components LTD