Pages: [1]   Go Down
Author Topic: Interfacing Arduino with SSD1325 OLED  (Read 2570 times)
0 Members and 1 Guest are viewing this topic.
Singapore
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,
Does anyone know of a Arduino-compatible library for OLED controller SSD1325? I'm trying to interface a New Havens 128X64 2.7 inch OLED with an Arduino Mega2560. Has anyone gotten it to work with an Arduino before?

Thanks,
Yoga
Logged

Yoga

New Zealand
Offline Offline
Full Member
***
Karma: 1
Posts: 105
Just this guy you know.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

This thread mentioned one, but the RS links dead.
http://arduino.cc/forum/index.php/topic,30607.msg227871.html#msg227871

Could ask there for a repost of the library there.


Logged

Singapore
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thank you! That thread is read-only. So, I've e-mailed JKW who posted the link. I'll post the code here if i get it! smiley-wink
Logged

Yoga

0
Offline Offline
Full Member
***
Karma: 0
Posts: 238
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'd love to know this also please.  smiley

Thanks.
Logged

Germany
Offline Offline
Edison Member
*
Karma: 100
Posts: 1241
If you believe something is right, you won't see what's wrong (David Straker).
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi

I am working on a new graphics lib for the Arduino IDE. A first beta release is online, which supports the NHD 2.7 12864 OLED with SSD1325 controller.

http://code.google.com/p/u8glib/downloads/list

There is not much documentation at the moment...   smiley-roll
And the lib only supports black/white mode for the SSD1325  smiley-confuse

Download and place the zip file into the libraries folder of the Arduino 1.0 file structure. Unzip the archive and restart the IDE. You should see the HelloWorld example for U8glib.

... let me know if you find bugs or if there are any questions

Oliver
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Have anyone verified that the "Set Contrast Current (81h)" command works?

No matter what I set it to (1-127), there is no change in brightness. I've been trying things like long delays before and after the command, with no luck. Here is part of the code:

Code:
  display_command(0x81);  //Contrast setting
  display_command(0x01);  //1 to 0x7F
 
  display_command(0x84);  //Quarter range current
     
  display_command(0xA8); //Multiplex ratio
  display_command(0x3F);   //All visible rows

Any thoughts on why it doesn't work?

The device is a RiTdisplay P19401. I'm using the SPI interface.
Logged

Germany
Offline Offline
Edison Member
*
Karma: 100
Posts: 1241
If you believe something is right, you won't see what's wrong (David Straker).
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi

I have added a set contrast command to u8glib (not in the release yet, but on the repo). It works with my NHD 128x64 OLED (SSD1325). The effect is most visible with full current range (0x086) and very bright pixel values (corresponding gray scale table entry should be at maximum).

Regarding u8glib, I did my tests with this code:
http://code.google.com/p/u8glib/source/browse/csrc/u8g_dev_ssd1325_nhd27oled_gr.c

Oliver

Edit: U8glib is released, documentation is online, 4 levels grayscale supported for the SSD1325.

« Last Edit: February 21, 2012, 03:08:47 pm by olikraus » Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thank you! I can see the difference now. I was using quarter range current, and also pretty dim values, which made it hard to see any difference.
Logged

Pages: [1]   Go Up
Jump to: