I2C Serial 128x64 OLED LCD LED Display Module issue

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
impeham
 
Posts: 1
Joined: Fri Aug 28, 2015 10:12 am

I2C Serial 128x64 OLED LCD LED Display Module issue

Post by impeham »

i've followed instructions from this video:
https://www.youtube.com/watch?v=Iq9HHct6b9o

downloaded:
SSD library from https://github.com/adafruit/Adafruit_SSD1306
GFX library from https://github.com/adafruit/Adafruit-GFX-Library

i'm using arduino nano with the following connections:
VC -> 3.3v
GND -> GND
SCL -> pin A5
SDA -> pin A4

uploaded the sketch SSD1306_128x64_i2c and changed:

display.begin(SSD1306_SWITCHCAPVCC, 0x3D); -> display.begin(SSD1306_SWITCHCAPVCC, 0x3C);

0x3C is the address that was found by the i2c_scan sketch.

the screen works, but the graphics are wrong (i tried 2 SSD1306 modules and had the same result) - the whole screen is like static blue and black snow and there is a top thin line moving from right to left - see attached pic.

Serial output:
x: 39 y: 0 dy: 5
x: 89 y: 0 dy: 4
x: 2 y: 0 dy: 3
x: 88 y: 0 dy: 4
x: 67 y: 0 dy: 5
x: 24 y: 0 dy: 1
x: 12 y: 0 dy: 3
x: 51 y: 0 dy: 4
x: 23 y: 0 dy: 5
x: 24 y: 0 dy: 3
Attachments
screen.JPG
screen.JPG (99.49 KiB) Viewed 1475 times

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: I2C Serial 128x64 OLED LCD LED Display Module issue

Post by adafruit_support_rick »

That's not an adafruit module. You should contact the vendor for support.

User avatar
ericearwig
 
Posts: 5
Joined: Thu Apr 21, 2011 12:58 am

Re: I2C Serial 128x64 OLED LCD LED Display Module issue

Post by ericearwig »

That's exactly the problem I am having with the Adafruit SSD1306 found here: http://www.adafruit.com/products/326

This is connected to an Arduino Micro
Data => Pin 2
CLK => Pin 3
RST => Pin 4
VIN => 5v
Gnd => Gnd

Downloaded example Arduino code (making sure the pinouts agree) then this is what I get.

It DOES react to the invertDisplay() call and there's a spot where the screen scrolls vertically. Other than that, it's just semi-random dots (it appears to be the same pattern after each run attempt)

I have a second unit here, but I'm reluctant to power it up if it's something I did to do the damage.

Thanks - Eric

Image

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: I2C Serial 128x64 OLED LCD LED Display Module issue

Post by adafruit_support_rick »

OK, so you're using I2C. Did you solder closed the I2C jumpers on the back of the module?
Image

User avatar
ericearwig
 
Posts: 5
Joined: Thu Apr 21, 2011 12:58 am

Re: I2C Serial 128x64 OLED LCD LED Display Module issue

Post by ericearwig »

Thanks for looking at this!

Yes, I did do that - should have said so in my original post.

-Eric

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: I2C Serial 128x64 OLED LCD LED Display Module issue

Post by adafruit_support_rick »

I can't quite see, but you're powering it from 5V, right?

Everything looks OK - I can't see anything you did wrong. Let's try replacing it. Please email [email protected] with a link to this thread for a replacement OLED

User avatar
ericearwig
 
Posts: 5
Joined: Thu Apr 21, 2011 12:58 am

Re: I2C Serial 128x64 OLED LCD LED Display Module issue

Post by ericearwig »

I've powered it from either the 5v pin on the Arduino Micro, or a separate 5v regulator - it behaves the same way on either powers source.

I ordered two of the displays, so I'll go ahead and try the second one to see if it works. if so, I'll take you up on the replacement.

Thank you!

-Eric

User avatar
ericearwig
 
Posts: 5
Joined: Thu Apr 21, 2011 12:58 am

Re: I2C Serial 128x64 OLED LCD LED Display Module issue

Post by ericearwig »

OK.

Tried them both out on an UNO and both displays work just fine.

So, there's a difference in the setup with an Arduino Micro that I'm still working out...


-Eric

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: I2C Serial 128x64 OLED LCD LED Display Module issue

Post by adafruit_support_rick »

From what I can see, I think you have SDA and SCL hooked up correctly, but check it anyway. On the Micro, SDA is 2 and SCL is 3

You might also try hooking up RST

User avatar
ericearwig
 
Posts: 5
Joined: Thu Apr 21, 2011 12:58 am

Re: I2C Serial 128x64 OLED LCD LED Display Module issue

Post by ericearwig »

Apparently I wasn't channeling the force correctly. Now that I have re-connected the Micro it all works. It's wired the same way as it was (have the pics to prove it) but this time it works.

Maybe the bread board wires weren't pressed in deeply enough? Who knows.

Anyway, I appreciate your time on this - thank you very much.

Off I go in search of the next bug...

-Eric

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: I2C Serial 128x64 OLED LCD LED Display Module issue

Post by adafruit_support_rick »

Yeah - Breadboards and jumpers are not always reliable, I'm afraid...

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”