Adafruit 1.27" and 1.5" Color OLED Breakout Board

Similar documents
0.96" mini Color OLED

Adafruit Mini TFT " 160x80

Monochrome OLED Breakouts

1.8" TFT Display Breakout and Shield

Adafruit APDS9960 breakout

Adafruit DRV2605 Haptic Controller Breakout

Adafruit MCP9808 Precision I2C Temperature Sensor Guide

Adafruit Si7021 Temperature + Humidity Sensor

Adafruit 2.4" TFT FeatherWing

Adafruit eink Display Breakouts

Adafruit I2C FRAM Breakout

Adafruit 3.5" 480x320 TFT FeatherWing

Adafruit Si5351 Clock Generator Breakout

Adafruit 3.5" 480x320 TFT FeatherWing

Adafruit VL53L0X Time of Flight Micro-LIDAR Distance Sensor Breakout

Adafruit MMA8451 Accelerometer Breakout

Adafruit 8x16 LED Matrix FeatherWing

Adafruit Mini TFT with Joystick Featherwing

Adafruit Capacitive Touch Sensor Breakouts

i2c/spi LCD Backpack Created by lady ada Last updated on :11:04 PM UTC

Adafruit ATWINC1500 WiFi Breakout

Adafruit DRV2605 Haptic Controller Breakout

Adafruit AM2320 Sensor

Adafruit AS channel Visible Light Sensor

Adafruit CCS811 Air Quality Sensor

Adafruit MMA8451 Accelerometer Breakout

Adafruit SGP30 TVOC/eCO2 Gas Sensor

Adafruit AMG8833 8x8 Thermal Camera Sensor

IS31FL x9 Charlieplexed PWM LED Driver

MCP Bit DAC Tutorial

Adafruit MPRLS Ported Pressure Sensor Breakout

Joy Featherwing. Created by Dean Miller. Last updated on :03:07 PM UTC

Adafruit Color Sensors

Adafruit 8x16 LED Matrix FeatherWing

MCP Bit DAC Tutorial

Adafruit 7-Segment LED FeatherWings

Adafruit WINC1500 WiFi Shield for Arduino

Adafruit MMA8451 Accelerometer Breakout

RGB LCD Shield. Created by lady ada. Last updated on :48:40 PM UTC

Adafruit PowerBoost 500 Shield

Adafruit ATWINC1500 WiFi Breakout

Adafruit MAX31865 RTD PT100 or PT1000 Amplifier

Introducing Adafruit Trellis

Adafruit DS3231 Precision RTC Breakout

Adafruit LIS3DH Triple-Axis Accelerometer Breakout

Adafruit ATWINC1500 WiFi Breakout

14-Segment Alpha-numeric LED FeatherWing

Adafruit PCF8523 Real Time Clock

NeoMatrix 8x8 Word Clock

Adafruit TPL5111 Reset Enable Timer Breakout

Adafruit TPL5110 Power Timer Breakout

MLX90393 Wide-Range 3-Axis Magnetometer

Adafruit 9-DOF IMU Breakout

Adafruit LED Backpacks

Adafruit Pi Cobbler Kit

TSL2561 Luminosity Sensor

Feather Weather Lamp. Created by Ruiz Brothers. Last updated on :54:26 PM UTC

Flora Wearable GPS. Created by Becky Stern. Last updated on :32:36 PM UTC

Adafruit LED Backpacks

Adafruit 10-DOF IMU Breakout

Adafruit HUZZAH32 - ESP32 Feather

Neon LED Signs. Created by John Park. Last updated on :11:09 PM UTC

Trinket-Powered Conference Room Occupancy Display

Toy Car Speed Timer. Created by Kirby Griese. Last updated on :13:49 PM UTC

FeatherWing Proto, Doubler and Tripler

FeatherWing Proto and Doubler

Sino:bit with Arduino

PyPortal View Master Created by Ruiz Brothers. Last updated on :51:28 AM UTC

Getting Started with FLORA

Adafruit LED Sequins. Created by Becky Stern. Last updated on :02:00 AM UTC

Trellis 3D Printed Enclosure

Micro:bit with Arduino

Naughty or Nice Machine

FLORA TV-B-Gone. Created by Becky Stern. Last updated on :32:57 PM UTC

Adafruit GPIO Expander Bonnet for Raspberry Pi Created by Kattni Rembor. Last updated on :12:47 PM UTC

Prophet 600 GliGli mod

Adafruit GPS Hat in Windows IoT Core

Fiddy - the FTDI Clip

Adafruit TSL2591 High Dynamic Range Digital Light Sensor

Bike Wheel POV Display

NeoPixel Bike Light. Created by Ruiz Brothers. Last updated on :43:46 PM UTC

Introducing Circuit Playground

Introducing Circuit Playground

MiniPOV4 - DIY Full-Color Persistence of Vision & Light-Painting Kit

Guardian Shield+ Zelda Breath of the Wild

Arduino Lesson 6. Digital Inputs

Fiddy - the FTDI Clip

Adafruit Stepper + DC Motor FeatherWing

Adafruit Feather 32u4 Basic Proto

Mystical LED Halloween Hood

Jewel Hair Stick. Created by Leslie Birch. Last updated on :47:17 PM UTC

3D Printed Camera LED Ring

DC & USB Boarduino Kits

Adafruit Flora Bluefruit LE

Sewable NeoPixels. Created by Becky Stern. Last updated on :50:14 PM EDT

FLORA and GEMMA ICSP. Created by Becky Stern. Last updated on :42:16 PM UTC

Getting Started with FLORA

Adafruit Prototyping Pi Plate. Created by Ladyada

FLORA Pixel Brooch. Created by Becky Stern. Last updated on :19:07 PM EST

Adafruit IO Basics: ESP Arduino

Transcription:

Adafruit 1.27" and 1.5" Color OLED Breakout Board Created by Bill Earl Last updated on 2017-11-17 05:54:22 PM UTC

Guide Contents Guide Contents Overview Board Technical Details Assembly Prepare the header strip Position the display And Solder! Remove the protective film Wiring and Graphics Test Hint: Installing the Arduino software Drawing Bitmaps Wiring for the Bitmap Example Hint: Bitmap Example Sketch Copy the bitmap file Insert the card Load the bitmap example sketch Downloads and Links Data Sheets: Schematic 2 3 4 5 6 7 7 8 9 9 10 12 12 13 14 15 15 16 17 17 17 Adafruit Industries https://learn.adafruit.com/adafruit-1-5-color-oled-breakout-board Page 2 of 17

Overview We love our black and white monochrome displays but we also like to dabble with some color now and then. Our big 1.5" color OLED displays are perfect when you need a small display with vivid, high-contrast 16-bit color. The visible portion of the OLED measures 1.5" diagonal and contains 128x128 RGB pixels, each one made of red, green and blue OLEDs. Each pixel can be set with 16-bits of resolution for a large range of colors. Because the display uses OLEDs, there is no backlight, and the contrast is very high (black is really black). We picked this display for its excellent color, this is the nicest mini OLED we could find! This OLED uses the SSD1351 driver chip, which manages the display. You can talk to the driver chip using 4-wire writeonly SPI (clock, data, chip select, data/command and an optional reset pin). Included on the fully assembled breakout is the OLED display and a small boost converter (required for providing 12V to the OLED) and a microsd card holder. This design includes built-in logic level shifting so you can use it with 3-5VDC power and logic levels. Our example code shows how to read a bitmap from the usd card and display it all via SPI. Adafruit Industries https://learn.adafruit.com/adafruit-1-5-color-oled-breakout-board Page 3 of 17

Board Technical Details 1.5" diagonal OLED, 16-bit color SPI interface 3.3-5V logic and power Micro-SD card holder Dimensions: 43.17mm / 1.7" x 42mm / 1.65" x 5.42mm / 0.2" Adafruit Industries https://learn.adafruit.com/adafruit-1-5-color-oled-breakout-board Page 4 of 17

Assembly The breakout board comes fully assembled and tested. We include an optional strip of header pins to make it easier to use this display in a breadboard. The header can be installed in just a few minutes with your soldering iron: Adafruit Industries https://learn.adafruit.com/adafruit-1-5-color-oled-breakout-board Page 5 of 17

Prepare the header strip Cut the header to size and insert (long pins down) into a breadboard to stabilize for soldering. Adafruit Industries https://learn.adafruit.com/adafruit-1-5-color-oled-breakout-board Page 6 of 17

Position the display Place the display breakout on the header so that the short pins protrude through the holes. And Solder! Solder all pins to assure a good electrical connection. Adafruit Industries https://learn.adafruit.com/adafruit-1-5-color-oled-breakout-board Page 7 of 17

Remove the protective film Gently pull up on the tab to remove the film. Adafruit Industries https://learn.adafruit.com/adafruit-1-5-color-oled-breakout-board Page 8 of 17

Wiring and Graphics Test The pinout ordering is the same for both the 1.27" and 1.5" version of the OLED! oleddemo.fzz Fritzing File https://adafru.it/sva The library supports flexible wiring to minimize pin conflicts with other shields and breakouts. For the initial test, we'll use the same wiring as the "test" example from the library: GND -> GND (G) 5v -> VIN (+) #2 -> SCLK (CL) #3 -> MOSI (SI) #4 -> DC #5 -> OLEDCS (OC) #6 -> RST (R) Hint: If you are confused by the abbreviations on the front of the board, the full signal names are printed on the back! Adafruit Industries https://learn.adafruit.com/adafruit-1-5-color-oled-breakout-board Page 9 of 17

Installing the Arduino software Now we can run the test software on the Arduino. We'll need to download the library first and install it Visit the Adafruit SSD1351 library github repository page and click the Download Zip. Or just click the button below: Adafruit Industries https://learn.adafruit.com/adafruit-1-5-color-oled-breakout-board Page 10 of 17

Download Adafruit SSD1351 Library https://adafru.it/cba Copy the folder inside the zip file to the Libraries folder inside your Arduino Sketchbook folder and re-name it to Adafruit_SSD1131. For more details on how to install Arduino libraries, check out our detailed tutorial! http://learn.adafruit.com/adafruit-all-about-arduino-libraries-install-use You'll also have to install the Adafruit GFX graphics core library at this github repo. Rename it to Adafruit_GFX and install it the same way as the OLED library. Dowload Adafruit GFX Library https://adafru.it/cbb After you restart, you should be able to select File Examples Adafruit_SSD1351 test - this is the example sketch that just tests the display by drawing text and shapes. Upload the sketch and you should see the following: The test sketch demonstrates all the basic drawing functions of the Adafruit GFX Library. Read through the code to see how to draw text, circles, lines, etc. For a detailed tutorial on the Adafruit GFX library, including all the functions available please visit the GFX tutorial page Adafruit Industries https://learn.adafruit.com/adafruit-1-5-color-oled-breakout-board Page 11 of 17

Drawing Bitmaps Wiring for the Bitmap Example Drawing bitmaps from the on-board micro SD card requires a few more connections to communicate with the SD card. The library allows you to use any pins. The Arduino connections listed below match the code in the "bmp" example from the library: GND -> GND (G) 5v -> VIN (+) #4 -> SDCS (SC) #8 -> DC #9 -> RST (R) #10 -> OLEDCS (OC) #11 -> MOSI (SI) #12 -> MISO (SO) #13 -> SCLK (CL Note that the Bitmap example code uses hardware SPI wiring for maximum speed. You can still use software SPI, but make sure that the pin definitions match your wiring and that you modify the example to select the Software SPI option (#1) in the code. The SPI pins shown are for Atmega-328 processors. To use this wiring on other processors, software SPI must be used. Adafruit Industries https://learn.adafruit.com/adafruit-1-5-color-oled-breakout-board Page 12 of 17

Hint: If you are confused by the abbreviations on the front of the board, the full signal names are printed on the back! Adafruit Industries https://learn.adafruit.com/adafruit-1-5-color-oled-breakout-board Page 13 of 17

Bitmap Example Sketch To display bitmaps from the on-board micro SD slot, you will need a micro SD card. Adafruit Industries https://learn.adafruit.com/adafruit-1-5-color-oled-breakout-board Page 14 of 17

Copy the bitmap file Copy the file "lily128.bmp" from the Adafruit_SSD1351_OLED\examples\bmp folder to the root directory of your micro-sd card. Insert the card Insert the micro SD card into the slot on the back of the SSD1351 breakout board. Adafruit Industries https://learn.adafruit.com/adafruit-1-5-color-oled-breakout-board Page 15 of 17

Load the bitmap example sketch Select "Examples->Adafruit_SSD1351_OLED->bmp" and upload it to your Arduino. When the Arduino restarts, you should see the flower as below! Adafruit Industries https://learn.adafruit.com/adafruit-1-5-color-oled-breakout-board Page 16 of 17

Downloads and Links Data Sheets: SSD151 Display Controller Datasheet 1.5" OLED Display Module datasheet Fritzing objects in the Adafruit Fritzing library EagleCAD PCB for 1.27" Color OLED EagleCAD PCB for the 1.5" Color OLED Schematic Click to enlarge For the level shifter we use the CD74HC4050 which has a typical propagation delay of ~10ns Adafruit Industries Last Updated: 2017-11-17 05:54:21 PM UTC Page 17 of 17