[SOLVED] How do I wire this SPI OLED display?

Hello there!

I just received my package with some parts I ordered and I'm having trouble
connecting this 0.96 inch SPI OLED display to my Arduino UNO.

It has 6 pins:

  • GND
  • VCC
  • SCI
  • SDA
  • RST
  • D/C

Picutre of the display:

I don't know how to connect the SCI, SDA and D/C pins.

Thank you!

A suitable library will control these lines. Unfortunately this display does not have a chip select line. Sometimes there is a solder pad on the back side for the CS (chip select) line. Is there any prefered library you want to use?

Oliver

Actually, I don't mind which library I'll have to use. I just want it to work. :slight_smile:

That's how the back of the display looks like:

It looks like, that the display has no CS line. There was a thread in this forum with a similar (same?) display. If i remember correctly, it was not possible to make this display work without the CS input available.

Oliver

Wow. There has to be a way. I pruchased this display from Banggood. There are a lot of comments from people that made the display work without any problems... I'll try and look around the forum just in case...

Okay, I'm pretty sure this is the thread you were talking about. He somehow made it work, couldn't really understand what he did. Here is his reply on how he made it work. Could you explain this in detail for me?

Thank you!

From the Banggood web site:

"Note: If you decide to buy OLED display, you must confirm that you can make it work by yourself, we'll haven't any technology support. Thanks for your understanding and support."

Nice and cheap at under $5. I spent four times that for my display but mine came with documentation and took minutes to plug in and start using.

Yours probably has CS tied low so it's always selected. That makes it less flexible if you have multiple SPI devices. And most libraries probably expect there to be a CS pin so you might have to waste one of your processor's output pins (or edit the library).

Look here, someone describes how they hooked it up using the Adafruit Library and also u8glib. They said that u8glib was a little harder to figure out.

I tried basically everything that they said in the comments but I still couldn't get it to work.

David1337:
Okay, I'm pretty sure this is the thread you were talking about. He somehow made it work, couldn't really understand what he did.

The display discussed in this thread has the CS line as a solder pad on the back side available. Your display has the C/D line on the front and on the back side.

Oliver

Ok, i found the thread: OLED Display question - Displays - Arduino Forum

Oliver

One person on Banggood had success with

U8GLIB_SSD1306_128X64 u8g(13, 11, 10, 9, 8);

and keeping pin 10 of the Arduino open.
Did you tried this?

Connect
pin 13 with SCI
pin 11 with SDA
Pin 9 with D/C
Pin 8 with RST

Of course you could also use:

U8GLIB_SSD1306_128X64 u8g(13, 11, U8G_PIN_NONE, 9, 8);

Oliver

I tried that... The only thing that is can still do is solder the pins on the display to the external pins I received with the display. But I seriously doubt that this is the problem since the connections seem fine...

Maybe you can sent a picture of your wiring.

Oliver

Here is how I wired everything: (U8GLIB_SSD1306_128X64 u8g( 13, 11, 10, 9, 8 );)

Right now, I'm soldering the pins and the external pins I got with the display... Just in case
there is really a bad connection between them.

Looks correct (although it would have been better to have display and Uno on the same picture)

Oliver

Holy crap! I can't believe it! All I needed to do is solder it, and now it works! I spent nearly 5 hours trying to figure it out, haha. :slight_smile:

Note: Yes, I know... The soldering looks terrible, I'll improve it.

Congratulation!

Oliver

Thanks for your help! :slight_smile: