Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - gambcl

Pages: [1]
OLEDs / Re: NHD-3.12-25664UCY2 flickering
« 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.

OLEDs / NHD-3.12-25664UCY2 flickering
« on: January 28, 2015, 04:49:21 AM »

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:
- 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,


Pages: [1]