OLED Display

In this project, you'll learn how to connect and control an Organic Light Emitting Diode (OLED) display which uses the SSD1305 controller chip.

Parts needed:
  • Arduino
  • 0.96" OLED display with the SSD1305 controller.
  • Wires
  • Breadboard

You'll also need to download and install this U8glib library which contains all of the functions for drawing and interfacing with the OLED display. The full documentation for this library is found here.

The reference manual for all of the available functions in this library is found here.

OLED display     
1 Making the connections

This OLED display can be hardware configured to use one of several communication protocols. We will use the default 4-wire SPI protocol which requires seven connections: GND, VCC, D0, D1, RES, DC, and CS.

OLED pins Arduino pins Description
GND GND Ground
VCC 3.3V or 5V Power
D0 8 Clock, SCL, SCK
D1 9 Data, SDA, MOSI
RES 10 Reset
DC 11 A0
CS GND Chip select
2 Download the U8glib library.
3 Install the U8glib library by selecting Sketch from the Arduino IDE menu
  • then select Import Library or Include Library
  • then select Add Library or Add .ZIP Library
Locate and select the U8glib.zip file that you just downloaded in step 2. It should be in the Download folder.

Click the Open button

(Refer to this document for more information on how to install a library if you run into problems.)
4 Create a new program by selecting File from the menu
  • then select Examples
  • then select U8glib
  • then select Basic
3 Upload and run the program.