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.
My OLED Display Is Not Working
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_carter
- Posts: 29168
- Joined: Tue Nov 29, 2016 2:45 pm
Re: My OLED Display Is Not Working
What addresses show up in an I2C scan?
https://learn.adafruit.com/scanning-i2c ... ng-testbed
https://learn.adafruit.com/scanning-i2c ... ng-testbed
- Sm11y456
- Posts: 10
- Joined: Fri Nov 18, 2022 5:23 pm
Re: My OLED Display Is Not Working
This is what happens after clicking the rest button 4 times
- adafruit_support_carter
- Posts: 29168
- Joined: Tue Nov 29, 2016 2:45 pm
Re: My OLED Display Is Not Working
Make sure the Serial Monitor baud rate is set to 115200 to match the sketch.
- Sm11y456
- Posts: 10
- Joined: Fri Nov 18, 2022 5:23 pm
Re: My OLED Display Is Not Working
This is what shows now
- adafruit_support_carter
- Posts: 29168
- Joined: Tue Nov 29, 2016 2:45 pm
Re: My OLED Display Is Not Working
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?
Where did the STEMMA cables comes from?
- Sm11y456
- Posts: 10
- Joined: Fri Nov 18, 2022 5:23 pm
Re: My OLED Display Is Not Working
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.
- adafruit_support_carter
- Posts: 29168
- Joined: Tue Nov 29, 2016 2:45 pm
Re: My OLED Display Is Not Working
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
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
- Sm11y456
- Posts: 10
- Joined: Fri Nov 18, 2022 5:23 pm
- adafruit_support_carter
- Posts: 29168
- Joined: Tue Nov 29, 2016 2:45 pm
Re: My OLED Display Is Not Working
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.
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.
- Sm11y456
- Posts: 10
- Joined: Fri Nov 18, 2022 5:23 pm
Re: My OLED Display Is Not Working
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
New I2C scan:
Adafruit I2C Scanner
Default port (Wire) I2C scan: 0x3D, 0x77
- adafruit_support_carter
- Posts: 29168
- Joined: Tue Nov 29, 2016 2:45 pm
Re: My OLED Display Is Not Working
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
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
- Sm11y456
- Posts: 10
- Joined: Fri Nov 18, 2022 5:23 pm
Re: My OLED Display Is Not Working
Yes, but it doesn't seem to do anything
- adafruit_support_carter
- Posts: 29168
- Joined: Tue Nov 29, 2016 2:45 pm
Re: My OLED Display Is Not Working
Try adding some serial prints to make sure the sketch is at least trying. For example:
And make sure those show up in the Serial Monitor.
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)
- wwhite74
- Posts: 66
- Joined: Wed Dec 03, 2014 1:49 am
Re: My OLED Display Is Not Working
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)
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)
Please be positive and constructive with your questions and comments.