Same-day dispatch before 2 PM · Free delivery over ₹999 · GST invoices Get the appPrices incl. GST
Geekobot
Snap & SendNEWGeeko AIWhere's myOrder
Log in
Products
  • Projects
    • Component guidesHow parts work, with code you can run
    • Learning pathsFrom your first LED to your first robot
    • Workshops & eventsOnline sessions for makers and classes
    • ElectrolarkFree guided builds, simulator and certificates
    • Students & teachersStudent discount and classroom help
    • CommunityShare builds and ask other makers
    • CalculatorsOhm's law, LED resistor, 555 and 100+ more
    • Circuit builderWire parts and run the circuit, powered by Electrolark
    • Geeko AIAsk what to buy or how to wire it
    • Snap & SendPhotograph a part or list, we find it
    • Part finderAnswer a few questions, get the right part
    • Compatibility checkWill these two parts work together?
    • Compare partsSpecs side by side
    • Business & bulk ordersGST invoices, credit and volume prices
    • Request a quotationSend your list, get a quote
    • Classroom kitsPer-student kits and lab bundles
    • Gift cardsFor students, teams and events
  • Atal Tinkering Lab
BOM to cart
Geekobot

Components, kits and know-how for makers, students, engineers, labs and businesses across India.

Ask Geeko AIOrders, parts and projects, any timeEmail supportReply within 1 working dayGet the Geekobot appAdd it to your home screen, free

Follow us

Shop

  • Boards & SBCs
  • Sensors & Modules
  • IoT & Wireless
  • Drone & FPV
  • 3D Printing
  • Filaments & Resins
  • Motors & Drivers
  • Power & Batteries
  • Semiconductors
  • Passive
  • Displays & LEDs
  • Switches & Relays
  • Wires & Cables
  • Prototyping
  • Tools & Test
  • Robotics
  • STEM Kits
  • Atal Tinkering Lab
  • Mechanical Parts
  • Audio

Orders

  • Track your order
  • Help & support
  • Shipping and delivery
  • Refunds and cancellation
  • Contact us

Learn

  • Projects
  • Geeko AI project assistant
  • Learning paths
  • Guides
  • Calculators
  • Electrolark: free guided builds

Part tools

  • Part finder
  • Compare parts
  • Will it work with my board?

Institutions

  • Classroom kits
  • Atal Tinkering Lab
  • Students & teachers
  • Workshops & Events

Business

  • Business & education
  • Request a quotation
  • BOM bulk upload
  • Quick order by SKU

Company

  • About Geekobot
  • Community
  • Gift cards
  • Terms & conditions
  • Privacy policy
  • Product directory
  • Sitemap

© 2026 Geekobot, a trade name of OLatus Systems Private Limited. All rights reserved.

20, 1st Floor, Neeladri Complex, 10th Cross, Sampige Rd, 2nd Main, Malleshwaram, Bengaluru, Karnataka 560003 · GSTIN 29AACCO0462F1ZM

+91 91810 15607 · connect@geekobot.in · Monday to Saturday, 10 AM to 2 PM IST

UPI · CARDS · NETBANKING · GST INVOICES

ShopProjectsGeeko AIGuides
Compare 0 parts →
Log in

Shop by category

Shop all components
  • Boards & SBCs1,910 products
    • Alternative Single Board Computers
    • Arduino Ecosystem
    • FPGA & Logic Boards
    • Microcontroller & Wireless Boards
    View all
  • Sensors & Modules4,701 products
    • Biomedical & Heart Rate
    • Current, Voltage & Power
    • Force, Weight & Pressure
    • Gas, Weather & Environmental
    View all
  • IoT & Wireless2,314 products
    • RF Modules
    • RFID & NFC
    • Antennas & RF Accessories
    • Cameras & Smart Vision
    View all
  • Drone & FPV3,558 products
    • Flight Control & Navigation
    • FPV Video & Optics
    • Frames & Structural Parts
    • Motors & Propulsion
    View all
  • 3D Printing2,204 products
    • 3D Printers
    • 3D Scanners & Digitizers
    • Laser Engravers & Cutters
    • Material Management & Upgrades
    View all
  • Filaments & Resins1,472 products
    • Filaments
    • Photopolymer Resins
    View all
  • Motors & Drivers463 products
    • BLDC Motor Drivers
    • DC & Geared Motors
    • DC Motor Drivers
    • Linear Actuators & Solenoids
    View all
  • Power & Batteries557 products
    • Battery Holders & Connectors
    • Breadboard Power
    • Chargers & BMS
    • DC-DC Converters
    View all
  • Semiconductors295 products
    • Diodes & Rectifiers
    • Interface & RF Encoder ICs
    • Logic ICs (74xx)
    • Logic ICs (CD4000)
    View all
  • Passive67 products
    • Capacitors
    • Circuit Protection
    • Crystals & Oscillators
    • Inductors
    View all
  • Displays & LEDs572 products
    • 7-Segment & Dot Matrix
    • Addressable LEDs
    • Character LCDs
    • Graphic LCDs
    View all
  • Switches & Relays184 products
    • Keypads & Touch
    • Push Buttons & Tactile
    • Relay Modules
    • Relays
    View all
  • Wires & Cables233 products
    • Board-to-Wire Connectors
    • Crimp & Splice
    • Headers & Dupont
    • Heat Shrink & Sleeving
    View all
  • Prototyping101 products
    • Breadboards
    • Interface Modules
    • PCBs & Perfboards
    View all
  • Tools & Test717 products
    • Bench Power Supplies
    • Hand Tools
    • Measuring Tools
    • Meters & Testers
    View all
  • Robotics180 products
    • Humanoid & Legged Robots
    • Robot Chassis & Platforms
    • Robotic Arms & Grippers
    • Wheels & Casters
    View all
  • STEM Kits268 products
    • Arduino Learning Kits
    • Coding & IoT Kits
    • Early Coding (Ages 3-8)
    • Invention Kits
    View all
  • Atal Tinkering Lab196 products
    • Package 1: Electronics, Robotics, IoT and Sensors
    • Package 2: Rapid Prototyping Tools
    • Package 3: Mechanical, Electrical and Measurement Tools
    • Package 4: Power Supply, Accessories and Safety Equipment
    View all
  • Mechanical Parts212 products
    • Bearings
    • Brackets & Mounts
    • Couplers
    • Fasteners & Standoffs
    View all
  • Audio109 products
    • Amplifier Modules
    • Buzzers & Sirens
    • Speakers
    View all
  1. Home
  2. ›Guides
  3. ›Displays & LEDs
  4. ›128x64 Graphic LCD (ST7920)

Component guide · Intermediate · 3 min read

128x64 Graphic LCD (ST7920)

Wiring and U8g2

By Geekobot Learning Team · Updated 24 Oct 2026

On this page
Short answerSerial mode wiringDrawing with U8g212864 LCD vs OLED vs TFTCommon mistakesFAQsParts and next steps
Short answer

The 12864 graphic LCD is a 128 by 64 pixel monochrome screen, usually with an ST7920 controller and a blue or green backlight. It is large and readable, and is the display on many 3D printer control panels. Use its serial mode with three signal wires (RS, R/W and E) by tying PSB low, then draw text, icons and graphs with the U8g2 library. Set contrast with the potentiometer on the back.

Key specs at a glance

Resolution
128 x 64 pixels, about 3.2 inch class
Controller
ST7920 (most common), some use KS0108
Interfaces
8-bit parallel or 3-wire serial (PSB low)
Supply
5 V on most modules; some 3.3 V versions
Backlight
LED, pins BLA/BLK (A/K), often with a resistor fitted
Library
U8g2 (constructor U8G2_ST7920_128X64_F_SW_SPI)
01

Serial mode wiring

Connect VSS to GND, VDD to 5 V, and BLA/BLK to 5 V and GND for the backlight. Tie PSB to GND to select serial mode. Then:

  • ✓RS (CS) to a digital pin, for example D10.
  • ✓R/W (data) to D11.
  • ✓E (clock) to D13.
  • ✓RST to 5 V or a spare pin.

On a 3.3 V board, check whether your module accepts 3.3 V logic; many work, but the 5 V versions are not guaranteed to. Adjust the contrast potentiometer if the screen looks blank or fully dark.

02

Drawing with U8g2

Full-buffer mode uses about 1 KB of RAM, half an Uno's memory; use the page-buffer "_1_" constructor if you run short.

Hello on a 12864 ST7920 · Arduino C++Verify & upload in Electrolark
#include <U8g2lib.h>
// clock, data, cs, reset
U8G2_ST7920_128X64_F_SW_SPI lcd(U8G2_R0, 13, 11, 10, 8);

void setup() { lcd.begin(); }

void loop() {
  lcd.clearBuffer();
  lcd.setFont(u8g2_font_6x12_tr);
  lcd.drawStr(0, 12, "Geekobot");
  lcd.drawFrame(0, 20, 128, 20);
  lcd.drawBox(2, 22, (millis() / 50) % 124, 16);   // moving bar
  lcd.sendBuffer();
}
03

12864 LCD vs OLED vs TFT

  • ✓The 12864 is big and cheap, readable in sunlight with the backlight off, but slow to refresh and only monochrome.
  • ✓An OLED is smaller, sharper and high contrast, but can burn in.
  • ✓A TFT gives colour and touch for a little more cost and more pins.
  • ✓A 16x2 LCD is simpler when you only need text.
04

Common mistakes to avoid

  • !Leaving PSB floating or high in serial mode.
  • !Contrast pot turned all the way, so nothing shows.
  • !Full-buffer mode on an Uno with a big sketch, running out of RAM.
  • !Assuming every 12864 board is 3.3 V compatible.
  • !Using a KS0108 library on an ST7920 board.
05

Frequently asked questions

How do I know if my 12864 is ST7920?

The controller is usually printed on the listing or board; ST7920 boards have a PSB pin and 20 pins.

Why is my 12864 screen blank?

Adjust the contrast pot, check PSB is low for serial mode, and confirm the U8g2 pin order.

Can I use it with ESP32?

Often, with 3.3 V logic and the backlight on 5 V, but check your module's logic level.

Is this the 3D printer display?

Yes. The RepRap Discount Full Graphic Smart Controller uses a 12864 ST7920 LCD.

Does it show Hindi or other scripts?

With U8g2's Unicode fonts you can draw many scripts, limited by available fonts and memory.

Parts for this guide

  • 12864 Graphic LCD Module (128x64)
    ₹519View
  • Nokia 5110 LCD Module (84x48)
    ₹219View
  • 128×64 Graphic LCD (ST7920 / KS0108)
    ₹496View
  • 128×48 Graphic LCD (Green)
    ₹968View
Shop Graphic LCDs

Terms in this guide

SPISerial Peripheral Interface: a fast bus with clock, data in, data out and a chip-select line per device.Frame bufferMemory that holds a full image of a display before it is sent to the screen.ResolutionThe smallest step a measurement or output can represent. A 12-bit ADC on 3.3 V has steps of about 0.8 mV.HD44780The standard controller chip used in character LCDs such as 16x2 and 20x4 displays.

Projects that use it

Put this into practice: 1 step-by-step build in our project library uses parts from this guide.

Beginner · 2 hours"Now serving" queue display on a 128x64 graphic LCDView project
Browse all 1 project

Keep learning

How-toBeginnerSSD1306 OLED DisplayThe SSD1306 is the driver chip in most small monochrome OLED displays, such as the popular 0.96 inch 128x64 module.3 min read · Displays & LEDsComparisonIntermediateTFT Displays for Arduino and ESP32Small colour TFT and IPS displays use a driver chip that sets the resolution and the library you need: ST7735 for 1.44 to 1.8 inch 128x160 screens, ST7789 for sharp 240x240 or 240x320 IPS screens, ILI9341 for 2.4 to 3.2 inch 240x320 screens, and GC9A01 for round screens.4 min read · Displays & LEDsHow-toBeginner16x2 LCD with I2CA 16x2 LCD shows two lines of 16 characters using the HD44780 controller.3 min read · Displays & LEDsComponent guideIntermediateNextion and DWIN HMI Touch DisplaysAn HMI display such as a Nextion or DWIN has its own processor and memory.3 min read · Displays & LEDsComponent guideIntermediate3D Printer Hotends and Extruders ExplainedThe extruder grips the filament with a gear and pushes it; the hotend melts it and forces it through the nozzle.3 min read · 3D Printing

Sources

  • Sitronix ST7920 datasheet
  • U8g2 library reference

Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

On this page
Short answerSerial mode wiringDrawing with U8g212864 LCD vs OLED vs TFTCommon mistakesFAQsParts and next steps
Need a hand?Ask Geeko AI which part fits your project, or talk to the Geekobot team.Ask Geeko AIHelp & support

Parts for this guide4 items · ₹2,202

12864 Graphic LCD Module (128x64) · Nokia 5110 LCD Module (84x48) · 128×64 Graphic LCD (ST7920 / KS0108) · 128×48 Graphic LCD (Green)

Run itChange the inputs and watch the output
Geekobot
┌───────────────────┐
│ │
└───────────────────┘

A simulation of the sketch above, so you know what to expect. Real readings vary with your parts and wiring.

Ask the Community

Ask a question