Author Topic: NHD-0216SZW-BG5 OLED artefacts and undefined patterns  (Read 784 times)

GeroF

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
NHD-0216SZW-BG5 OLED artefacts and undefined patterns
« on: December 14, 2016, 03:10:00 PM »
Hi all,

ordered the NHD-0216SZW-BG5 OLED display. Planned to run it on Python 3 and Raspberry Pi B Model.
BTW: Is there a Python lib for this OLED available? I didn't find one. So i tried out the AdafruitCharLCD
lib (5V/4 bit mode). The OLED is basicly working in this configuration with the pi.

Having wired up the display (i already double-checked the wiring), and running my code works fine for the first calls of the method sending data. But after some ten calls, the displayed lines start toggling. Signs of former line 1 jump to the second line, and vice versa. After that, all letters get corrupted, showing artefacts and undefined patterns.

What ist going wrong with it? I would greatly appreciate your consult in this topic.

Thanks,  Gero

Saurabh_B

  • Administrator
  • Hero Member
  • *****
  • Posts: 341
  • Karma: 10
    • View Profile
Re: NHD-0216SZW-BG5 OLED artefacts and undefined patterns
« Reply #1 on: December 14, 2016, 05:02:35 PM »
THis is most likely due to the timing.
This display uses a controller similar to our Character LCDs however it requires a longer wait between commands / data writes.

We have seen random shifting or characters appear when you write to the display too fast.

Unfortunately we do not have a library / driver for this display, however if you are able to modify the library you are currently using to add some delays. You should be able to use the display without any issues.

GeroF

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
SOLVED: NHD-0216SZW-BG5 OLED artefacts and undefined patterns
« Reply #2 on: January 28, 2017, 07:18:49 AM »
Hello,
and thanks for replying.

Your post gave me the key to the problem's solution.
My python code created new objects every time when it was basicly supposed to print characters on the OLED.
This means a lot of clear routines were carried out on the OLED controller in a too short time what
is highly likely to have caused the corrupted letters before.

I fixed the code issue and now the characters are OK. The mentioned pyhton lib works well with the OLED.
You don't even have to change any timings.

With best regards,

Gero

 

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

Started by BenB2013Board OLEDs

Replies: 4
Views: 4477
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: 3295
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: 1966
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: 1004
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: 546
Last post May 05, 2017, 01:17:45 PM
by newhavenuser