Last updated
The AZDelivery 1.3 inch OLED Display is very compact with a screen diagonal of 3.7 cm and due to the high contrast, characters and writing are very legible. The Display consists of 128x64 white OLED pixels which are individually controlled By the built-in SH1106 chip.
It is perfect for easy use with microcontrollers like ATmega, STM32, 8051, AVR, PIC, DSP, ARM, MSP430, PLC, TTL-Logic, etc.. For use with a board we recommend the U8glib library which also contains some example sketches.
Supports up to 132 X 64 dot panels
Embedded 132 X 64-bit SRAM
Operating Voltage:
Logic Voltage Supply: VDD1 = 1.65V - 3.5V
DC-DC voltage supply: VDD2 = 3.0V - 4.2V
OLED operating voltage supply:
External VPP supply = 6.4V - 13.0V
Internal VPP generator = 6.4V - 9.0V
Maximum segment output current: 200μA
Maximum common absorption current: 27mA
400KHz fast I2 C bus interface
Programmable frame rate and multiplexing
Row remapping and column remapping (ADC)
Vertical scrolling " on-chip oscillator
Programmable internal charge pump circuit output
256 levels of contrast control on monochrome passive OLEDs
Wide operating temperature range: -40 to +85°C
Available in COG form, thickness: 300μm
1、 SDA: Bidirectional data line.
2、SCL: Clock signal line.
3、GND: Power negative.
4、VCC: Positive 3.3V-5V.
Dimensions | 36 x 34 x 3mm |
---|---|
Point matrix | 128 x 64 |
Pixel size | 0.21 mm × 0.21 mm |
Pixel distance | 0.23 mm × 0.23 mm |
Pixel colour | White |
Display mode | Passive matrix |
Communication interface | I2C |
Low energy consumption | <11ma |
Supply voltage | 3.3V to 5V |
Operating temperature | -20 to 70 ℃ |
Because the OLED display uses I2C communication protocol, wiring is very simple. You just need to connect to the Arduino Uno I2C pins as shown in the table below.
Pin | Wiring to Arduino Uno |
Vin | 5V |
GND | GND |
SCL | A5 |
SDA | A4 |
If you’re using a different Arduino board, make sure you check the correct I2C pins:
Nano: SDA (A4); SCL (A5)
MEGA: SDA (20); SCL (21)
Leonardo: SDA (20); SCL (21)
To control the OLED display you need the adafruit_SSD1306.h and the adafruit_GFX.h libraries. Follow the next instructions to install those libraries.
1. Open your Arduino IDE and go to Sketch > Include Library > Manage Libraries. The Library Manager should open.
2. Type “SSD1306” in the search box and install the SSD1306 library from Adafruit.
3. After installing the SSD1306 library from Adafruit, type “GFX” in the search box and install the library.
4. After installing the libraries, restart your Arduino IDE.
Here’s some functions that will help you handle the OLED display library to write text or draw simple graphics.
display.clearDisplay() – all pixels are off
display.drawPixel(x,y, color) – plot a pixel in the x,y coordinates
display.setTextSize(n) – set the font size, supports sizes from 1 to 8
display.setCursor(x,y) – set the coordinates to start writing text
display.print(“message”) – print the characters at location x,y
display.display() – call this method for the changes to make effect
After wiring the OLED display to the Arduino and installing all required libraries, you can use one example from the library to see if everything is working properly.
In your Arduino IDE, go to File > Examples > Adafruit SSD1306 and select the example for the display you’re using.
If your OLED doesn’t have a RESET pin, you should set the OLED_RESET variable to -1 as shown below:
Upload the code to your Arduino board. Don’t forget to select the right board and COM port in the Tools menu.
You should get a series of different animations in the OLED as shown in the following short video.