Author Topic: NHD-1.5-128128ASC3 and Teensy 3.6  (Read 205 times)

killkrt

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
    • View Profile
NHD-1.5-128128ASC3 and Teensy 3.6
« 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 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:


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.


killkrt

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
    • View Profile
Re: NHD-1.5-128128ASC3 and Teensy 3.6
« Reply #1 on: November 01, 2018, 11:31:56 AM »
Some updates,

I have change my wiring in this way:

  • Pin 0 -> GND
  • Pin Vin -> VDD
  • Pin 15 -> D/C
  • Pin 14 -> RES
  • Pin 13 -> SCK
  • Pin 10 -> See later
  • Pin 11 -> MOSI

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

Ted_M

  • Administrator
  • Jr. Member
  • *****
  • Posts: 59
  • Karma: 3
    • View Profile
Re: NHD-1.5-128128ASC3 and Teensy 3.6
« Reply #2 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,

killkrt

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
    • View Profile
Re: NHD-1.5-128128ASC3 and Teensy 3.6
« Reply #3 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


killkrt

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
    • View Profile
Re: NHD-1.5-128128ASC3 and Teensy 3.6
« Reply #4 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:
« Last Edit: November 02, 2018, 07:46:49 AM by killkrt »