NHD-1.27-12896ASC3 Graphic Color OLED Display Module NHD1.2712896ASC3- Newhaven Display 1.27” Diagonal Size 128 x 96 Pixels Model Full Color +3.3V Power Supply Newhaven Display International, Inc. 2661 Galvin Ct. Elgin IL, 60124 Ph: 847-844-8795 Fax: 847-844-8796 www.newhavendisplay.com [email protected] [email protected] Document Revision History Revision 0 1 Date 11/19/2015 1/11/2016 Description Initial Release Functions and Features Updated Functions and Features 128 x 96 pixel resolution Built-in SSD1351 controller SPI MPU interface RoHS compliant microSD card reader (microSD card not included) Breadboard friendly Built-in logic level shifting for 3.3V ~ 5V operation [2] Changed by PB PB Mechanical Drawing 1 2 4 3 VDD 4- 5.10 0.3 2.10 0.2 3 (A.A 19.28) V.A 20.28 0.2 PCB 58 0.3 HOLES 52.60 0.2 BEZEL 28 0.2 2.70 1.21 8.78 C HOLE 39.10 0.2 6 Description Date Pin Assignmnet NHD-1.27-12896ASC3 B 5 Rev A GND CD 3Vo SDCS MISO /RES OLEDCS SCK MOSI D/C PCB 44.50 0.3 BEZEL 34.80 0.2 V.A 26.71 0.2 (A.A 25.708) P2.54*10= 25.40 4.85 8.895 (9.396) 9.55 A 3 NO. Symbol 1 MOSI 2 SCK 3 D/C 4 /RES 5 OLEDCS 6 SDCS 7 MISO 8 CD 9 3Vo 10 VDD 11 GND B C PCB 1 2.70 D D Date 11/19/15 Unit Gen. Tolerance ±0.3mm 1 2 3 4 [3] mm 5 Model: NHD-1.27-12896ASC3 6 Schematic 1 2 3 4 Rev 5 Description 6 Date XX/XX/XX Unit Gen. Tolerance ±0.3mm 1 2 3 4 [4] mm 5 Model: NHD- 6 Date Interface Description Pin No. Symbol 1 2 3 4 5 6 7 8 MOSI SCK D/C /RES OLEDCS SDCS MISO CD 9 10 11 3Vo VDD GND External Connection MPU MPU MPU MPU MPU MPU MPU MPU Power Supply Power Supply Power Supply Function Description Master Out Slave In Serial Clock signal Register Select signal. D/C=0: Command, D/C=1: Data Active LOW Reset signal OLED Active LOW Chip Select signal Micro SD Active LOW Chip Select signal Master In / Slave Out Card Detect. Connect a 10K ohm pull-up resistor between this pin and a GPIO on the MPU to detect microSD card. This pin shorts to ground when microSD card is present. 3.3V Output (No Connect) Supply Voltage for OLED and logic (3.3V~5V) Ground Jumper Communication Selection Solder Jumper Name SJ1 4-wire Serial Interface Open (default) 3-wire Serial Interface Short MPU Interface Pin Assignment Summary 4-wire SPI (default) Data/Command Interface MOSI MISO SCK MOSI MISO SCK 3-wire SPI MOSI Bus Interface MISO SCK D/C D/C Tie Low Control Signals /RES OLEDCS /RES OLEDCS SDCS SDCS CD CD /RES SDCS CD [5] OLEDCS Wiring Diagrams [6] Electrical Characteristics Item Operating Temperature Range Storage Temperature Range Symbol Top Tst Supply Voltage Supply Current Sleep Mode Current “H” Level input “L” Level input “H” Level output “L” Level output VDD IDD IDDSLEEP Vih Vil Voh Vol Condition Absolute Max Absolute Max Min. -30 -40 Typ. - Max. +70 +80 Unit ⁰C ⁰C 3.0 0.8*VDD 0 0.9*VDD 0 3.3 80 2 - 5.5 200 10 VDD 0.2*VDD VDD 0.1*VDD V mA µA V V V V Optical Characteristics Item Viewing Angle – Top Viewing Angle – Bottom Viewing Angle – Left Viewing Angle – Right Contrast Ratio Response Time (rise) Response Time (fall) Brightness Lifetime Symbol Condition Cr Tr Tf Min. 80 80 80 80 80 10,000 Typ. 2000:1 10 10 100 - Max. - Unit ⁰ ⁰ ⁰ ⁰ us us 2 cd/m Hrs 50% checkerboard 90 cd/m², Ta=25°C, 50% checkerboard Note: Lifetime at typical temperature is based on accelerated high-temperature operation. Lifetime is tested at average 50% pixels on and is rated as Hours until Half-Brightness. The Display OFF command can be used to extend the lifetime of the display. Luminance of active pixels will degrade faster than inactive pixels. Residual (burn-in) images may occur. To avoid this, every pixel should be illuminated uniformly. Controller information Built-in SSD1351 controller. Please download specification at www.newhavendisplay.com/app_notes/SSD1351.pdf [7] Table of Commands [8] [9] [10] [11] [12] [13] Timing Characteristics 4-wire SPI: [14] 3-wire SPI: [15] Example Initialization Sequence void OLED_Init_12896RGB(void) { int i,j; GPIO_ResetBits(GPIOC, RES); graphic_delay(500000); GPIO_SetBits(GPIOC, RES); graphic_delay(500000); oled_Command_12896RGB(0xFD); oled_Data_12896RGB(0x12); oled_Command_12896RGB(0xFD); oled_Data_12896RGB(0xB1); //Command lock setting //unlock //Command lock setting //unlock oled_Command_12896RGB(0xAE); oled_Command_12896RGB(0xB3); oled_Data_12896RGB(0xF1); //clock & frequency //clock=Diviser+1 frequency=fh oled_Command_12896RGB(0xCA); oled_Data_12896RGB(0x7F); //Duty //OLED _END+1 oled_Command_12896RGB(0xA2); oled_Data_12896RGB(0x00); //Display offset oled_Command_12896RGB(0xA1); oled_Data_12896RGB(0x00); //Set display start line //0x00 start line oled_Command_12896RGB(0xA0); oled_Data_12896RGB(0xA0); //Set Re-map, color depth //8-bit 262K oled_Command_12896RGB(0xB5); oled_Data_12896RGB(0x00); //set GPIO //disabled oled_Command_12896RGB(0xAB); oled_Data_12896RGB(0x01); //Function Set //8-bit interface, internal VDD regulator oled_Command_12896RGB(0xB4); oled_Data_12896RGB(0xA0); oled_Data_12896RGB(0xB5); oled_Data_12896RGB(0x55); //set VSL //external VSL oled_Command_12896RGB(0xC1); oled_Data_12896RGB(0x8a); oled_Data_12896RGB(0x51); oled_Data_12896RGB(0x8a); //Set contrast current for A,B,C //Color A //8a //Color B //51 //Color C //8a oled_Command_12896RGB(0xC7); oled_Data_12896RGB(0x0F); //Set master contrast // [16] oled_Command_12896RGB(0xB9); //use linear grayscale LUT oled_Command_12896RGB(0xB1); oled_Data_12896RGB(0x32); //Set pre & dis-charge //pre=1h, dis=1h oled_Command_12896RGB(0xBB); oled_Data_12896RGB(0x07); //Set precharge voltage of color A,B,C // oled_Command_12896RGB(0xB2); //display enhancement oled_Data_12896RGB(0xa4); oled_Data_12896RGB(0x00); oled_Data_12896RGB(0x00); oled_Command_12896RGB(0xB6); oled_Data_12896RGB(0x01); //precharge period oled_Command_12896RGB(0xBE); oled_Data_12896RGB(0x07); //Set VcomH oled_Command_12896RGB(0xA6); //Normal display oled_Command_12896RGB(0x15); oled_Data_12896RGB(0x00); // oled_Data_12896RGB(0x7F); oled_Command_12896RGB(0x75); oled_Data_12896RGB(0x00); oled_Data_12896RGB(0x5F); oled_Command_12896RGB(0x5C); //set column start and end addresses // //set row start and end addresses // // //write to RAM command for(i=0;i<128;i++) { for(j=0;j<96;j++) { oled_Data_12896RGB(0x00); oled_Data_12896RGB(0x00); oled_Data_12896RGB(0x00); } } oled_Command_12896RGB(0xAF); //Display on } int oled_12896RGB(void) { column = 0x00; byte1 = 0x00; byte2 = 0x00; oled_Command_12896RGB(0x15); oled_Data_12896RGB(column); oled_Data_12896RGB(0x7F); //set column start and end addresses // // [17] oled_Command_12896RGB(0x75); oled_Data_12896RGB(0x00); oled_Data_12896RGB(0x5F); oled_Command_12896RGB(0x5C); //set row start and end addresses // // //write to RAM command for (i=0;i<12288;i++) //for each 24-bit pixel...128*96=12288 { f_read(&File1, &red, 1, &blen); //read the red 8-bits f_read(&File1, &green, 1, &blen); //read the green 8-bits f_read(&File1, &blue, 1, &blen); //read the blue 8-bits red = red >> 2; green = green >> 2; blue = blue >> 2; oled_Data_12896RGB(red); oled_Data_12896RGB(green); oled_Data_12896RGB(blue); } /////////////////////////////////////////////////////// Example Arduino Code Please see: https://github.com/NewhavenDisplay/NHD-1.27-12896ASC3_Example [18] Quality Information Test Item Content of Test High Temperature storage Test the endurance of the display at high storage temperature. Test the endurance of the display at low storage temperature. Test the endurance of the display by applying electric stress (voltage & current) at high temperature. Test the endurance of the display by applying electric stress (voltage & current) at low temperature. Test the endurance of the display by applying electric stress (voltage & current) at high temperature with high humidity. Test the endurance of the display by applying electric stress (voltage & current) during a cycle of low and high temperatures. Test the endurance of the display by applying vibration to simulate transportation and use. Low Temperature storage High Temperature Operation Low Temperature Operation High Temperature / Humidity Operation Thermal Shock resistance Vibration test Atmospheric Pressure test Static electricity test Test Condition Test the endurance of the display by applying atmospheric pressure to simulate transportation by air. Test the endurance of the display by applying electric static discharge. 2 -40⁰C , 96hrs 1,2 +70⁰C 96hrs 2 -30⁰C , 96hrs 1,2 +60⁰C , 90% RH , 96hrs 1,2 -30⁰C,30min -> 25⁰C,5min -> 70⁰C,30min = 1 cycle 100 cycles 10-22Hz , 15mm amplitude. 22-500Hz, 1.5G 30min in each of 3 directions X,Y,Z 115mbar, 40hrs VS=800V, RS=1.5kΩ, CS=100pF One time Note 1: No condensation to be observed. Note 2: Conducted after 2 hours of storage at 25⁰C, 0%RH. Note 3: Test performed on product itself, not inside a container. Evaluation Criteria: 1: Display is fully functional during operational tests and after all tests, at room temperature. 2: No observable defects. 3: Luminance >50% of initial value. 4: Current consumption within 50% of initial value Precautions for using OLEDs/LCDs/LCMs See Precautions at www.newhavendisplay.com/specs/precautions.pdf Warranty Information and Terms & Conditions http://www.newhavendisplay.com/index.php?main_page=terms [19] Note +800⁰C , 96hrs 3 3