Author Topic: Mouser Oled  (Read 12555 times)

josephchrzempiec

  • Jr. Member
  • **
  • Posts: 32
  • Karma: 0
    • View Profile
Re: Mouser Oled
« Reply #15 on: July 16, 2015, 05:33:41 PM »
So pin 1 and 2 on the oled is ground and VDD but in the image on page 5  the 4-wire one it is Ds0 and Bs1. So i need to look at it from the right to the left on the image  for pin 1 and pin 2 on the oled display?

josephchrzempiec

  • Jr. Member
  • **
  • Posts: 32
  • Karma: 0
    • View Profile
Re: Mouser Oled
« Reply #16 on: July 16, 2015, 05:44:25 PM »
on pin 4 it says D/C but in the sketch example there is nothing for D/c does that get still connected and to which pin and what about the example sketch?

josephchrzempiec

  • Jr. Member
  • **
  • Posts: 32
  • Karma: 0
    • View Profile
Re: Mouser Oled
« Reply #17 on: July 16, 2015, 06:16:37 PM »
Hello i mange to get the oled wired up and i got something from it image is attached but something is off i see a little characters in the mess of colors but not sure what is wrong. Also the oled is really really warm to the touch that i can't touch it for long it's on 3.3v but something might be wrong I'm not sure. Can someone please help me out?
« Last Edit: July 16, 2015, 06:21:53 PM by josephchrzempiec »

josephchrzempiec

  • Jr. Member
  • **
  • Posts: 32
  • Karma: 0
    • View Profile
Re: Mouser Oled
« Reply #18 on: July 16, 2015, 06:33:15 PM »
Not the oled it's self the screen that gets warm but the little chip that is on the ribbon cable that gets warm.

josephchrzempiec

  • Jr. Member
  • **
  • Posts: 32
  • Karma: 0
    • View Profile
Re: Mouser Oled
« Reply #19 on: July 17, 2015, 12:00:18 AM »
I wired it up as 4-wire in the image on the datasheet http://www.newhavendisplay.com/specs/NHD-1.5-128128UGC3.pdf  to the sketch pins on the example pinout https://github.com/NewhavenDisplay/NHD-1.5-128128UGC3-Example-Code/blob/master/Arduino_OLED_128128.ino i also change the  const unsigned char interface = 1;   from 1 to 2 and when i power it up  i get that image there  not sure what I'm doing wrong maybe because I'm running the arduino at maybe 5v logic instead of 3.3v logic i do not know and it's messing up? at this point I'm stuck on what I'm doing wrong. But i thank Everybody for the help that got me this far.

Saurabh_B

  • Administrator
  • Hero Member
  • *****
  • Posts: 363
  • Karma: 10
    • View Profile
Re: Mouser Oled
« Reply #20 on: July 17, 2015, 08:47:40 AM »
As for the heat the Arduino still uses 5V logic; you want to either modify the voltage regulator on the Arduino or you would need to use a level shifter to bring down the voltage to 3.3V. Although you might be using the 3V output from the Arduino itself to power the chip, the rest of the pins are still applying 5V.

As for the D/C pin,  you do need to have that connected if you're running in 4 line mode. you're probably looking at the last picture which is the 3 line SPI interface. the D/C is a signal that will tell the display whether the incoming information is a command or data.


josephchrzempiec

  • Jr. Member
  • **
  • Posts: 32
  • Karma: 0
    • View Profile
Re: Mouser Oled
« Reply #21 on: July 17, 2015, 08:55:53 AM »
I wore it up as 4-wire as I the image I didn't understand where to connect the cc pin at I change the sketch from 1 to 2 for the 4-wire and that is the image I got unless I didn't something I'm not sure. And I'm not sure how to get it. To 3.3 logic instead of 5 I'm using 3.3v on the vdd as it needs to be but not sure how they 3.3v  on the logic side

Saurabh_B

  • Administrator
  • Hero Member
  • *****
  • Posts: 363
  • Karma: 10
    • View Profile
Re: Mouser Oled
« Reply #22 on: July 17, 2015, 09:31:57 AM »
I'm not too sure what you mean by cc. But looking at your board the bottom right pin should be pin 1, above that is pin 2, one one on the the bottom next to 1 is 3. The on on the top left should be pin 20. Follow that along with the TABLE on page 4. the sketches again aren't always accurate.

You are might be using the 3.3V output from the Arduino, but everything else going in is 5V. So you can do one of two things to stop it from heating up.

1. Swap out the voltage regulator on the Arduino for a 3.3V and use a dc jack to power it something like 3.3 V Regulator on Mouser

Or,

2. Get a level shifter to bring down the 5V coming from your Arduino digital pins to 3.3V. Something Like This



josephchrzempiec

  • Jr. Member
  • **
  • Posts: 32
  • Karma: 0
    • View Profile
Re: Mouser Oled
« Reply #23 on: July 17, 2015, 09:48:21 AM »
My Arduino uno has a 3.3v on there that is what I'm using to power up the screen with. I think something is wrong with the sketch

Saurabh_B

  • Administrator
  • Hero Member
  • *****
  • Posts: 363
  • Karma: 10
    • View Profile
Re: Mouser Oled
« Reply #24 on: July 17, 2015, 11:01:23 AM »
But the rest of the pins you're using are at 5V. They need to be brought down to 3.3.

What pin do you have D/C connected to on the Arduino?

The example code is verified to work so long as everything is wired up correctly.

josephchrzempiec

  • Jr. Member
  • **
  • Posts: 32
  • Karma: 0
    • View Profile
Re: Mouser Oled
« Reply #25 on: July 17, 2015, 11:50:19 AM »
Hello can you tell me what pins from the oled display goes to the Arduino uno board if I use some resistors for testing to bring the logic level down to 3.3v then I think it be a good test then figure something out. I think either the pin out is wrong or something I did is wrong I do not know.

Saurabh_B

  • Administrator
  • Hero Member
  • *****
  • Posts: 363
  • Karma: 10
    • View Profile
Re: Mouser Oled
« Reply #26 on: July 17, 2015, 12:09:46 PM »
Code: [Select]
#define   SDI_PIN    1    // SDI (serial mode) signal connected to pin 1
#define   SCL_PIN    0    // SCL (serial mdoe) signal connected to pin 0
#define    RS_PIN    8    // RS signal connected to pin 8
#define    RW_PIN    9    // R/W (6800 mode) signal connected to pin 9
#define    WR_PIN    9    // /WR (8080 mode) signal connected to pin 9
#define     E_PIN   10    // E (6800 mode) signal connected to pin 10
#define    RD_PIN   10    // /RD (8080 mode) signal connected to pin 10
#define   RES_PIN   11    // /RES signal connected to pin 11
#define    CS_PIN   12    // /CS signal connected to pin 12
#define   BS1_PIN   A0    // BS1 signal connected to pin A0
#define   BS0_PIN   A1    // BS0 signal connected to pin A1
#define   LVL_DIR   A2    // DIR (direction control) signal of level shifter IC connected to pin A2
#define   LVL_OEN   A3    // /OE (output enable) signal of level shifter IC connected to pin A3

So the pins you need to have connected

OLED                                                                                     Arduino/personal circuit
1,5,6,10,11,12,13,14,15,18,19,20            |                         Ground
2    Vdd                                                        |                         +3.3V
4     D/C                                                       |                         Pin 8   [D/C is often referred to as RS (register select)]
7 SCLK                                                         |                         Pin 0
8 SDI                                                           |                        Pin 1
16 /RES                                                       |                         Pin 11
17 /CS                                                         |                         Pin 12



Again I would recommend using a proper level shifting IC.

josephchrzempiec

  • Jr. Member
  • **
  • Posts: 32
  • Karma: 0
    • View Profile
Re: Mouser Oled
« Reply #27 on: July 17, 2015, 12:23:55 PM »
Hello what about the lvl_dir and the lvl_oen pins I don't see them on the data sheet  where are they on the display and the bs0 and bs1 goes to a0 and a1. ?

josephchrzempiec

  • Jr. Member
  • **
  • Posts: 32
  • Karma: 0
    • View Profile
Re: Mouser Oled
« Reply #28 on: July 17, 2015, 12:25:05 PM »
The 4050 I see around is a level shifter correct that is what I'm missing I think

Saurabh_B

  • Administrator
  • Hero Member
  • *****
  • Posts: 363
  • Karma: 10
    • View Profile
Re: Mouser Oled
« Reply #29 on: July 17, 2015, 12:31:44 PM »
Those are pins that would be on a level shifter and not the OLED. 4050 is the part number for level shifter

By any chance do you have another MCU that is 3.3V instead?

 

16x2 OLED NHD-0216KZW-AY5 Intermittent, and perament vertical dots Brightness

Started by BenB2013Board OLEDs

Replies: 4
Views: 4860
Last post October 23, 2014, 04:55:27 PM
by BenB2013
Display current of 128x64 yellow OLED (2.7-12864UMY3) really 175mA?

Started by flywheelBoard OLEDs

Replies: 1
Views: 3544
Last post June 30, 2014, 04:48:12 PM
by Michael_L
Wiring between NHD-1.5128128ASC3ND OLED Display and NHDev 2.10 Development Board

Started by vcp88Board OLEDs

Replies: 1
Views: 2241
Last post June 07, 2016, 08:20:38 AM
by Saurabh_B
NHD-0420DZW-AG5 OLED character module--Displaying junk data

Started by control3Board OLEDs

Replies: 2
Views: 1311
Last post December 11, 2016, 11:19:54 PM
by control3
Korean Hex GB code for OLED multi font display NHD-2.7-12864UMY3

Started by newhavenuserBoard OLEDs

Replies: 0
Views: 787
Last post May 05, 2017, 01:17:45 PM
by newhavenuser