User Tools

Site Tools


products:oled12864:index.html

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
products:oled12864:index.html [2012/01/23 17:50]
ladyada [Power requirements]
products:oled12864:index.html [2016/01/28 18:05] (current)
Line 42: Line 42:
 ==== Wiring ​ ==== ==== Wiring ​ ====
  
 +==== 128x32 SPI OLED ====
  
-The OLED runs at 3.3V so you'll need to use a level shifting ​chip to use with a 5V microcontrollerThe following will assume that is the case. If you're running ​3.3V microcontroller system, you can skip the level shifter.+The 128x32 SPI OLED is very easy to get up and running because it has built in level shifting. 
 +First up, take piece of 0.1" header 8 pins long 
  
 +[[http://​www.ladyada.net/​images/​oled12864/​spi12832pins.jpg|{{ ​ http://​www.ladyada.net/​images/​oled12864/​spi12832pins_t.jpg?​nolink&​500 ​ |}}]]
  
 +Plug the header long end down into a breadboard and place the OLED on top. Solder the short pins into the OLED PCB
 +
 +[[http://​www.ladyada.net/​images/​oled12864/​spi12832solder.jpg|{{ ​ http://​www.ladyada.net/​images/​oled12864/​spi12832solder_t.jpg?​nolink&​500 ​ |}}]]
 +
 +Finally, connect the pins to your Arduino - **GND** goes to ground, **Vin** goes to 5V, **DATA** to digital **9**, **CLK** to digital **10**, **D/C** to digital **11**, **RST** to digital **13** and finally **CS** to digital **12** ​
 +
 +[[http://​www.ladyada.net/​images/​oled12864/​spi12832wiring.jpg|{{ ​ http://​www.ladyada.net/​images/​oled12864/​spi12832wiring_t.jpg?​nolink&​500 ​ |}}]]
 +
 +<class notewarning>​
 +If you're using the 128x32 OLED, be sure to uncomment the "#​define SSD1306_128_32"​ in the top of Adafruit_SSD1306.h to change the buffer size
 +</​class>​
 +
 +==== 128x64 OLED ====
 +
 +The 128x64 OLED runs at 3.3V and does not have a built in level shifter so you'll need to use a level shifting chip to use with a 5V microcontroller. The following will assume that is the case. If you're running a 3.3V microcontroller system, you can skip the level shifter.
  
 We'll assume you want to use this in a breadboard, take a piece of 0.1" header 10 pins long We'll assume you want to use this in a breadboard, take a piece of 0.1" header 10 pins long
Line 79: Line 97:
 [[http://​www.ladyada.net/​images/​oled12864/​wired.jpg|{{ ​ http://​www.ladyada.net/​images/​oled12864/​wired_t.jpg?​nolink&​500x367 ​ |}}]] [[http://​www.ladyada.net/​images/​oled12864/​wired.jpg|{{ ​ http://​www.ladyada.net/​images/​oled12864/​wired_t.jpg?​nolink&​500x367 ​ |}}]]
  
-Download and install our Arduino ​library. If you're using another systemits pretty simple to adapt our code, the interface we use is basic bit-twiddling SPI.+==== Arduino Library & Examples ==== 
 + 
 +Download and install our Arduino ​libraries – the links are at the bottom of this page. If you're using a different microcontrollerthe code is pretty simple to adapt, the interface we use is basic bit-twiddling SPI.
  
 Load the example sketch to demonstrate the capabilities of the library and display. Load the example sketch to demonstrate the capabilities of the library and display.
Line 115: Line 135:
  
  
-**[[https://​github.com/​adafruit/​SSD1306|You can download our SSD1306 OLED display Arduino library from github]]** which comes with example code. The library can print text, bitmaps, pixels, rectangles, circles and lines. It uses 1K of RAM since it needs to buffer the entire display but its very fast! The code is simple to adapt to any other microcontroller.+**[[https://​github.com/​adafruit/​Adafruit_SSD1306|You can download our SSD1306 OLED display Arduino library from github]]** which comes with example code. The library can print text, bitmaps, pixels, rectangles, circles and lines. It uses 1K of RAM since it needs to buffer the entire display but its very fast! The code is simple to adapt to any other microcontroller. You'll also have to install the  [[https://​github.com/​adafruit/​Adafruit-GFX-Library|Adafruit GFX graphics core library at this github repo]] and install it after you've gotten the OLED driver library.
  
 **[[http://​www.adafruit.com/​datasheets/​UG-2864HSWEG01.pdf|UG-2864HSWEG01]] Datasheet** **[[http://​www.adafruit.com/​datasheets/​UG-2864HSWEG01.pdf|UG-2864HSWEG01]] Datasheet**
Line 122: Line 142:
  
 **[[http://​www.adafruit.com/​datasheets/​SSD1306.pdf|SSD1306]] Datasheet** **[[http://​www.adafruit.com/​datasheets/​SSD1306.pdf|SSD1306]] Datasheet**
 +
 +**[[https://​github.com/​adafruit/​Adafruit-128x32-SPI-OLED-breakout-board-PCB|GitHub repo for 128x32 PCB]]**
 +
 +**[[https://​github.com/​adafruit/​Adafruit-128x64-Monochrome-OLED-PCB|GitHub repo for 128x64 PCB]]**
/home/ladyada/public_html/wiki/data/attic/products/oled12864/index.html.1327341047.txt.gz · Last modified: 2016/01/28 18:05 (external edit)