Difference between revisions of "Category:OLED"

From ElectroDragon
Jump to: navigation, search
(Documentation)
(Documentation)
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
<accesscontrol>CM</accesscontrol>
+
 
 
== SSD1306 and SSH1106 ==
 
== SSD1306 and SSH1106 ==
 
* IIC address select, 稳压管 = on board regulator
 
* IIC address select, 稳压管 = on board regulator
Line 10: Line 10:
 
| Display || for 1.3'' only || for 0.96'' and 1.3'' both
 
| Display || for 1.3'' only || for 0.96'' and 1.3'' both
 
|-
 
|-
| RAM || 132 x 64 || 128 x 64
+
| RAM / resolution || 132 x 64 || 128 x 64
 
|-
 
|-
| Code Start address || 0x00 || 0x02
+
| address || 0x00 || 0x02
 
|-
 
|-
 
| Alternative address for arduino || ||  0x3D or 0x3C, or run a [[IIC]] scanner in  arduino
 
| Alternative address for arduino || ||  0x3D or 0x3C, or run a [[IIC]] scanner in  arduino
Line 19: Line 19:
  
 
== Interface ==
 
== Interface ==
* IIC Interface
 
 
{| class="wikitable sortable"
 
{| class="wikitable sortable"
 
|-
 
|-
! GND !! VCC !! SCL !! SDA
+
! Pin From Left !! IIC !! SPI !! Change from SPI to IIC !! Arduino Setup
 
|-
 
|-
| GND || 3.3-5V || SCL || SDA
+
| 1 || GND || GND || || GND
|}
+
|-
* SPI interface, can be changed to IIC
+
| 2 || VCC || VCC  || || VCC
{| class="wikitable sortable"
+
|-
 +
| 3 || SCL || D0 - CLK or SCL || || D13
 +
|-
 +
| 4 || SDA || D1 - MOSI or SDA || || D11
 +
|-
 +
| 5 || X || reset || || D8
 
|-
 
|-
! GND !! VCC !! CLK or SCL !! MOSI or SDA !! RES !! DC !! CS
+
| 6 || X || data/command select || for setting IIC address || D9
 
|-
 
|-
| GND || 3.3-5V || clock || data line || reset || data/command select || chip select
+
| 7 || X || chip select || || D10
 
|}
 
|}
  
 +
* SPI interface, can be changed to IIC
 +
* To use SPI un-comment U8G2 library line in skech example
 +
U8X8_SH1106_128X64_NONAME_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8);
 +
* To use IIC, un-commen the next line
 +
U8X8_SH1106_128X64_NONAME_HW_I2C u8x8(/* reset=*/ U8X8_PIN_NONE);
  
 
== Dimension ==
 
== Dimension ==
 +
Dimension for OLED with back PCB
 
<gallery>
 
<gallery>
 
File:0.96 oled size.jpg| 0.96'' SPI OLED dimension
 
File:0.96 oled size.jpg| 0.96'' SPI OLED dimension
Line 42: Line 52:
 
File:1.3'' OLED dimension.jpg| 1.3''_OLED_dimension
 
File:1.3'' OLED dimension.jpg| 1.3''_OLED_dimension
 
File:1.3‘’_OLED_display_iic.jpg | 1.3'' OLED dimension IIC new, for SPI and IIC both
 
File:1.3‘’_OLED_display_iic.jpg | 1.3'' OLED dimension IIC new, for SPI and IIC both
 +
</gallery>
 +
Dimension for raw OLED, see more information in raw oled datatsheet below
 +
<gallery>
 +
File:091_dimension.png | 0.86 raw oled dimension
 +
File:0.91-2_dimension.png| 0.91 raw oled dimension
 
</gallery>
 
</gallery>
  
 
== Board schematic ==
 
== Board schematic ==
 +
New Schematic
 +
<gallery>
 +
File:Oled_096_iic.png | Left side for 5V system compliant, middle is reset (without IOs), address select, OLED and passive parts on right
 +
</gallery>
 
<gallery>
 
<gallery>
 
File:SH1106_IIC.jpeg| SH1106 IIC
 
File:SH1106_IIC.jpeg| SH1106 IIC
File:SS1106_SPI.jpeg| SSH1106 SPI
+
File:SS1106_SPI.jpeg| SH1106 SPI
 
File:SSD1306_IIC_description.jpeg|| SSD1306 IIC
 
File:SSD1306_IIC_description.jpeg|| SSD1306 IIC
 
File:SSD1306_SPI.jpeg| SSD1306 SPI
 
File:SSD1306_SPI.jpeg| SSD1306 SPI
 
File:Oled_ssd1306_SPI_IIC_01.jpeg | SSD1306 SPI R2, supported to change to IIC
 
File:Oled_ssd1306_SPI_IIC_01.jpeg | SSD1306 SPI R2, supported to change to IIC
 +
File:091_sch.png | 0.91 SSD1306 schematic
 
</gallery>
 
</gallery>
  
Line 57: Line 77:
 
* [[File:SH1106.pdf|SH1106 IC datasheet]]
 
* [[File:SH1106.pdf|SH1106 IC datasheet]]
 
* [[File:SSD1306.pdf|SSD1306 datasheet]]
 
* [[File:SSD1306.pdf|SSD1306 datasheet]]
Board Datasheet
+
Raw OLED datasheet
* [[File:1.3_oled_datasheet.pdf | 1.3'' OLED datasheet]]
+
* [[:File:0.91-14-SPEC_QG-2832TLBFG02_VER_A.pdf|0.91 raw OLED datasheet]]
* [[File:0.96寸OLED规格书.pdf | 096 oled datasheet]]
+
* [[:File:1.3_oled_datasheet.pdf | 1.3 raw OLED datasheet]]
Official Library
+
* [[:File:0.96寸OLED规格书.pdf | 0.96 raw oled datasheet]]
* [https://github.com/olikraus/u8glib u8glib library] works for SSD1306 or SSH1106
+
Official Arduino Library
* [https://github.com/adafruit/Adafruit_SSD1306 ADA SSD1306 library].
+
* [https://github.com/olikraus/u8glib u8glib library] works for SSD1306 or SSH1106 --> currently updated to U8G2 library, search directly in arduino to install
 +
* [https://github.com/wonho-maker/Adafruit_SH1106 Modified ADA SH1106 library]
 +
* [https://github.com/adafruit/Adafruit_SSD1306 ADA SSD1306 library], not work for SH1106
 
* [https://github.com/stanleyhuangyc/MultiLCD multiLCD library]
 
* [https://github.com/stanleyhuangyc/MultiLCD multiLCD library]
 +
 
Other Library
 
Other Library
 
* [https://github.com/Edragon/SSH1106 1.3 OLED SSH1106 basic demo arduino library]
 
* [https://github.com/Edragon/SSH1106 1.3 OLED SSH1106 basic demo arduino library]

Latest revision as of 07:39, 8 December 2017

SSD1306 and SSH1106

  • IIC address select, 稳压管 = on board regulator
IIC address.jpg
  • IC compare
Type SSH1106 SSD1306
Display for 1.3 only for 0.96 and 1.3 both
RAM / resolution 132 x 64 128 x 64
address 0x00 0x02
Alternative address for arduino 0x3D or 0x3C, or run a IIC scanner in arduino


Interface

Pin From Left IIC SPI Change from SPI to IIC Arduino Setup
1 GND GND GND
2 VCC VCC VCC
3 SCL D0 - CLK or SCL D13
4 SDA D1 - MOSI or SDA D11
5 X reset D8
6 X data/command select for setting IIC address D9
7 X chip select D10
  • SPI interface, can be changed to IIC
  • To use SPI un-comment U8G2 library line in skech example

U8X8_SH1106_128X64_NONAME_4W_HW_SPI u8x8(/* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8);

  • To use IIC, un-commen the next line

U8X8_SH1106_128X64_NONAME_HW_I2C u8x8(/* reset=*/ U8X8_PIN_NONE);

Dimension

Dimension for OLED with back PCB

Dimension for raw OLED, see more information in raw oled datatsheet below

Board schematic

New Schematic

Documentation

IC Datasheet

Raw OLED datasheet

Official Arduino Library

Other Library

Post

Tools

This category currently contains no pages or media.