Difference between revisions of "0.96inch OLED Module (IIC-4P SKU:MC096VX)"
(→Software description) |
(→Using Instructions) |
||
Line 120: | Line 120: | ||
==<font color="blue">Using Instructions</font> == | ==<font color="blue">Using Instructions</font> == | ||
− | + | '''Arduino平台使用说明''' | |
− | + | 1、接线说明 | |
− | + | {| class="wikitable" border="1" style="width: 500px; background-color: white;" | |
+ | ! colspan="2" |与UNO开发板连接 | ||
+ | ! colspan="2" |与Mega2560开发板连接 | ||
+ | |- | ||
+ | ! align="center" |模块上管脚 | ||
+ | ! align="center" |UNO单片机上管脚 | ||
+ | ! align="center" |模块上管脚 | ||
+ | ! align="center" |Mega2560单片机上管脚 | ||
+ | |- | ||
+ | | align="center" |VCC | ||
+ | | align="center" |5V | ||
+ | | align="center" |VCC | ||
+ | | align="center" |5V | ||
+ | |- | ||
+ | | align="center" |GND | ||
+ | | align="center" |GND | ||
+ | | align="center" |GND | ||
+ | | align="center" |GND | ||
+ | |- | ||
+ | | align="center" |SCL | ||
+ | | align="center" |A5 | ||
+ | | align="center" |SCL | ||
+ | | align="center" |21 | ||
+ | |- | ||
+ | | align="center" |SDA | ||
+ | | align="center" |A4 | ||
+ | | align="center" |SDA | ||
+ | | align="center" |20 | ||
+ | |} | ||
− | + | 2、操作说明 | |
− | + | a、将OLED模块按照接线说明和Arduino开发板连接起来,然后上电。 | |
− | + | b、下载资料包(具体见驱动下载栏),解压后打开“1-Arduino测试程序\Arduino_OLED_Demo_UNO&Mega2560_IIC_V1.0\Example”文件夹, | |
− | + | 里面有测试程序,如下图(相关说明见测试程序说明文档) | |
− | [[ | + | [[文件:MC096-016.jpg|750px]] |
− | + | c、选择任意一个测试程序运行测试,例如选择Example03-show_BMP测试程序 | |
− | + | d、打开测试程序后,点击Tools->Board,选择开发板型号,然后点击Tools->Port,选择连接的com口,如下图所示: | |
− | + | [[文件:MC096-017.jpg|750px]] | |
− | + | e、开发板型号和com口都选择正确后,点击右箭头按钮,进行编译下载,如下图所示: | |
− | + | [[文件:MC096-018.jpg|750px]] | |
− | + | f、待出现Done upload,则说明编译和下载成功,如下图所示: | |
− | + | [[文件:MC096-019.jpg|750px]] | |
− | + | g、OLED模块循环显示三张BMP单色图片,则说明测试程序运行成功,操作成功 | |
− | + | ||
+ | '''C51平台使用说明''' | ||
+ | |||
+ | 1、接线说明 | ||
+ | |||
+ | {| class="wikitable" border="1" style="width: 500px; background-color: white;" | ||
+ | !模块上管脚 | ||
+ | ! align="center" |C51单片机上管脚 | ||
+ | |- | ||
+ | | align="center" |VCC | ||
+ | | align="center" |5V | ||
+ | |- | ||
+ | | align="center" |GND | ||
+ | | align="center" |GND | ||
+ | |- | ||
+ | | align="center" |SCL | ||
+ | | align="center" |P23 | ||
+ | |- | ||
+ | | align="center" |SDA | ||
+ | | align="center" |P24 | ||
+ | |} | ||
+ | |||
+ | 2、操作说明 | ||
+ | a、将OLED模块按照接线说明连接C51单片机,然后上电; | ||
+ | |||
+ | b、下载资料包(具体见驱动下载栏),解压后打开“2-C51测试程序”文件夹,如下图所示: | ||
+ | |||
+ | [[文件:MC096-020.jpg|750px]] | ||
+ | |||
+ | c、里面两种C51单片机的测试程序,随便选择一种,例如选择STC12C5A60S2单片机测试程序(相关说明见测试程序说明文档)。 | ||
+ | |||
+ | d、打开“C51_OLED_Demo_STC12C5A60S2_IIC_V1.0”文件夹,找到“OLED.uvproj”文件,双击打开测试程序工程 | ||
+ | |||
+ | e、点击编译按钮,编译整个工程,待出现“creating hex file from ".\OBJ\TEST_OLED"...”,则说明编译成功,如下图所示: | ||
+ | |||
+ | [[文件:MC096-021.jpg|750px]] | ||
+ | |||
+ | f、然后打开STC-ISP软件进行下载,相关设置如下图所示: | ||
+ | |||
+ | [[文件:MC096-022.jpg|750px]] | ||
+ | |||
+ | g、然后选择编译好的hex文件进行烧录,烧录文件在“C51_OLED_Demo_STC12C5A60S2_IIC_V1.0\OBJ”目录下,如下图所示: | ||
+ | |||
+ | [[文件:MC096-023.jpg|750px]] | ||
+ | |||
+ | h、点击下载后,需要将单片机重新上电,待出现“操作成功”,则表示烧录成功,操作如下图所示: | ||
+ | |||
+ | [[文件:MC096-024.jpg|750px]] | ||
+ | |||
+ | i、OLED模块循环显示4张BMP单色图片则表示测试程序运行成功,操作成功。 | ||
+ | |||
+ | |||
+ | '''STM32平台使用说明''' | ||
+ | 1、接线说明 | ||
+ | {| class="wikitable" border="1" style="width: 500px; background-color: white;" | ||
+ | !模块上管脚 | ||
+ | ! align="center" |STM32单片机上管脚 | ||
+ | |- | ||
+ | | align="center" |VCC | ||
+ | | align="center" |5V | ||
+ | |- | ||
+ | | align="center" |GND | ||
+ | | align="center" |GND | ||
+ | |- | ||
+ | | align="center" |SCL | ||
+ | | align="center" |PB13 | ||
+ | |- | ||
+ | | align="center" |SDA | ||
+ | | align="center" |PB14 | ||
+ | |} | ||
+ | |||
+ | 2、操作说明 | ||
+ | a、将OLED模块按照接线说明连接STM32单片机,然后上电; | ||
+ | |||
+ | b、下载资料包(具体见驱动下载栏),解压后打开“3-STM32测试程序”文件夹,如下图所示: | ||
+ | |||
+ | [[文件:MC096-025.jpg|750px]] | ||
+ | |||
+ | c、里面有两种STM32单片机的测试程序,随便选择一种,例如选择STM32F103RCT6单片机测试程序(相关说明见测试程序说明文档)。 | ||
+ | |||
+ | d、打开“STM32_OLED_Demo_STM32F103RCT6_IIC_V1.0\USER”文件夹,找到“OLED.uvproj”文件,双击打开测试程序工程 | ||
+ | |||
+ | e、点击编译按钮,编译整个工程,待出现“FromELF: creating hex file..."..\OBJ\TEST_OLED.axf"”,则说明编译成功,如下图所示: | ||
+ | |||
+ | [[文件:MC096-026.jpg|750px]] | ||
+ | |||
+ | f、接上JTAG,点击下载按钮,待出现“Programming Done. Verify OK.”,则表示下载成功,如下图所示: | ||
+ | |||
+ | [[文件:MC096-027.jpg|750px]] | ||
+ | |||
+ | g、OLED模块循环显示4张BMP单色图片则表示测试程序运行成功,操作成功。 | ||
==<font color="blue">Driver download</font> == | ==<font color="blue">Driver download</font> == |
Revision as of 20:43, 13 June 2018
Contents
Product picture
Product description
- High resolution: 128x64 (have the same resolution as 12864, high PPI)
- Large viewing angle: greater than 160° (a screen with the largest viewing angle in the monitor)
- Ultra-low power consumption: it's 0.06w in normal condition(far less than TFT display)
- Wide voltage supply (3V~5V), 3.3V and 5V level logic compatible, no level shifter IC
- IIC interface and only requires 2 IOs to light up easily
- The range of working temperature is industrial (-20°C~70°C)
- Military-grade process standards, long-term work steadily
- Provide rich multi-platform routines and the technology support of underlying driver
- Have three color display schemes of yellow and blue,white,blue to choose from
Product parameters
name | color category | ||
display color | white | blue | Blue and yellow |
SKU | MC096VW | MC096VB | MC096VY |
size | 0.96(inch) | ||
type | OLED | ||
OLED driver chip | SSD1306 | ||
resolution | 128*64 (Pixel) | ||
Module interface | IIC,4PIN | ||
Effective display area | 21.744x10.864(mm) | ||
Module size | 27.3x27.8(mm) | ||
Field of View | >160° | ||
Working temperature | -20℃~70℃ | ||
storage temperature | -30℃~80℃ | ||
Working voltage | 3.3V / 5V | ||
power dissipation | Max:25mA,Min: 1.5mA | ||
product weight | 15(g) |
Interface definition
PIN | label | Pin description |
1 | VCC | OLED positive pole of power(3.3V~5V) |
2 | GND | OLED GND of power |
3 | SCL | OLED clock signal of IIC bus |
4 | SDA | OLED data signal of IIC bus |
Product size
Product size drawing:0.96 inch OLED Product size drawing
Hardware description
Hardware schematic:QD electronic 0.96 inch OLED display module hardware schematic.pdf
IIC hardware adjustment instructions of device address to slave device:
As the picture shows,in the red rectangle,if the resistor is connected to 0x78,
it indicates that the IIC slave address is 0x78,if the resistor is connected to 0x7A,
it indicates that the IIC slave address is 0x7A.
Using Instructions
Arduino平台使用说明
1、接线说明
与UNO开发板连接 | 与Mega2560开发板连接 | ||
---|---|---|---|
模块上管脚 | UNO单片机上管脚 | 模块上管脚 | Mega2560单片机上管脚 |
VCC | 5V | VCC | 5V |
GND | GND | GND | GND |
SCL | A5 | SCL | 21 |
SDA | A4 | SDA | 20 |
2、操作说明
a、将OLED模块按照接线说明和Arduino开发板连接起来,然后上电。
b、下载资料包(具体见驱动下载栏),解压后打开“1-Arduino测试程序\Arduino_OLED_Demo_UNO&Mega2560_IIC_V1.0\Example”文件夹,
里面有测试程序,如下图(相关说明见测试程序说明文档)
c、选择任意一个测试程序运行测试,例如选择Example03-show_BMP测试程序
d、打开测试程序后,点击Tools->Board,选择开发板型号,然后点击Tools->Port,选择连接的com口,如下图所示:
e、开发板型号和com口都选择正确后,点击右箭头按钮,进行编译下载,如下图所示:
f、待出现Done upload,则说明编译和下载成功,如下图所示:
g、OLED模块循环显示三张BMP单色图片,则说明测试程序运行成功,操作成功
C51平台使用说明
1、接线说明
模块上管脚 | C51单片机上管脚 |
---|---|
VCC | 5V |
GND | GND |
SCL | P23 |
SDA | P24 |
2、操作说明 a、将OLED模块按照接线说明连接C51单片机,然后上电;
b、下载资料包(具体见驱动下载栏),解压后打开“2-C51测试程序”文件夹,如下图所示:
c、里面两种C51单片机的测试程序,随便选择一种,例如选择STC12C5A60S2单片机测试程序(相关说明见测试程序说明文档)。
d、打开“C51_OLED_Demo_STC12C5A60S2_IIC_V1.0”文件夹,找到“OLED.uvproj”文件,双击打开测试程序工程
e、点击编译按钮,编译整个工程,待出现“creating hex file from ".\OBJ\TEST_OLED"...”,则说明编译成功,如下图所示:
f、然后打开STC-ISP软件进行下载,相关设置如下图所示:
g、然后选择编译好的hex文件进行烧录,烧录文件在“C51_OLED_Demo_STC12C5A60S2_IIC_V1.0\OBJ”目录下,如下图所示:
h、点击下载后,需要将单片机重新上电,待出现“操作成功”,则表示烧录成功,操作如下图所示:
i、OLED模块循环显示4张BMP单色图片则表示测试程序运行成功,操作成功。
STM32平台使用说明
1、接线说明
模块上管脚 | STM32单片机上管脚 |
---|---|
VCC | 5V |
GND | GND |
SCL | PB13 |
SDA | PB14 |
2、操作说明 a、将OLED模块按照接线说明连接STM32单片机,然后上电;
b、下载资料包(具体见驱动下载栏),解压后打开“3-STM32测试程序”文件夹,如下图所示:
c、里面有两种STM32单片机的测试程序,随便选择一种,例如选择STM32F103RCT6单片机测试程序(相关说明见测试程序说明文档)。
d、打开“STM32_OLED_Demo_STM32F103RCT6_IIC_V1.0\USER”文件夹,找到“OLED.uvproj”文件,双击打开测试程序工程
e、点击编译按钮,编译整个工程,待出现“FromELF: creating hex file..."..\OBJ\TEST_OLED.axf"”,则说明编译成功,如下图所示:
f、接上JTAG,点击下载按钮,待出现“Programming Done. Verify OK.”,则表示下载成功,如下图所示:
g、OLED模块循环显示4张BMP单色图片则表示测试程序运行成功,操作成功。
Driver download
baiduyun download:0.96 inch OLED display module data of QD electronic V1.0
Common software description
the software description is in the software package and the download address as follows:
PCtoLCD2002:PCtoLCD2002