How to Interface With OLED 0.96inch LCD128x64

by mybotic in Circuits > Arduino

15523 Views, 170 Favorites, 0 Comments

How to Interface With OLED 0.96inch LCD128x64

OLED 0.96 inch LCD128X64.jpg

This tutorial is going to teach you some basics on using OLED 0.96inch LCD128x64.

Introduction

Description:

OLED 0.96 inch is a monochrome graphic display module with a built-in 0.96 inch, 128X64 high-resolution display. OLED 0.96inch is able to work despite the absence of backlight. In a dark environment, contrast of OLED display is higher than LCD display. This device is I^2C or SPI compatible. Due to its capability in displaying, it is often used in various application for instances, smart watch, MP3, function cellphone, portable health device and many others.

Specifications:

  • Working Voltage: 3.3V (suggested)
  • Compatible Interfaces: I^2C or SPI
  • Low power consumption, 0.06W when working normally
  • Working temperature: -30ᵒC to 70ᵒC

Pin Definition

pin definition.PNG
functions of pins.PNG

Sample Hardware Installation

sample hardware installation.PNG

Sample Source Code

To get the result, please download the sample source code attached below and upload it into Arduino.

*Kindly download the U8glib library which is written for many types of LCD display.

How to Use U8glib Library

screenshot.png

After downloading the U8glib library and move the extracted file to the desired Arduino's libraries, now restarting the Arduino software by quitting the entire software and open the software once again. Now, you should be able to see the same thing in the 'File' option.

Users can simply try those written coding and construct the circuit according to the coding. Later users can upload those coding into Arduino and see how the circuit works. Feel free to try out!

To Display Your Own Picture Into Arduino Readable Code, Here Are the Steps...

guiding.png
guiding 2.png

1. Load your picture into GIMP (kindly download the GIMP software by pressing the word "GIMP" and it will direct you to the website for downloading purpose).

2. Convert it into a indexed bitmap (you can find this option in "Mode" under "Image" option. Then choose "2 levels, black & white", by using dithering).

3. Next, export as XBM (.xbm extension).

4. After that, go to the file location of the .xbm extension. You can see a file with name ends with ".xbm" for instances "mybotic.xbm". Kindly rename this file with its name ends with ".txt" for example "mybotic.txt".

5. Please refer to the picture above.

6. Please refer to the picture above.

Results

mybotic.jpg
welcome to mybotic.jpg
drawbox.jpg
drawcircle.jpg
draw rectangle box.jpg
degree.jpg
drawline.jpg
drawtriangle.jpg
set scale.jpg

The changing of patterns shown on OLED LCD display while OLED is being connected to power supplies.

Video

How to interface OLED 0.96 inch with Arduino