SSD1306 128x32 SPI OLED Help

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
euniqe
 
Posts: 4
Joined: Mon Nov 12, 2018 9:13 pm

SSD1306 128x32 SPI OLED Help

Post by euniqe »

Hey everyone,

This is my first time attempting an arduino project and everything was going well until I made an attempt to wire up my OLED display. I'm attempting to display a car's OBD-II data through an Adafruit 128x32 SPI OLED screen. My goal is to display temperatures, voltage etc. using the screen, via this guide; https://www.instructables.com/id/Custom ... -OEM-Look/. This is the OLED i'm using https://www.adafruit.com/product/661. And this is the Arduino board I'm using https://tronixlabs.com.au/arduino/board ... australia/.

I have attempted to use the example sketch that the SSD1306 library provides (ssd1306_128x32_spi.ino) to get my screen running to make sure everything works, only changing the pin numbers in the sketch to their corresponding ones i have wired to on my arduino board;

Code: Select all

// Declaration for SSD1306 display connected using software SPI (default case):
#define OLED_MOSI   9
#define OLED_CLK   10
#define OLED_DC    16
#define OLED_CS    14
#define OLED_RESET 8
Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT,
  OLED_MOSI, OLED_CLK, OLED_DC, OLED_RESET, OLED_CS);

/* Comment out above, uncomment this block to use hardware SPI
#define OLED_DC     16
#define OLED_CS     14
#define OLED_RESET  8
Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT,
  &SPI, OLED_DC, OLED_RESET, OLED_CS);
*/
Original example;

Code: Select all

// Declaration for SSD1306 display connected using software SPI (default case):
//#define OLED_MOSI   9
//#define OLED_CLK   10
//#define OLED_DC    11
//#define OLED_CS    12
//#define OLED_RESET 13
//Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT,
//  OLED_MOSI, OLED_CLK, OLED_DC, OLED_RESET, OLED_CS);

// Comment out above, uncomment this block to use hardware SPI
#define OLED_DC     11
#define OLED_CS     12
#define OLED_RESET  13
Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT,
  &SPI, OLED_DC, OLED_RESET, OLED_CS);

And yet the screen remains blank.. I don't get so much as a single pixel lighting up. I have tested the connections with a multimeter and am getting 4.6v at the VIN. I'd appreciate if someone could help me figure out what i've done wrong, or what needs to be adjusted to get things working. I commented out that block that the example sketch's comments say to and attempted hardware SPI, and that didn't change anything. Oh, I have also used the sketch provided in the instructables link and that doesn't affect the screen, either.

Here are some pictures of my setup, ignore the Tx/Rx/GND/GND to the left and pin 6 (they are for other modules), the rest are wired to the screen; specifically the top GND, VIN next to it, 14,16,10,7,8 & 9 pins.

Image
Image


Thanks in advance.

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

Return to “Arduino”