QB064 OLED Module

1.Product Introduction

../../_images/OLED-1.jpg

OLED belongs to a current type of organic light emitting device, also known as organic laser display, organic light emitting semiconductor. Under the action of electric field, the internal electrons of OLED will move and meet, and the energy excitons generated will excite luminescence, thereby producing visible light.

Widely used in TV, commercial display, conference display, car display, etc.

2.Parameter Specification

Parameter Value/Representation
Operating voltage 3.3~5V
Operating temperature -30°C~+70°C
Resolution 128*64
Angle of view >160°
Driver chip SSD1306
Control signal IIC
Size 4.72cm*2.38cm
../../_images/OLED-2.png

3.Wiring Diagram

../../_images/OLED-3.png
OLED Module UNO
VCC 5V
GND GND
SCL Analog Pin A5
SDA Analog Pin A4

4.Sample Code

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <U8g2lib.h>//Import the OLED graphics display library
#include <Wire.h>//Import Arduino's IIC library
//Define 0.96 inch OLED12864 display
U8G2_SSD1306_128X64_NONAME_F_HW_I2C u8g2(U8G2_R0, A5, A4, U8X8_PIN_NONE);

//Defines the page content function for the OLED display
void page1() {
  u8g2.setFont(u8g2_font_timR14_tf);//Sets the font to display
  u8g2.setFontPosTop();//Set font position to be aligned close to the top
  u8g2.setCursor(20,20);//Set font display coordinates
  u8g2.print("ACEBOTT");//Setting display content
}
void setup(){
  u8g2.begin();//Initializing the display
  u8g2.enableUTF8Print();//Enable UTF8 printing
}
void loop(){
  u8g2.firstPage();
  do//The U8g2 library's common way of writing loops is to use the do{}while() form
  {
    page1();//Calling a function
  }while(u8g2.nextPage());
}

5.Test Result

After uploading the code to the controller board, the text “ACEBOTT” will be displayed in the middle of the OLED display, and the text can be displayed in different positions of the screen by changing the coordinates of the text display.

../../_images/OLED-4.png

6.Related Resources

7.Get One Now

B2B Business: info@acebott.com

Individual buyer: shop on aliexpress