Cutting the cord EPG – Rethinking the display size (part 5)

After my experiment getting the SSD1306 1.3″ OLED working with the ESP8266, I started to think about the size of the display and how on such a small display I am going to be able to display and see the TV program.

I started looking around for a bigger display and located the following on buy-display.

This display is nice (but a little expensive) because it has all the driver circuitry on the board and breaks out the 4 line SPI connection.  Below is the documentation showing the SPI connections needed.

SSD1322 Connection to MCU
SSD1322 Connection to MCU

So now I have to write an SSD1322 driver.  I took a copy of the Adafruit SSD1306 driver and created a version specific to the ESP8266 and SSD1322.  I reworked the memory mapping etc.  The included sample program works and if my math calculations are correct I was getting 110 FPS.  The driver code can be downloaded from here.  It is a work in progress and likely to change as I continue to work on the device.

NOTE: When I received the display it is not configured for 4 wire SPI.  If you look carefully at OLED schematic above you can see a setting of BS1=0 and BS0=0.  These are actually 0 ohm resistors on the back of the circuit board that need to un-soldered and re-soldered.

OLED NOT configured for SPI. BS0=0, BS1=1
OLED NOT configured for SPI. BS0=0, BS1=1
OLED configured for SPI. BS0=0, BS1=0
OLED configured for SPI. BS0=0, BS1=0

Below is the wiring from the ESP8266->OLED

ESP8266 - ER-OLED032-1

Below is a video showing the 256×64 OLED display running through an Adafruit graphic test sketch.


7 thoughts on “Cutting the cord EPG – Rethinking the display size (part 5)

  1. Hi,
    i tried using your driver and hooked up the ER-OLEDM032-1W to my ESP-12Q. Unfortunately I get not response from the OLED.
    I hooked up CS, DC and reset as specified in the example sketch. SCLK (PIN 4 on the OLED) is connected to GPIO14 on my ESP and SDIN (PIN 5 on the OLED) is connected to GPIO12 on my ESP. Is this correct? (I even tried adding the following to void setup():
    pinMode(12, FUNCTION_2); //MISO
    pinMode(14, FUNCTION_2); //SCLK
    SPI.begin(); // Start SPI)
    Can you maybe provide your complete pin-out?

    1. Hi. I should have put together the wiring diagram along ago…so your comment was the perfect “kick up the a**” to get it done. I have updated the post. Please take a look. Also do not forget that the OLED may not have been setup for SPI. Please make sure that you look at the part about moving the resistors. I had the same problem that I connected the wires and did not work…got very frustrated, then looked at the datasheet again and noticed the jumpers.
      Hope this helps.

  2. Quick follow up question. Does your OLED also produce a high frequency noise when filled with drawings (e.g. white surface right before the stars)?

      1. My first thought was that it may be voltage related, since I’m driving it with 3.3V and that’s close to the minimum input voltage. Other than that I really got no idea. But I’m definitely gonna try driving it with 5V. We’ll see how this plays out 🙂

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s