[SOLVED] OLED 1.5" SSD1351 & Teensy 3.1

Breakout boards, sensors, other Adafruit kits, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
Lafuente
 
Posts: 8
Joined: Sun Jan 25, 2015 2:41 pm

[SOLVED] OLED 1.5" SSD1351 & Teensy 3.1

Post by Lafuente »

Hi,

I've just receipt an 1.5" OLED breakout card and want to try SSD1351 examples with my teensy 3.1. As there is no tutorial for it, I'm not able to make it work.

Can some one help me ? What is the pinout for Teensy 3.1 to make example working ASIS (if possible) ?

I've try different combinations without success. I'm even not sure the breakout card is working because when I power it up I've got nothing saying it's alive. OLED screen is dark and nothing happend.

Please help.
Last edited by Lafuente on Sat Jan 31, 2015 4:35 am, edited 1 time in total.

User avatar
Lafuente
 
Posts: 8
Joined: Sun Jan 25, 2015 2:41 pm

Re: OLED 1.5" SSD1351 & Teensy 3.1

Post by Lafuente »

Image

Image

Image

I use 3.3Vcc to supply OLED, but also had try with 5.0Vcc. I'd try code pinout first (2,3,4,5,6) without success ans then try what I believe can work too :

Code: Select all

#define OLED_MOSI   9
#define OLED_CLK   10
#define OLED_DC    11
#define OLED_CS    12
#define OLED_RESET 13
I can use

Code: Select all

Adafruit_SSD1351 tft = Adafruit_SSD1351(OLED_MOSI, OLED_CLK, OLED_DC, OLED_RESET, OLED_CS);
or

Code: Select all

Adafruit_SSD1351 tft = Adafruit_SSD1351(OLED_CS, OLED_DC, OLED_RESET);
nothing change. Where did I do something wrong ?

Best regards,
Manu

User avatar
Lafuente
 
Posts: 8
Joined: Sun Jan 25, 2015 2:41 pm

Re: OLED 1.5" SSD1351 & Teensy 3.1

Post by Lafuente »

On the previous photo you can think that the 2 last Pin are wrong on Adafruit OLED board, but they really match what they should (R and OC)

User avatar
Lafuente
 
Posts: 8
Joined: Sun Jan 25, 2015 2:41 pm

Re: OLED 1.5" SSD1351 & Teensy 3.1

Post by Lafuente »

up

User avatar
rickj5
 
Posts: 8
Joined: Mon Dec 30, 2013 2:32 am

Re: OLED 1.5" SSD1351 & Teensy 3.1

Post by rickj5 »

The OLED doesn't appear to be connected to ground. The red and blue power rails at the top of the first photo are not connected to the red and blue rails at the bottom of the photo. You have the OLED ground plugged into one blue rail and the Teensy ground plugged into the other one.

User avatar
Lafuente
 
Posts: 8
Joined: Sun Jan 25, 2015 2:41 pm

Re: OLED 1.5" SSD1351 & Teensy 3.1

Post by Lafuente »

Thx for reply,

The OLED is connected to ground using "G" pin. The wires connected to teensy are not suppose to give supply to OLED screen but give supply to Teensy. There is no problems here. I'd check the voltage at OLED power pins with a multimeter and I get 3,27V, supplied by the black element witch is a voltage regulator.

I'd try the BMP example too, without succes :-(

Image

Image

My opinion is that this OLED screen is DOA. I will request a RMA from Adafruit ASAP.
Thx rick for your help. I'm just disappointed that Adafruit support did NOT reply to this post.

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

Re: OLED 1.5" SSD1351 & Teensy 3.1

Post by adafruit_support_rick »

So, you are using a breadboard power supply for the OLED, and USB power for the teensy?
You will definitely need a common ground connection between the teensy and the breadboard power supply. This serves as a signal reference for the OLED.
Connect a jumper from the breadboard gnd bus to the teensy gnd.

User avatar
Lafuente
 
Posts: 8
Joined: Sun Jan 25, 2015 2:41 pm

Re: OLED 1.5" SSD1351 & Teensy 3.1

Post by Lafuente »

Thanks Rick for this tip.

I'll try asap and let you know what happen ;-)

User avatar
Lafuente
 
Posts: 8
Joined: Sun Jan 25, 2015 2:41 pm

Re: OLED 1.5" SSD1351 & Teensy 3.1

Post by Lafuente »

This will be my mistake. With common ground between Teensy and OLED display, the display wake up. It does not display anything but it work ;-)

Now it's just a code problem, but I'm more confident with the display and should fix that quickly.

Many thanks Rick

User avatar
TimmSch
 
Posts: 6
Joined: Thu Apr 23, 2015 6:22 pm

Re: [SOLVED] OLED 1.5" SSD1351 & Teensy 3.1

Post by TimmSch »

Hey Lafuente,

I am wondering if you made your OLED work with the Teensy.
If so, have you tried using the SD card simultaneously with the display?

I am also considering getting one....

Thanks a lot in advance!

User avatar
Lafuente
 
Posts: 8
Joined: Sun Jan 25, 2015 2:41 pm

Re: [SOLVED] OLED 1.5" SSD1351 & Teensy 3.1

Post by Lafuente »

Hello Timm,

Both of them work perfectly. The only thing I fight against was that the screen flicker. I had to split the screen in area and refresh only the good data to avoid this. This is something to consider in your sketch.
I also tried U8glib library with success, but the screen flicker is higher than with Adafruit SSD1351 library well used, as U8glib update the full screen each time you want to change a single pixel.

I also modified the Adafruit SSD1351 library to use spi4teensy3 library. This really accelerate the things ;-)

Bests,
Manu

User avatar
TimmSch
 
Posts: 6
Joined: Thu Apr 23, 2015 6:22 pm

Re: [SOLVED] OLED 1.5" SSD1351 & Teensy 3.1

Post by TimmSch »

Hey Manu,

thanks for the heads up! I will then give it a try as well. Would you mind sharing your library with me?
Thanks a lot in advance!

Best,
Timm

User avatar
TimmSch
 
Posts: 6
Joined: Thu Apr 23, 2015 6:22 pm

Re: [SOLVED] OLED 1.5" SSD1351 & Teensy 3.1

Post by TimmSch »

Hey Manu,

my 1.27" OLED has arrived and I can confirm that both the display and the SD work. However, I experience the same flickering problems that you describe.
Would you mind sharing your library?

Thanks a lot :)

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

Return to “Other Products from Adafruit”