This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Abstract. This paper describes the working principle of the STM32 drive OLED screen, design of
the hardware circuit, program the software. English characters and numbers can be displayed on the OLED display. Graphics can display by font generation software at the same time. The design is
especially suitable for the design of instrument and meter. It has a certain practical value.
Introduction
In the design of instrument and meter, it is necessary to choose a suitable display device. Not only show clear, but also low power consumption. Liquid crystal display is one of the best choice, but
the ordinary liquid crystal display, because of no back-light, therefore, the display effect is poor, definition is not enough. One of the light-emitting diodes OLED and LCD light-emitting principle
is different, was discovered in 1979 by the Chinese American professor Deng Qingyun in the laboratory. The display technology has the advantages of wide viewing angle, high brightness, high
contrast, low power consumption, fast response, simple interface, etc.it can be used widely.
OLED Driving Circuit Design
OLED LCD screen is shown in figure 1. Pin one is a power supply GND, VCC is connected to +3.3V, SCL is the IIC interface clock signal line, SDA is the send data pin.
The connection diagram between OLED and STM32 is shown in figure 2. Pin SCL of OLED is connected to the PE1 pin of the STM32, and the SDA is connected to the PE0 pin of the STM32.
Software programming, we use analog IIC to generate the required timing, timing on the OLED screen read and write operations.
Figure 1. OLED Outlook
This is an open access article under the CC BY-NC license (http://creativecommons.org/licenses/by-nc/4.0/).
7th International Conference on Education, Management, Information and Computer Science (ICEMC 2017)Advances in Computer Science Research (ACSR), volume 73
In this design, the OLED read and write mainly through the IIC interface, figure 3 gives the IIC read and write timing. Read and write a byte of data each time.
OLED_WR_Byte(0xAF,OLED_CMD);//--turn on oled panel }
The above code is fulfilling the initialization of OLED. By initializing the PE0 and PE1 as output pins. Writing OLED related registers with different initial values to complete the initialization of
the OLED.
Summary
This paper describes the working principle of driver OLED by STM32, designed the hardware circuit, programmed the software, realized the initialization of the OLED, it can display English
letters or numbers on the OLED, it has a certain practical value.
Reference
[1] Zhang Lei, Wu Huaxia, Hu Juntao, et al. A FPGA based OLED display system [J], LCD and display.2011,26 (4): 538-542.
[2] Li Xiang, Zheng Xifeng,. Linux based on the OLED display module design [J], LCD and display.2012,27 (1): 103-107.
[3] Miu Zhihua, Xu Sheng, Li Fushan, Lin an. A large area OLED module uniform dimming technology [J], LCD and display.2014,29 (3): 403-409.
[4] ran Feng, He Linqi, Ji Yuan. Design and implementation of wireless OLED micro display system [J], LCD and display.2012,27 (5): 636-637.
[5]Zhang Wenwen, , He Ping, Dong Jun. Design and implementation of multi function OLED power supply [J], infrared and laser engineering.2014,43 (6): 1883-1888.
Advances in Computer Science Research (ACSR), volume 73