Author Topic: Mouser Oled  (Read 11262 times)

josephchrzempiec

  • Jr. Member
  • **
  • Posts: 32
  • Karma: 0
    • View Profile
Mouser Oled
« on: July 08, 2015, 11:23:34 PM »
Hello i bought the Oled display from mouser. It is on the way.  Mouser part number is NHD‐1.5‐128128UGC3 link is http://www.mouser.com/ProductDetail/Newhaven-Display/NHD-15-128128UGC3/?qs=sGAEpiMZZMvHnN%252b%2fGH9WnRoJMEv7X8ZRc2IqbjW%2fbEY%3d there are 20 pins and i do not know which one to use for the arduino. or Which library to use for arduino can someone please help me?



Joseph

Paul_B

  • Administrator
  • Sr. Member
  • *****
  • Posts: 248
  • Karma: 16
    • View Profile
Re: Mouser Oled
« Reply #1 on: July 09, 2015, 07:47:18 AM »
Hi Joseph,

Below is some example code for that display written for the Arduino  ;)

https://github.com/NewhavenDisplay/NHD-1.5-128128UGC3-Example-Code

Regarding the pin out, please see page 4 in the displays datasheet:

http://www.newhavendisplay.com/specs/NHD-1.5-128128UGC3.pdf

You will need to select a interface that best supports your needs. Finally the example code can be configured to support multiple interfaces (See line 48).

Enjoy your new display!


josephchrzempiec

  • Jr. Member
  • **
  • Posts: 32
  • Karma: 0
    • View Profile
Re: Mouser Oled
« Reply #2 on: July 09, 2015, 08:23:11 AM »
Thank you very much for the information I will try it when I get my display.

josephchrzempiec

  • Jr. Member
  • **
  • Posts: 32
  • Karma: 0
    • View Profile
Re: Mouser Oled
« Reply #3 on: July 14, 2015, 02:48:30 AM »
Hello is there a simple text  sample i can try with this oled?

Paul_B

  • Administrator
  • Sr. Member
  • *****
  • Posts: 248
  • Karma: 16
    • View Profile
Re: Mouser Oled
« Reply #4 on: July 14, 2015, 10:15:37 AM »
Hi Joseph!

There are plenty of user created Arduino Libraries written for the SSD1351 controller. I recommend searching in google for "SSD1351 Arduino library".

Hope this helps, feel free to contact me if you have any questions!

josephchrzempiec

  • Jr. Member
  • **
  • Posts: 32
  • Karma: 0
    • View Profile
Re: Mouser Oled
« Reply #5 on: July 14, 2015, 07:48:15 PM »
Hello okay it's the SSD1351 library thank you. i didn't know hat

josephchrzempiec

  • Jr. Member
  • **
  • Posts: 32
  • Karma: 0
    • View Profile
Re: Mouser Oled
« Reply #6 on: July 15, 2015, 12:24:11 AM »
Hello Paul i was wondering if there was a schematic of this display and what parts are being used i would like to somehow integrate this oled into my project? can you please help me out?

Paul_B

  • Administrator
  • Sr. Member
  • *****
  • Posts: 248
  • Karma: 16
    • View Profile
Re: Mouser Oled
« Reply #7 on: July 15, 2015, 09:27:33 AM »
Hi Joseph,

I'm sorry, unfortunately we do not have a public schematic available for this display.

Sorry for the inconvenience.
 

josephchrzempiec

  • Jr. Member
  • **
  • Posts: 32
  • Karma: 0
    • View Profile
Re: Mouser Oled
« Reply #8 on: July 15, 2015, 09:38:52 AM »
Not a problem just wondering that is all the way it is now is okay Something down the road in the future may need to have it on the same board as my micro processor that's all.

josephchrzempiec

  • Jr. Member
  • **
  • Posts: 32
  • Karma: 0
    • View Profile
Re: Mouser Oled
« Reply #9 on: July 15, 2015, 05:36:28 PM »
I just received my Oled in today 20 pins on it. and i looked at the datasheet for the pinout but I'm a little confused on it.


it's got in the sample sketch


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


and in the datasheet it has

Code: [Select]
1 GND Power Supply Ground
2 VDD Power Supply Supply Voltage for OLED and logic.
3 NC  ‐ No Connect
4 D/C MPU Register select signal. D/C=0: Command, D/C=1: Data
Tie LOW for 3‐wire Serial Interface.
5‐6 VSS Power Supply Ground
7 SCLK MPU Serial Clock signal.
8 SDIN MPU Serial Data Input signal.
9 NC  ‐ No Connect
10‐14 VSS Power Supply Ground
15 GND Power Supply Ground
16 /RES MPU Active LOW Reset signal.
17 /CS MPU Active LOW Chip Select signal.
18 GND Power Supply Ground
19 BS1 MPU MPU Interface Select signal.
20 BS0 MPU MPU Interface Select signal.


i figure out some pins like the VCC and VDD and a few others but I'm using a uno board for test and i need help figuring out what pins go where can someone please help me on that.

josephchrzempiec

  • Jr. Member
  • **
  • Posts: 32
  • Karma: 0
    • View Profile
Re: Mouser Oled
« Reply #10 on: July 15, 2015, 11:27:21 PM »
Hello Paul I'm still stick which pins from the display does to my Arduino Uno board to make it work? Can you please help me out? Thank you.

Paul_B

  • Administrator
  • Sr. Member
  • *****
  • Posts: 248
  • Karma: 16
    • View Profile
Re: Mouser Oled
« Reply #11 on: July 16, 2015, 11:57:25 AM »
Hello Joseph,

I recommend you use the 4-wire SPI interface when first starting out  8)

The serial interface pinout can be viewed on page 4 in the displays datasheet:

http://www.newhavendisplay.com/specs/NHD-1.5-128128UGC3.pdf

Be sure to take special note of the MPU Interface Pin Selections table, see page 4. Pin BS0 & BS1 will determine the interface selection.

E.g. In your case when using the 4-wire SPI interface BS0 and BS1 will both need to be tied LOW (GND).

Finally, you will need to modify the Arduino_OLED_128128.ino file so it selects the correct interface.

Edit line 48 from:

Code: [Select]
const unsigned char interface = 1;    // 0 = 8-bit parallel (6800 mode) interface; 1 = 8-bit parallel (8080 mode) interface; 2 = 4-wire SPI interface
To:

Code: [Select]
const unsigned char interface = 2;    // 0 = 8-bit parallel (6800 mode) interface; 1 = 8-bit parallel (8080 mode) interface; 2 = 4-wire SPI interface
Hope this help!




Paul_B

  • Administrator
  • Sr. Member
  • *****
  • Posts: 248
  • Karma: 16
    • View Profile
Re: Mouser Oled
« Reply #12 on: July 16, 2015, 12:00:03 PM »
Be sure to also look up the Arduino UNO's pinout when you begin to wire up your display  ;)

http://40.media.tumblr.com/4ff695d730e837e19b393e26b6bb849c/tumblr_mj1nsyafhx1s5t695o1_1280.png
« Last Edit: July 16, 2015, 12:07:32 PM by Paul_B »

josephchrzempiec

  • Jr. Member
  • **
  • Posts: 32
  • Karma: 0
    • View Profile
Re: Mouser Oled
« Reply #13 on: July 16, 2015, 03:23:05 PM »
Sense there is so many pin layouts for this oled this is what I'm confused about because it says pin 19 and pin 20 on page 5 of the datasheet says for the 4-wire it says VDD - Ground. Now on page 4 of the datasheet in the serial it says pin 19 and pin 20 is Ds1 and Ds0 this is a bit confusing for me. So i do not know which pinout to follow or if the sketch pinout define is wrong i do not know.

Saurabh_B

  • Administrator
  • Hero Member
  • *****
  • Posts: 340
  • Karma: 10
    • View Profile
Re: Mouser Oled
« Reply #14 on: July 16, 2015, 03:53:19 PM »
I think you're looking at the pictures and taking those positions as pin outs. you want to use the pin out numbers listed on page 4. On page 5 the pins are backwards, so pin 1 and 2 on the sketch correspond to pins 20 and 19 respectively. They are also marked BS0 and BS1

On page 4 its telling you that pins 19 and 20 are control pins that tell the display what interface it should expect. Using the last table on page 4 you can see that when both pins are tied to ground or logic 0, the display will behave in a 4 line SPI interface.

Again the locations on the sketch are backwards. In general the sketches are drawn to show how the pins should be wired, and the pins wont be in the same location. You should always use the Interface Description to get accurate Pin locations.

So you should have most of the pins tied to ground like the third image on page 5 suggests, and only 5 wires going from the Display to the digital outputs of the Arduino. for the rest that need to either be tied to ground or Vdd you should just get a breadboard and use the output from the Arduino for ground an Vdd and tie them together.

 

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

Started by BenB2013Board OLEDs

Replies: 4
Views: 4459
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: 3282
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: 1945
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: 986
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: 533
Last post May 05, 2017, 01:17:45 PM
by newhavenuser