1.8 Inch 128x64 ST7565 Serial LCD Display With Backlight (HCMODU0246)

LCD, TFT, OLED, LED modules
Post Reply
admin
Site Admin
Posts: 867
Joined: Sun Aug 05, 2012 4:02 pm

1.8 Inch 128x64 ST7565 Serial LCD Display With Backlight (HCMODU0246)

Post by admin » Fri Mar 08, 2024 11:22 am

Image




This 1.8” LCD monochrome graphical display has a resolution of 128x64 pixels with pixel colour being black on a white backlit background.

For interfacing via a microcontroller the display uses an ST7565 serial controller consisting of a single clock and data pin for communication plus chip select and data/command pins for control. These pins plus power and reset are all available via a soldered 8 pin 0.1” header.

For Arduino users this module is supported by our HCDisplay library. See bottom of this post for more information.


NOTES:

This is a 3.3V display. If using with a 5V microcontroller level shifters must be used.


Specification:
Product code: HCMODU0246
Supply voltage: 3.3V
Supply current (Backlight on): 11mA
Supply current (Backlight off): <1mA
Screen size: 1.8”
Display controller: ST7565
Interface: Serial SPI (clock, data, chip select, data/command select, reset)
Interface header: 8 pin 0.1” SIL header
Outer LCD size: 44.5mm x 29mm
Module size: 47.5mm x 37mm



Arduino Example:


Image


  1. /* File:    HCDisplay_Hello_World.ino
  2.  * Version: 1.0
  3.  *
  4.  * This is a simple sketch to demonstrate how to print text at specified locations
  5.  * on the display. The sketch also shows how to change font style and
  6.  * foreground/background colour.
  7.  *
  8.  * IMPORTANT: To use this sketch you must first select your display type
  9.  * by opening up the Options.txt file (found the HCDisplay library folder)
  10.  * in a text editor and uncommenting the line:
  11.  *
  12.  * #define ST7565
  13.  *
  14.  * Please see Lincence.txt file in the library folder for terms of use
  15.  */
  16.  
  17.  
  18. #include "HCDisplay.h"
  19.  
  20. // Default pins
  21. #define CE_PIN      A0
  22. #define DC_PIN      A1
  23. #define CLK_PIN     A2
  24. #define DIN_PIN     A3
  25. //#define RST_PIN   2  // Optional reset pin
  26.  
  27. HCDisplay HCDisplay;    //Creates an instance of the HCDisplay library
  28.  
  29. unsigned int MaxX, MaxY;
  30. boolean FGColour = 1;
  31.  
  32.  
  33.  
  34. void setup()
  35. {
  36.   // Initialise the display - Note HCMODU0246 must be reset after powering up!
  37.   HCDisplay.Init(DIN_PIN, CLK_PIN, CE_PIN, DC_PIN /*, RST_PIN*/);
  38.  
  39.   // Uncomment if screen contrast needs adjusting (contrast = 0 to 255)
  40.   // HCDisplay.Contrast(16);
  41.  
  42.   /* Get the screens X & Y resolution */
  43.   MaxX = HCDisplay.ResX() - 1;
  44.   MaxY = HCDisplay.ResY() - 1;
  45.  
  46.   /* Draw a boarder */
  47.   HCDisplay.Rect(0 , 0, MaxX, MaxY, OUTLINE, 1);
  48.   HCDisplay.Rect(0 + 3 , 0 + 3, MaxX - 3, MaxY - 3, OUTLINE, 1);
  49.  
  50.   /* Print some text */
  51.   HCDisplay.Pos(44,8);
  52.   HCDisplay.Print("Hobby");
  53.   HCDisplay.Pos(24,18);
  54.   HCDisplay.Print("Components");
  55.  
  56.   HCDisplay.Pos(32,30);
  57.   HCDisplay.Print("2.8\" LCD");
  58.  
  59.   /* Change the font */
  60.   HCDisplay.SetFont(MedProp_12ptFont);
  61. }
  62.  
  63.  
  64. void loop()
  65. {
  66.   /* Make some text flash by swapping the texts foreground and background colours */
  67.   HCDisplay.SetFG(FGColour);
  68.   HCDisplay.SetBG(!FGColour);
  69.   HCDisplay.Pos(8,42);
  70.   HCDisplay.Print("HCMODU0245");
  71.  
  72.   FGColour = !FGColour;
  73.  
  74.   delay(200);
  75. }



Image

HCDisplay Arduino library:

viewtopic.php?f=58&t=2827

Please ensure that have V1.2.0 or greater of the HCDisplay library installed.



Libraries, example code, and diagrams are provided as an additional free service by Hobby Components and are not sold as part of this product. We do no provide any guarantees or warranties as to their accuracy or fitness for purpose.

Descriptions and diagrams on this page are copyright Hobby Components Ltd and may not be reproduced without permission.

oldmaker
Posts: 12
Joined: Tue Aug 08, 2023 9:04 am

Re: 1.8 Inch 128x64 ST7565 Serial LCD Display With Backlight (HCMODU0246)

Post by oldmaker » Wed Mar 13, 2024 4:21 pm

Very pleased with this display. Ideally suited to low power applications -
Screen is clearly visible in daylight even without backlight reducing power consumption to less that 1mA.
HCDisplay library simple to use with this device. Thanks

andrew
Site Admin
Posts: 1384
Joined: Sun Aug 05, 2012 4:15 pm

Re: 1.8 Inch 128x64 ST7565 Serial LCD Display With Backlight (HCMODU0246)

Post by andrew » Thu Mar 14, 2024 9:04 am

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

Post Reply

Return to “Display”