What is the resolution of a 3.18 inch 128x64 COG LCD?
The resolution of a 3.18 inch 128x64 COG LCD is exactly 128 pixels horizontally by 64 pixels vertically. That’s a total of 8,192 pixels, which is a standard for small graphic displays used in embedded systems, industrial controls, and portable devices. But resolution alone doesn’t tell the full story—you need to understand how that pixel count translates to real-world performance, readability, and application fit. Let’s break it down from multiple angles, with hard data and practical context.
Pixel density and dot pitch
For a 3.18 inch diagonal screen with a 128x64 matrix, the active area typically measures around 70.7mm by 38.8mm (this varies slightly by manufacturer but is common for COG modules). That gives a pixel density of about 46 DPI (dots per inch). To calculate: 128 pixels / 2.78 inches (width) ≈ 46 DPI. This is lower than a smartphone’s 300+ DPI, but for a monochrome LCD used for text, icons, or simple graphs, it’s more than sufficient. The dot pitch—the center-to-center distance between pixels—is roughly 0.55mm. That’s large enough to read clearly without backlight strain, even in low-light conditions, and it makes the display forgiving for touch inputs if you add a touch panel overlay.
How 128x64 compares to other common resolutions
To put this in perspective, here’s a quick comparison table of typical small LCD resolutions and their pixel counts:
| Resolution | Total Pixels | Common Diagonal Size | Typical Application |
|---|---|---|---|
| 128x64 | 8,192 | 2.7” to 3.3” | Industrial meters, medical devices, POS terminals |
| 128x32 | 4,096 | 1.5” to 2.2” | Simple status displays, calculators |
| 240x128 | 30,720 | 3.5” to 5.0” | More detailed graphical interfaces, handheld terminals |
| 192x64 | 12,288 | 3.0” to 3.5” | Oscilloscopes, test equipment |
As you can see, the 128x64 sits in a sweet spot: it offers enough pixels for readable alphanumeric characters (typically 8 lines of 21 characters at 5x8 font) and simple graphics, without the cost and power overhead of higher-resolution panels. For a 3.18 inch display, this resolution keeps the controller simple and the interface fast, especially with SPI.
Interface and controller specifics
The COG (Chip-on-Glass) construction means the driver IC is bonded directly to the glass substrate, reducing the number of external components and the overall thickness. Most 3.18 inch 128x64 COG LCDs use a controller like the ST7565R or equivalent, which supports SPI (Serial Peripheral Interface) and parallel interfaces. SPI is the most common for this size because it only needs 4-5 wires (SCLK, MOSI, CS, DC, and optionally RESET), making it ideal for microcontrollers with limited GPIOs. The maximum SPI clock speed is usually around 10 MHz, so you can refresh the entire screen at over 60 Hz—more than enough for static or slow-updating data. The controller also includes an internal charge pump for generating the negative voltage needed for the LCD, which typically draws around 1-2 mA for the logic and 5-10 mA for the LED backlight (if included).
Viewing angle and contrast performance
Resolution is meaningless if the display is unreadable. The 3.18 inch 128x64 COG LCD typically uses an STN (Super Twisted Nematic) or FSTN (Film-compensated STN) liquid crystal mode. FSTN offers better contrast and a wider viewing angle—typically 6 o’clock or 12 o’clock direction with a contrast ratio of around 10:1 to 15:1. Without backlight, the reflective version relies on ambient light, achieving a readability of about 30 degrees from normal in the preferred direction. With a white LED backlight (common in transflective models), the contrast improves significantly, and the viewing angle expands to about 60 degrees horizontally and 40 degrees vertically. The operating temperature range is usually -20°C to +70°C, with storage from -30°C to +80°C, which is standard for industrial COG modules.
Pixel arrangement and subpixel structure
Unlike color TFT displays that use RGB subpixels, this monochrome LCD has a single pixel per dot. Each pixel is a square or slightly rectangular shape, with a fill factor (the ratio of active area to total pixel area) of around 70-80%. The remaining area is occupied by the black matrix and the interconnecting lines, which are nearly invisible at normal viewing distances. The pixel layout is a simple matrix, so each pixel is either on (dark) or off (transparent), depending on the drive waveform. This binary nature means no dithering or color mixing—you get sharp, high-contrast text and graphics without any color artifacts. For grayscale, you can use pulse-width modulation (PWM) of the pixel voltage, but the controller usually supports only 2-4 gray levels unless you use external hardware.
Power consumption and electrical characteristics
Here’s a breakdown of typical power consumption for a 3.18 inch 128x64 COG LCD under different conditions:
| Condition | Current (mA) | Voltage (V) | Power (mW) |
|---|---|---|---|
| Logic only, no backlight | 1.2 | 3.3 | 4.0 |
| Full screen on, no backlight | 1.5 | 3.3 | 5.0 |
| Backlight on (white LED) | 20 | 3.3 | 66 |
| Backlight on (high brightness) | 40 | 3.3 | 132 |
These numbers are based on typical modules from manufacturers like Newhaven Display or Winstar. The backlight current dominates, so if you’re designing a battery-powered device, you can save power by using a PWM-controlled backlight or a reflective version that doesn’t need it. The logic current is low enough that you can run it directly from a microcontroller’s GPIO pin without a separate regulator, as long as the total current stays under the pin’s limit.
Physical dimensions and mounting considerations
The 3.18 inch diagonal translates to an active area of about 70.7mm x 38.8mm, as mentioned. The overall module size is typically 80.0mm x 53.0mm, with a thickness of around 6.0mm to 8.0mm depending on the backlight and PCB. The COG bonding process means the glass is only about 1.1mm thick, and the PCB (if any) adds another 1.6mm. The module often comes with a 2.54mm pitch pin header or a flexible flat cable (FFC) for connection. The viewing area is usually larger than the active area by about 2-3mm on each side, so you need to account for that in your bezel design. The weight is around 15-20 grams, making it suitable for handheld or portable equipment.
Real-world application examples
I’ve seen this display used in blood glucose meters, where the 128x64 resolution shows a large number (like 120 mg/dL) with a 16x32 font, plus a small graph of past readings. In a CNC controller, it displays 8 lines of 21 characters, showing axis positions, feed rates, and tool offsets. For a weather station, it can show temperature, humidity, pressure, and a simple icon (sun, cloud, rain) without any scrolling. The key advantage is that the 3.18 inch size is large enough to be read from 2-3 feet away, but small enough to fit in a 4-inch wide enclosure. The COG construction also means no bulky zebra strips or elastomeric connectors, which improves reliability in vibration-prone environments.
Comparison with OLED and TFT alternatives
At the same 3.18 inch size, an OLED display with 128x64 resolution would have higher contrast (10,000:1 vs 15:1) and a wider viewing angle (170 degrees vs 60 degrees), but it would consume about 20-30 mA even without backlight, and it has a shorter lifetime (typically 10,000-20,000 hours for blue OLEDs vs 50,000+ hours for LED-backlit LCDs). A TFT color display at 3.2 inches might have 320x240 resolution, but it requires a more complex interface (parallel RGB or MIPI), higher power (50-100 mA with backlight), and costs 2-3 times more. So the 128x64 COG LCD is a cost-effective, reliable choice for applications that don’t need color or high refresh rates.
Interface timing and driver compatibility
The ST7565R controller used in many of these displays has a 64x128-bit RAM that maps directly to the pixel array. Data is written in 8-bit chunks, and the controller automatically increments the column and page addresses. The typical SPI write cycle takes about 1 microsecond at 10 MHz, so a full frame update (8192 bytes) takes about 8.2 milliseconds. That’s fast enough for real-time updates like a waveform or a scrolling text. The controller also supports hardware scrolling, inverse display, and sleep mode, which can reduce power to under 1 µA. The command set is simple, with about 20 instructions, so you can get it running in under an hour with any microcontroller that has an SPI peripheral.
Optical characteristics and readability in different environments
In direct sunlight, a reflective or transflective LCD (like the 3.18 inch 128x64 COG) actually becomes more readable because the ambient light is reflected off the back polarizer. The contrast ratio in sunlight can exceed 20:1, while a backlit LCD in direct sun often washes out. In a dark room, the backlight provides uniform illumination, but the viewing angle narrows to about 30 degrees if you’re using a standard LED edge-light. For wide-angle viewing, you can choose a model with a diffuser film, but that reduces contrast slightly. The typical response time is 100-200 milliseconds at 25°C, which is fine for static data but too slow for video or fast animations. At -20°C, the response time can increase to 500-1000 milliseconds, so you might need a heater for outdoor use.
Cost and availability
These displays are commodity items, with unit prices ranging from $5 to $15 depending on quantity, backlight type, and temperature range. For example, a basic reflective version without backlight might cost $4.50 in 100-piece quantities, while a wide-temperature transflective version with white LED backlight could be $12.00. They’re stocked by major distributors like Digi-Key, Mouser, and LCSC, as well as specialized LCD suppliers. The 3.18 inch 128x64 cog lcd display is a common variant that includes an SPI interface, a white backlight, and an FSTN panel, making it a drop-in replacement for many existing designs.
Mechanical and environmental reliability
The COG bonding process eliminates the need for a separate PCB for the driver IC, which reduces the number of solder joints and potential failure points. The glass is typically 0.7mm to 1.1mm thick, and the module passes a 1000-hour humidity test at 85°C/85% RH. The backlight LEDs have a rated lifetime of 50,000 hours to half brightness, and the LCD fluid itself lasts over 100,000 hours if driven within the voltage limits. The pin header is usually rated for 100 insertions, and the FFC connector (if used) can handle 20-30 cycles. For applications with high vibration, you can add a metal frame or a mounting bracket, which increases the thickness by about 2mm.
Software and driver development
Writing code for this display is straightforward. You need to initialize the controller with a few commands: set the bias voltage (usually 1/9 for 64 lines), set the regulation resistor ratio (typically 5-7), and set the contrast (via a potentiometer or a register). Then you can send pixel data by writing to the RAM. Most libraries (like u8g2, Adafruit_GFX, or custom ones) support this controller out of the box. The memory footprint is small—about 1KB for the frame buffer if you’re using a 128x64 monochrome buffer. For microcontrollers with limited RAM, you can write directly to the display without a buffer, but that requires more careful timing to avoid flicker.
Common pitfalls and how to avoid them
One issue I’ve seen is using the wrong voltage for the LCD drive. The controller generates a negative voltage internally, but if you set the contrast too high, the pixels can become permanently dark (burn-in). The recommended contrast voltage is typically 8-10V, which corresponds to a register value of 0x20 to 0x30. Another issue is the SPI clock polarity and phase—most controllers use mode 0 (CPOL=0, CPHA=0) or mode 3 (CPOL=1, CPHA=1), so check the datasheet. Also, the reset pin is often active low, and you need to hold it low for at least 1 ms after power-up. If you skip the reset, the display might not initialize correctly. Finally, the backlight current should be limited by a resistor (typically 10-20 ohms for a 3.3V supply) to avoid burning out the LEDs.
Future trends and alternatives
While 128x64 COG LCDs have been around for decades, they’re still widely used because they’re cheap, reliable, and easy to drive. The main competition comes from e-paper displays (like 2.9 inch 296x128) which offer zero-power image retention but slower refresh and higher cost. For color, you can get a 3.5 inch TFT with 480x320 for about $20, but the interface is more complex. For ultra-low power, a 128x64 OLED with a built-in charge pump can run on a coin cell for weeks. But for a balance of cost, readability, and simplicity, the 3.18 inch 128x64 COG LCD remains a solid choice, especially in industrial and medical environments where long-term availability and ruggedness matter.