Newhaven Display Forum

Newhaven Products => OLEDs => Topic started by: gambcl on January 28, 2015, 04:49:21 AM

Title: NHD-3.12-25664UCY2 flickering
Post by: gambcl on January 28, 2015, 04:49:21 AM
Hi,

I have just started playing with driving a NHD-3.12-25664UCY2 from a Raspberry Pi using 4-wire SPI in Python.

I have successfully got the display working and can draw onto it, however the display has very noticeable flickering.

I am pretty sure that this is controlled by some of the init parameters, which I think I copied from some sample code.
Unfortunately this is my first time driving a display and all the various timing and voltage values went right over my head
and I'm a bit worried about damaging the display if I just start guessing at values.

Could someone please talk me through how I would change the init parameters to get a solid display with no flickering?

These are the details I can remember (don't have the code in front of me):
- Input voltage 3.3v from Raspberry Pi
- 4-wire SPI interface
- SPI clock at 1MHz, just guessed at that value, how high can I go with this display?
- Internal voltage regulator

I saw a bunch of settings which I thought might affect the flickering but I have no clue what they mean and what affect they have on the display:
- VCOMH
- Phase length
- Display clock divider
- Display enhancement A
- Display enhancement B
- Precharge period
- Precharge voltage
- Contrast current
- Master contrast current
- Multiplex ratio

I did read the datasheet regarding these values but it just talks in pure voltages/timings and doesn't actually tell you what effect these settings have on the physical display. Some plain English for us newbies would be fantastic, I'm trying to learn how to pick up and drive these things so any clearer explanations on these more technical settings would go a long way.

Any ideas on what I need to change to get rid of the flickering?

Many thanks,

Charles
Title: Re: NHD-3.12-25664UCY2 flickering
Post by: Michael_L on January 29, 2015, 07:54:29 AM
I'm sorry but unfortunately we do not have such a guide explaining all the commands.  The controller's datasheet should have sufficient information for this.
Here is a link to it:  http://www.newhavendisplay.com/app_notes/SSD1322.pdf (http://www.newhavendisplay.com/app_notes/SSD1322.pdf)

In terms of the initialization, please use our example initialization sequence in the display's datasheet, page 12.  There is no flickering present with this initialization.
Title: Re: NHD-3.12-25664UCY2 flickering
Post by: gambcl on January 30, 2015, 04:36:07 AM
Thanks Michael, when I checked my initialization code it all matched the example, apart from the display clock setting.
I changed that to match and the flickering has now gone. Nice stable display now.
Title: Re: NHD-3.12-25664UCY2 flickering
Post by: jimmy_sayavong on January 24, 2016, 09:51:48 AM
Can you post your initialization code here to see if I can duplicate your issue?
I assume this is for SSD1322 controller, right?

JIMMY