Newhaven Display Forum

Newhaven Products => OLEDs => Topic started by: killkrt on October 29, 2018, 05:33:51 PM

Title: NHD-1.5-128128ASC3 and Teensy 3.6
Post by: killkrt on October 29, 2018, 05:33:51 PM
Hi,

I am trying to get my OLED (NHD-1.5-128128ASC3) works with a Teensy 3.6 using the following library: https://github.com/kirberich/teensy_ssd1351 (https://github.com/kirberich/teensy_ssd1351) and using the examples provided with it.
Despite I tried a lot of different settings I can not get anything out of it, the display seems completely dead.

I've already checked twice wiring and it seems ok, I've checked with my DMM if the display is receiving the right voltage (about 4.75V) and checked CLK, SS, MOSI and MISO with an oscilloscope, and they seem to have sense.
So I cannot understand what it is wrong with that.

Anyway I have noticed that CD and 3Vo seems have a shortage with GND (checking using the continuity checker of my DMM), even if CD and 3Vo are disconnected, so I hope this is not an issue.

Here it is my wiring:
(https://i.imgur.com/RHedl27.jpg)

I've already tried to downclock my Teensy at 24MHz or to use the define SLOW_SPI in order to reduce the SPI speed at 15MHz, I've also manually change the SPICLOCK to 8MHz, but nothing the display seems dead.

Could you help me?

Thank you.

Title: Re: NHD-1.5-128128ASC3 and Teensy 3.6
Post by: killkrt on November 01, 2018, 11:31:56 AM
Some updates,

I have change my wiring in this way:


I was connecting Pin 10 to OLEDCS, but I realized (by mistake) that if I leave it disconnect at startup and then (after 3 seconds) I connect to SDCS everything works!  :o
Anyway this is an awful workaround since I have to manually disconnect pin 10 every time that I startup my Teensy and then connect it to SDCS (instead of OLEDCS).

Do you have an idea why this is happening?

Thank you
Title: Re: NHD-1.5-128128ASC3 and Teensy 3.6
Post by: Ted_M on November 01, 2018, 02:41:37 PM
Hi Killkrt,

Both Chip Select signals for the OLED (OLEDCD) and the SD card reader (SDCS) are active low and would need to be active independently of each other. 
Using a pull-up resistor on each of these Chip Select lines will ensure they are both inactive on power up.

Best Regards,
Title: Re: NHD-1.5-128128ASC3 and Teensy 3.6
Post by: killkrt on November 01, 2018, 04:00:33 PM
Thank you for the hints.

I put two pull-up resistors as you suggested, but I still have problems.
The SDCS is connected to a pin that it is always high, while the OLEDCS is connected to pin 10 (that is the SPI CS).

I dump the two CS during restart with my oscilloscope, as you can see they seem to be stable high while it is rebooting.
Yellow: Pin 10 connected to OLEDCS
Purple: Pin 30 always high connected to SDCS

(https://i.imgur.com/Iz5KHX2.png)
Title: Re: NHD-1.5-128128ASC3 and Teensy 3.6
Post by: killkrt on November 01, 2018, 07:36:26 PM
I got it working using two pull-down resistors (instead of pull-up) on OLEDCS and SDCS.
OLEDCS is connected to a pin always set to 0.
SDCS is connected to my CS.

In some way it seems that it's working in reverse, using a pull-down instead of pull-up, and using SDCS instead of OLEDCS  ::) :o

So this is my wiring:
(https://i.imgur.com/QGnhl7g.png)