Black Lives Matter - Action and Equality. ... Adafruit joins the Stop Hate for Profit campaign.
0

SSD1351 OLED with Raspberri Pi 2...wiring?
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

SSD1351 OLED with Raspberri Pi 2...wiring?

by VipperOfVip on Fri Jul 31, 2015 9:29 am

Hello, I'm trying to get the SSD1351 OLED display working with a RapsberriPi2, I think I have the software working, I'm just not sure how to wire it up.

I used BoxySean's modified Guagette drivers https://github.com/boxysean/py-gaugette, which should handle the SSD1351 ok.
I had to modify the platform.machine() function since it was reporting the Pi2 was a beaglebone (based on the chipset). Now the sample ssd1351_test.py runs but nothing is displayed on the screen.

Any ideas how this should be wired? i have it like this currently (not working)

oled (G) --- Pi (Gnd)
oled (Vin) --- Pi (3.3v)
oled (OLEDCS) --- Pi (Pin24) ??????
oled (Reset) --- Pi (GPIO pin)
oled (DC) --- Pi (GPIO pin)
oled (CL) --- Pi (GPIO 11 (SCLK)) ????
oled (SI) --- Pi (GPIO 10) (MOSI) pin 19

I know reset and DC can be arbitrary GPIO pins

VipperOfVip
 
Posts: 2
Joined: Fri Jul 31, 2015 9:16 am

Re: SSD1351 OLED with Raspberri Pi 2...wiring?

by VipperOfVip on Fri Jul 31, 2015 8:29 pm

I got it!

oled (GND/G) --- Pi ( Pin 6 Gnd)
oled (Vin/+) --- Pi (Pin 1 3.3v)
oled (MOSI/SI) --- Pi (Pin 19) GPIO 10 (MOSI)
oled (SCK/CL) --- Pi (Pin 23) GPIO 11 (SCLK))
oled (DC/DC) --- Pi (Pin 16) GPIO 23
oled (Reset/R) --- Pi (Pin 18) GPIO 24
oled (OLEDCS/OC) --- Pin 24 (GPIO 8 CE0)

And when initializing the SSD1351 forked Gaugette driver, I did this:
RESET_PIN = 5
DC_PIN = 4
oled = gaugette.ssd1351.SSD1351(reset_pin=RESET_PIN, dc_pin=DC_PIN, rows=ROWS, cols=COLS)

The only problem is that draw_text functions don't seem to work. If anyone has gotten them to work, let me know

VipperOfVip
 
Posts: 2
Joined: Fri Jul 31, 2015 9:16 am

Re: SSD1351 OLED with Raspberri Pi 2...wiring?

by bikehellion on Mon Jan 18, 2016 5:44 pm

First, thanks for the wiring scheme Vipper!
I got the 1.5" color OLED module (https://www.adafruit.com/products/1431) -- and attempted to do the same thing as you mentioned. At this point I am sure that the OLED is functional, and that soldering is good, as when I run the test script I get 128x128 pixels of mumbo-jumbo (each pixel colored differently)... but I cannot display the image in the gaugette sample, or any other shapes.

- I have Raspberry PI Revision 2 Model B
- Using Raspbian Jessie
- I have installed WiringPi and WiringPi2-Python
- In ssd1351_test.py instead of
Code: Select all | TOGGLE FULL SIZE
import Image
I am using
Code: Select all | TOGGLE FULL SIZE
from PIL import Image

- I have been playing around with DC_PIN and RESET_PIN variables, as I suspected that this could be culprit, but to no avail.
I am right in assuming that you used wiringpi2 library which maps gpio pins 23/24 to pin 5/4

Anybody else is more than welcome to comment.

Regards,
BH

bikehellion
 
Posts: 3
Joined: Wed Jan 06, 2016 6:39 pm

Re: SSD1351 OLED with Raspberri Pi 2...wiring?

by drewfustini on Wed Jan 20, 2016 12:04 am

Hi, I don't have the SSD1351 OLED on hand, but I think this may be the library you want to use:
Adafruit_Python_SSD1351
Port of Python library for SSD1306-based 128x64 or 128x32 pixel OLED displays with a Raspberry Pi or Beaglebone Black to SSD1351


Another option would be to use the fbtft Linux driver. This would make the OLED that default display for the Pi (e.g. framebuffer). fbtft wiki lists ILSoft OLED which has the SSD1351. A poster states at the end of a RaspberryPi.org forum thread:
I managed to fix my colour issues as well as my image changing issues, so once I port the init structure over into the right form I am good to go! :D

drewfustini
 
Posts: 928
Joined: Sat Dec 26, 2015 1:19 pm

Re: SSD1351 OLED with Raspberri Pi 2...wiring?

by bikehellion on Wed Jan 20, 2016 2:06 pm

Thanks a bunch drewfustini! I'll give it a go, and report on the results.

Cheers,
BH

bikehellion
 
Posts: 3
Joined: Wed Jan 06, 2016 6:39 pm

Re: SSD1351 OLED with Raspberri Pi 2...wiring?

by diegozaks on Sun Mar 18, 2018 11:19 pm

Jus in case anyone is looking for a way to use the Adafruit 128 1.5" OLED SSD1351 with a Raspberry Pi, I used the Luma library and it worked great.

Check out this pin layout:
https://luma-oled.readthedocs.io/en/lat ... e.html#spi

And follow the instructions here:
https://luma-oled.readthedocs.io/en/latest/intro.html

diegozaks
 
Posts: 13
Joined: Fri Sep 20, 2013 7:34 pm

Please be positive and constructive with your questions and comments.