Electronics » Displays »
Graphical OLED Display: 128x64, 1.3", White Pixels, SPI, Blue PCB
This monochrome white OLED display features a standard SH1106 SPI interface and a 128×64-pixel resolution. With an active area measuring 1.3″ diagonally, it makes a great compact graphical display for applications where simple LED indicators and text output are not enough.
Description | Specs (8) | Pictures (7) | Resources (5) | FAQs (0) | On the blog (1) |
---|
Discontinuation notice: This product is being replaced by the functionally identical Graphical OLED Display: 128×64, 1.3″, White Pixels, SPI, Black PCB. The only difference between the two is the PCB solder mask color.
Overview
This small module consists of a 128×64 white OLED (organic light-emitting diode) display and all the electronics needed to control it over SPI using a standard SH1106 interface (1MB pdf). The LEDs can be individually turned on or off to show monochrome graphics and text. Despite its compact size, the OLED display has good contrast because each pixel lights up individually, and since there is no backlight, unlit pixels can be very dark.
Specifications
- Pixel color: white
- Resolution: 128×64 pixels
- Pixel pitch: 0.23 mm (110 DPI)
- Active display area: 1.3″ diagonal (1.16″ × 0.58″ or 29.4 mm × 14.7 mm)
- Dimensions: 1.4″ × 1.32″ (35.4 mm × 33.5 mm); see the dimension diagram (182k pdf) for more details
- Supply voltage: 3.1 V to 5.5 V on VCC (NOTE: the logic pins are not 5V tolerant)
- Supply current: 40 mA typical with all pixels on (current draw depends on how much of the display is lit)
- Four mounting holes intended for M3 or #4 screws
Pinout
Pin | Description |
---|---|
GND | Ground (0 V) |
VCC | 3.1 V to 5.5 V supply voltage |
CLK | SPI clock (3.3V logic only) |
MOS | SPI data (3.3V logic only) |
RES | Reset (3.3V logic only) |
DC | Data/command select (3.3V logic only) |
CS | SPI chip select (3.3V logic only) |
Using the display
This display module has seven pins on a row of 0.1″-pitch through holes, which work with standard 0.1″ (2.54 mm) male headers and 0.1″ female headers (available separately). It also has four mounting holes designed for use with #4 or M3 screws.
The module is powered through its GND and VCC pins, and it includes an on-board regulator that lets it work with VCC supply voltages from 3.1 V to 5.5 V. The rest of the pins are not 5V tolerant, so level shifters or voltage dividers are required when interfacing with 5 V systems.
The driver/controller IC on this OLED screen is an SH1106 configured to operate in “4-wire SPI” mode. Four control inputs—CLK, MOS, DC, and CS—are used in normal operation, and a fifth pin, RES, can be used to reset the display. For more information, see the SH1106 datasheet (1MB pdf).
Graphical OLED Display: 128×64, 1.3", White Pixels, SPI, Blue PCB, controlled by an A-Star 328PB Micro running at 3.3V. |
---|
Sample code and libraries are widely available for interfacing the SH1106 with a variety of microcontrollers. One library that we recommend is U8g2, which works with Arduino and has also been ported to other platforms. As an example, you can use the U8g2 constructor U8G2_SH1106_128X64_NONAME_1_4W_SW_SPI
to control the display with a one-page buffer and software SPI; see the U8g2 documentation for other options.
The SH1106 is similar to and electrically compatible with the common SSD1306 controller, but differences in the two chips’ command sets mean that code written for one will generally require changes to work with the other.
People often buy this product together with:
0.100" (2.54 mm) Breakaway Male Header: 1×40-Pin, Straight, Black |
Mini Pushbutton Switch: PCB-Mount, 2-Pin, SPST, 50mA (5-Pack) |
Logic Level Shifter, 4-Channel, Bidirectional |