Introduction: How to Interface With OLED 0.96inch LCD128x64
This tutorial is going to teach you some basics on using OLED 0.96inch LCD128x64.
Step 1: 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
Step 2: Pin Definition
Step 3: Sample Hardware Installation
Step 4: 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.
Attachments
Step 5: How to Use U8glib Library
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!
Step 6: To Display Your Own Picture Into Arduino Readable Code, Here Are the Steps...
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.
Step 7: Results
The changing of patterns shown on OLED LCD display while OLED is being connected to power supplies.
7 Comments
2 years ago on Step 6
hay i know im a bit late but bc of the code changes over the years this is no longer usefull and i dont know how to code arduino, help
5 years ago
Thanks very much. very clear informations It worked at first time. i will use it to display informations from inside automated greenhouse. Thanks again
5 years ago
Hi, mybotic!
How did you tell to MC that your IIC pins are A4 and A5??
6 years ago
He also works for this:https://www.aliexpress.com/item/blue-color-128X64-1-3-inch-OLED-LCD-LED-Display-Module-For-Arduino-1-3-IIC/32712405650.html
6 years ago
Thankyou for sharing library, I got this oled, 128x32 (while the vendor claimed to be 128x64) confirmed with both adafruit and U8 library. it has scanline type effect. guess its because of lower resolution
6 years ago
Hi, I have question
How can i adjust bright of this LCD ?
6 years ago
Thanks for sharing. These are great little displays. Small enough to mount directly to PC board.