My OLED Display Is Not Working

General project help for Adafruit customers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
Sm11y456
 
Posts: 10
Joined: Fri Nov 18, 2022 5:23 pm

My OLED Display Is Not Working

Post by Sm11y456 »

I am using a "Adafruit Metro Mini 328 V2 - Arduino-Compatible - 5V 16MHz - STEMMA QT / Qwiic" and connecting it to a "Adafruit Monochrome 1.12" 128x128 OLED Graphic Display" Using a STEMMA QT / Qwiic cord. on the other end is a "BMP280" Sensor that appears to be on, however the OLED display is not displaying anything. I currently have the stock code for the OLED and all the libraries installed to the Metro Mini. Any ideas why the display is passing power but not working?
BTW this is my first time working with a metro mini.
20221118_162858.jpg
20221118_162858.jpg (24.62 KiB) Viewed 322 times

User avatar
adafruit_support_carter
 
Posts: 29168
Joined: Tue Nov 29, 2016 2:45 pm

Re: My OLED Display Is Not Working

Post by adafruit_support_carter »

What addresses show up in an I2C scan?
https://learn.adafruit.com/scanning-i2c ... ng-testbed

User avatar
Sm11y456
 
Posts: 10
Joined: Fri Nov 18, 2022 5:23 pm

Re: My OLED Display Is Not Working

Post by Sm11y456 »

This is what happens after clicking the rest button 4 times
image_2022-11-18_212757173.png
image_2022-11-18_212757173.png (6.95 KiB) Viewed 304 times

User avatar
adafruit_support_carter
 
Posts: 29168
Joined: Tue Nov 29, 2016 2:45 pm

Re: My OLED Display Is Not Working

Post by adafruit_support_carter »

Make sure the Serial Monitor baud rate is set to 115200 to match the sketch.

User avatar
Sm11y456
 
Posts: 10
Joined: Fri Nov 18, 2022 5:23 pm

Re: My OLED Display Is Not Working

Post by Sm11y456 »

This is what shows now
image_2022-11-19_120132363.png
image_2022-11-19_120132363.png (7.45 KiB) Viewed 286 times

User avatar
adafruit_support_carter
 
Posts: 29168
Joined: Tue Nov 29, 2016 2:45 pm

Re: My OLED Display Is Not Working

Post by adafruit_support_carter »

Hmm. No addresses are showing up. So it's not seeing either the OLED or the BMP280. But you were able to use the BMP280? So confusing why nothing is showing up.

Where did the STEMMA cables comes from?

User avatar
Sm11y456
 
Posts: 10
Joined: Fri Nov 18, 2022 5:23 pm

Re: My OLED Display Is Not Working

Post by Sm11y456 »

I bought a kit from Amazon, however when I just hook up the BMP, it doesn't show up. Also I got no readings from the BMP when it did display a green light.

User avatar
adafruit_support_carter
 
Posts: 29168
Joined: Tue Nov 29, 2016 2:45 pm

Re: My OLED Display Is Not Working

Post by adafruit_support_carter »

Can you link to product page for the cables. They may not be compatible.

Looking at your first post - you only mention the BMP280 appearing to be on. Have you been able to use the BMP280 at all? Does the basic example work?
https://learn.adafruit.com/adafruit-bmp ... duino-test

User avatar
Sm11y456
 
Posts: 10
Joined: Fri Nov 18, 2022 5:23 pm

Re: My OLED Display Is Not Working

Post by Sm11y456 »

The BMP280 does not work, only the LED turns on.

Cables: https://a.co/d/aAc5ZXn

User avatar
adafruit_support_carter
 
Posts: 29168
Joined: Tue Nov 29, 2016 2:45 pm

Re: My OLED Display Is Not Working

Post by adafruit_support_carter »

Looks like a DIY kit. The SH 1.0 4P should be the correct connector.

Did you make sure to go pin-to-pin? So that pin1 goes to pin1 on both ends? etc.

Use this cable as a general reference:
https://www.adafruit.com/product/4399
Note how the connectors are orientated relative to each other at each cable end.

User avatar
Sm11y456
 
Posts: 10
Joined: Fri Nov 18, 2022 5:23 pm

Re: My OLED Display Is Not Working

Post by Sm11y456 »

I got all the parts to turn on now, and the BMP280 is reading to the serial monitor, But the OLED still is not working.

New I2C scan:
Adafruit I2C Scanner


Default port (Wire) I2C scan: 0x3D, 0x77

User avatar
adafruit_support_carter
 
Posts: 29168
Joined: Tue Nov 29, 2016 2:45 pm

Re: My OLED Display Is Not Working

Post by adafruit_support_carter »

0x77 is the BMP280.
0x3D is the OLED.

So both expected addresses are showing up now.

Are you running this example sketch to test the OLED?
https://learn.adafruit.com/adafruit-mon ... le-3105952

User avatar
Sm11y456
 
Posts: 10
Joined: Fri Nov 18, 2022 5:23 pm

Re: My OLED Display Is Not Working

Post by Sm11y456 »

Yes, but it doesn't seem to do anything

User avatar
adafruit_support_carter
 
Posts: 29168
Joined: Tue Nov 29, 2016 2:45 pm

Re: My OLED Display Is Not Working

Post by adafruit_support_carter »

Try adding some serial prints to make sure the sketch is at least trying. For example:

Code: Select all

  Serial.println("Drawing lines...");
  testdrawline();      // Draw many lines

  Serial.println("Drawing rectangles...");
  testdrawrect();      // Draw rectangles (outlines)

  Serial.println("Drawing filled rectangles...");
  testfillrect();      // Draw rectangles (filled)

  Serial.println("Drawing circles...");
  testdrawcircle();    // Draw circles (outlines)
And make sure those show up in the Serial Monitor.

User avatar
wwhite74
 
Posts: 66
Joined: Wed Dec 03, 2014 1:49 am

Re: My OLED Display Is Not Working

Post by wwhite74 »

I just had a similar issue.

suggestion I got here was a "power race" issue, basically, the command to initialize makes it to the board before it fully powers on.

a "delay (100);" before you try to initialize fixes it (might have to play with the length)

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

Return to “General Project help”